dancasas/SMPLitex

Better results

Closed this issue · 5 comments

Hi,
first of all, thank you for the great work.

I want to ask for advice on how to achieve better results. I tried to run the texture generation example from the incomplete sample texture provided, but I'm getting pretty poor results compared to the examples in the paper. Do you have any advice on how to improve the quality or any idea what the problem might be?

There is output I get running the example. I tried different input parameters but do not manage to get rid of black line in the middle of persons face.
texture
front_render

Output from text2texture part looks great.

Thank you in advance for answer.

Hi, there are a few things
(1) To get rid of the black pixels, we compute a tight silhouette and apply some shrinking before projecting the pixels to the UV. This is to make sure no background pixels are projected from the image to the partial texturemap. I will upload a script soon to do this.
(2) For inpainting, I usually get better results with the A1111 approach, not the diffusers. I will also upload some script to run A1111 from Python, but you could play a little with the web interface meanwhile.
(3) After inpaiting, I usually do an extra img2img step with very low noise factor. This basically fixes a lot of artifacts, but produces a texture that is slightly different than the original subject. If the noise parameter is very low, usually the identity is well kept.

I will try to upload a script that does (1), (2), and (3) exactly how I do in the results from the paper.

Hello @StGorazd I've updated the repository with the scripts to create the partial texturemap from image, and the inpainting with Automatic1111.

https://github.com/dancasas/SMPLitex?tab=readme-ov-file#smpl-texture-estimation-from-single-image

Please, check it out and let me know. Thanks!

Hi @dancasas ,
thank you for notifying me. I am currently trying to run it, but I ran into some problems. I followed the provided tutorial; however, for some reason, I am getting a different dense pose, which subsequently causes issues while generating the partial texture. I attempted to fix it myself but have not been successful so far. Do you have any advice or suggestions?

Here is the debug output:
MEN-Jackets_Vests-id_00003336-09_1_front_debug

@StGorazd you are right! I just committed a fix for this, there was an issue with the DensePose IUV ids. Now it should be fixed, could you update and re-run it?

Thank you for your prompt response. I have re-run it, and the results are significantly improved.

MEN-Jackets_Vests-id_00003336-09_1_front_debug

Tomorrow, I will try using inpaint part. I will let you know if I encounter any problems.
Thank you for your excellent work.