Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck while rendering trajectory #8

Closed
jeje910 opened this issue Aug 15, 2022 · 9 comments
Closed

Stuck while rendering trajectory #8

jeje910 opened this issue Aug 15, 2022 · 9 comments

Comments

@jeje910
Copy link

jeje910 commented Aug 15, 2022

Hi,
I'm now suffering from the code stucking and would ask some help to deal with it.

The problem command is as below:
python -m alfred.gen.render_trajs

From debugging, I found that the lines below makes it get stuck

lock = threading.Lock()
if args.num_threads > 0:
# start threads
threads = []
for worker_id in range(min(args.num_threads, len(traj_list))):
thread = threading.Thread(
target=start_worker,
args=(worker_id, traj_list, args, lock, processed_files_path))
threads.append(thread)
thread.start()
time.sleep(1)
for thread in threads:
thread.join()
else:
# run in the main thread
start_worker(0, traj_list, args, lock, processed_files_path)
return

More precisely, the code stuck while performing the lines below.

super().reset(scene_name)
event = super().step(dict(
action='Initialize',
gridSize=grid_size,
cameraY=camera_y,
renderImage=render_image,
renderDepthImage=render_depth_image,
renderClassImage=render_class_image,
renderObjectImage=render_object_image,
visibility_distance=visibility_distance,
makeAgentsVisible=False,
))

It stuck due to thorEnv so I searched some issue seems related.
askforalfred/alfred#120 (comment)

There is no error but the simulator just stop on some timestamp and don't move more than a day..
It would be very appreciate if you help

@jeje910
Copy link
Author

jeje910 commented Aug 23, 2022

Hi, the issue was just from the versions of modules.
I just re-create the virtual environment with with older modules and works well! (Used some version history logs of moudles)
I'll close the issue myself!

@jeje910 jeje910 closed this as completed Aug 23, 2022
@Samuel-Fipps
Copy link

Thank you I had this problem too

@jiahai-feng
Copy link

What modules specifically? I'm also stuck on this!

@Samuel-Fipps
Copy link

I don't know which one but here is my list with my versions.
added seed packages: ai2thor==2.1.0, estraces==1.8.0, etaprogress==1.1.1, filelock==3.0.0, gtimer==1.0.0b5, jsonpickle==1.5.2, lmdb==1.3.0, munch==2.5.0, numpy==1.21.6, pip==22.2.2, py_cpuinfo==8.0.0, sacred==0.8.2, scared==0.9.1, setuptools==65.3.0, tensorboardX==1.8, torch==1.7.1+cu110, torchaudio==0.7.2, torchvision==0.8.2+cu110, trsfile==0.3.2, wheel==0.37.1

@pushkalkatara
Copy link

Hi @jeje910, could you please share the commit for older modules that you used? I am also facing the same issue.
Tried the versions which @Samuel-Fipps shared but had no luck.

@jeje910
Copy link
Author

jeje910 commented Oct 19, 2022

In my case, torch version was the matter but not sure. I downloaded the torch==1.6.0 somehow which is not supported anymore and worked well. But, not only the torch version but also other modules also had conflict with it so I cannot specify which module should be changed.. And Unfortunately, I didn't saved the virtual environment config so that I could not help you that much.. Sorry for the late reply and poor help.

@artyaltanzaya
Copy link

@jeje910 I installed torch==1.1.0 which is old but the torch is not compatible with my gpu. Which gpu did you run it on? What is the workaround this? I have RTX3060.

torch 1.1.0 which is required for ai2thor==2.1.0 is not compatible for sm_86.

@jeje910
Copy link
Author

jeje910 commented Oct 31, 2022

In case of ET model, I ran my code on RTX3090 and worked well. (But the environment seems not that proper..)

@Samuel-Fipps
Copy link

Okay I finally went and found the problem. You need.
pip install Werkzeug==2.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants