Closed punjal97 closed 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?
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')):
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.
@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:
@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.
@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
@Chromium97 with visualize=False
, it cannot generate the result image with .obj mesh.
How can you visualize the result image.
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.