vchoutas / smplify-x

Expressive Body Capture: 3D Hands, Face, and Body from a Single Image
https://smpl-x.is.tue.mpg.de/
Other
1.77k stars 340 forks source link

output meshes are not coming #34

Closed punjal97 closed 5 years ago

punjal97 commented 5 years ago

33

So, after the above issue, the code is running but no output meshes are being created. The code is stuck again. The output folder has different sub-folders and only a single pkl file.

Screenshot from 2019-08-08 19-22-49

punjal97 commented 5 years ago

so, after little digging in, i am getting error at line 483 https://github.com/vchoutas/smplify-x/blob/master/smplifyx/fit_single_frame.py#L483

pickle.dump(results[min_idx]['result'], result_file, protocol=2)

apparently the code is getting stuck at pickle saving?

punjal97 commented 5 years ago

after i comment this line, then also the code is getting stuck. the code is not able to exit the for loop for orientations.

for or_idx, orient in enumerate(tqdm(orientations, desc='Orientation')):
geopavlakos commented 5 years ago

I would suggest inserting a breakpoint and running the code line by line to identify which command is responsible for getting the code stuck. Also, it might be a good idea to consider deactivating the visualize and save_meshes flags during debugging to see if one of these operations is responsible.

punjal97 commented 5 years ago

@geopavlakos actually, i was trying that only using python debuggger. It seems that the code is not able to come out of the loop

with fitting.FittingMonitor(
            batch_size=batch_size, visualize=visualize, **kwargs) as monitor:
vchoutas commented 5 years ago

@Chromium97 In issue #33 you mention that you get the following error:pyglet.gl.ContextException: Could not create GL context Is a window opening and displaying any results during optimization? Can you try running the code with visualize=False and save_meshes=True ? This should disable any rendering and still save the output meshes.

punjal97 commented 5 years ago

@vchoutas no, there is no window opening during optimization due to error: pyglet.gl.ContextException: Could not create GL context and yes, finally the code run after setting visualize=False and save_meshes=True i was by mistakenly, keeping visualize=True while running the terminal command, even when visualize=False was there in fit_single_frame.py Thankyou, for all the help

CrossLee1 commented 4 years ago

@Chromium97 with visualize=False, it cannot generate the result image with .obj mesh. How can you visualize the result image.