Open jongunee opened 9 months ago
Solved!
it was because of the unit
/shapy/attributes/attributes/dataloader/demo.py
class DEMO_A2S():
def __init__(
self,
#betas_folder='../samples/shapy_fit/',
ds_gender='female',
model_gender='neutral',
model_type='smplx',
rating_folder='../samples/attributes/'
):
....
#self.db['height_gt'] = self.db['heights'].astype(np.float32) #before
self.db['height_gt'] = self.db['heights'].astype(np.float32) / 100 #after
self.db['chest'] = self.db['bust'].astype(np.float32) / 100
self.db['waist'] = self.db['waist'].astype(np.float32) / 100
self.db['hips'] = self.db['hips'].astype(np.float32) / 100
In ModelAgency dataset file, units are all "cm", so i think it was not matched.
I have another question. There are no "weights" GT data in ModelAgency file, so i cannot execute "ahwcwh2s". Is there any dataset that satisfies all conditions?
@jongunee I'm trying to figure out how to run the shapy model on my own RGB images, without needing any additional files like keypoints or vertices.
I would greatly appreciate it if you could provide me an explanation of how to run the code with my RGB images only - to get the measurements of the body
Thank you very much!
Oh sorry for late reply... I completely forgot about it.
Unfortunately, what I've done is inferred using the A2S function. That means, i inferred 3d mesh using linguistic attributes like below.
"attributes": [
2.4285714285714284,
2.5,
3.2857142857142856,
2.0714285714285716,
4.285714285714286,
3.0,
3.5,
3.9285714285714284,
3.357142857142857,
2.857142857142857,
1.4285714285714286,
1.7857142857142858,
3.0,
1.6428571428571428,
4.142857142857143
]
to 3d mesh output.
So i didn't use RGB images in this case. If i test your case, let you know.
Hi
Thanks for this exciting project. I am trying to run A2S using ModelAgence data.
I downloaded the ModelAgencydata, but it seemed impossible to use it for testing right away, so I checked the file
modeldata_for_a2s_mal.pt
and the filemodeldata_for_a2s_mal.pt
in the path of/shapy/samples/attributes
. And I pre-processed the data.When I followed your demo code below:
a) is worked well but the rest of the cases had very strange betas results like this:
Unlike a2s, ahcwh2s seems to require additional setup or previous steps, is that right? If so, which one do I need?