HF-Avatar icon indicating copy to clipboard operation
HF-Avatar copied to clipboard

After model training where to get the final .obj/.mtl/.png files

Open neerajtiwari360 opened this issue 2 years ago • 8 comments

I had tried to train the model on given dataset but i am not able to see the final 3D obj/mtl/png files, can you please tell me how to get that?

neerajtiwari360 avatar Dec 04 '22 07:12 neerajtiwari360

there will be a folder named "results" created automatically

IridescentJiang avatar Dec 04 '22 08:12 IridescentJiang

Hi @overoverlord, thankyou for your reply. there are multiple onj and png files are there in result section, can you please tell me exact directory for getting all png/mtl/obj?

neerajtiwari360 avatar Dec 05 '22 09:12 neerajtiwari360

@neerajtiwari360 在这两个路径下:

HF-Avatar-main/results/dynamic_offsets/Body2D_2040_499_final_results/obj/

HF-Avatar-main/results/final_texture/Body2D_2040_499.png

wusidong avatar Dec 05 '22 14:12 wusidong

@wusidong thankyou for your reply, there are obj/png files but mtl file is not generating in result? that why I had raised this query. Can you please let me know how to get/generate it.

neerajtiwari360 avatar Dec 06 '22 11:12 neerajtiwari360

#7

wusidong avatar Dec 06 '22 14:12 wusidong

You can take a look at #7, the author said how to modify the code to get the .mtl file

wusidong avatar Dec 06 '22 14:12 wusidong

Change the code of 861 in HF-Avatar/geometry_model/network.py from

write_obj(vs=v, fs=self.fs[0], path=path) to

write_obj(vs=v, vt=self.vts[0], fs=self.fs[0], ft=self.fts[0], path=path, write_mtl=True)

wusidong avatar Dec 06 '22 14:12 wusidong

Thank you @wusidong & @wusidong got the hint on how to get the MTL. I will try it and let you know. meanwhile can see my other issue #12, to train this model fast I am setting it in 3090 with a windows 10 system.

neerajtiwari360 avatar Dec 07 '22 01:12 neerajtiwari360