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
ValueError: Invalid commit id: xxxxxxx - no build exists for arch=Linux #25
Comments
Hi @Leeeshuz, Can you give some machine information (e.g. what version of Linux are you using?) and let me know what version of Can you also try running
and letting me know if you see the same error? |
Hi, @Lucaweihs, sorry for ignoring these information. The project was built on Ubuntu 18.04.5 LTS with python 3.6.12 (Anaconda). The ai2thor(3.3.4) library is installed via 'pip' following to the installation guide of this project. The project is running in a remote server thus on headless mode, the Xorg is running normally. I did a test as you suggested and the same error occurs. I tried my best to go through the related codes of ai2thor project to figure out this issue and I found that this may be caused by the platform build or something related to the commit_id. I think further test is needed to locate the problem and can you give some suggestions? Thank you! |
UPDATE!!! I re-checked the 'requirements.txt' and found that it specifies"ai2thor>=2.7.2" and I think this may be the reason that why the newer 3.3.4 version was installed. I suggest that requirements.txt file should be updated to avoid these issues. Moreover, I am still confused about what the 'commit_id' meaning. Since I found that when runing 'example.py' it prints the commit_id: "f46d5ec42b65fdae9d9a48db2b4fb6d25afbd1fe", while simply executing Finally, I can run the "example.py" successfully while it sometimes may be interrupted by "invalid action: MakeObjectBreakable". I think this action may be remove in v2.7.2. Therefore, how can I find the defined action and replace/modify these possiblly removed actions? PS: The invalid commit_id problem is still not resolved in v3.3.4 and I have no idea about that. Hope that you guys can figure it out! |
Hi @Leeeshuz,
Basically there are two components to AI2-THOR:
All the python API really does is convey commands to the Unity build. The Unity build will do all the processing and then returns sensor readings (e.g. RGB images) along with metadata (e.g. action was/wasn't successful, agent position is (x,y,z), etc). The commit id is used here to specify which version of the Unity build to use, the rearrangement project uses a special Unity build ( There is some effort made to ensure that the python API is compatible with older unity builds.
Strangely I am struggling to reproduce the error you're seeing with Can you try doing the below to reinstall everything and re-run the example script? # Deactivate your conda environment (if activated)
conda deactivate
# Delete the existing environment (this is assuming you initially installed the conda environment using the environment.yml and didn't change the environment name)
conda remove --name thor-rearrange --all
# Reinstall the environment
export MY_ENV_NAME=thor-rearrange
export CONDA_BASE="$(dirname $(dirname "${CONDA_EXE}"))"
export PIP_SRC="${CONDA_BASE}/envs/${MY_ENV_NAME}/pipsrc"
conda env create --file environment.yml --name $MY_ENV_NAME
# Activate the environment
conda activate thor-rearrange
# Make sure you have installed the correct version of the cuda drivers
# replacing YOUR_CUDA_VERSION with your CUDA version.
conda install cudatoolkit=YOUR_CUDA_VERSION -c pytorch
# Move into the ai2thor-rearrangement directory
cd PATH/TO/ai2thor-rearrangement
# Export the current directory to your python path
export PYTHONPATH=$PYTHONPATH:$PWD
# Run the example
python example.py If you're still getting the same error after doing the above can you give me the output of |
Thank you very much for the explanation for the "commit_id". So does it mean that it is still "unsuccessful" when running I will re-check the issues and try to re-install the whole environment on Monday since I cannot get access to the remote server on weekends. I will update if there is any progress. Thank you again for the explicit explanation! |
Problem solved! Seems that something has borken the environment zip file of commit_id: However, another problem occurred during running the baseline code. The program would crash during training even though I reduce the |
Hi @Leeeshuz, Happy to hear the commit problem issue resolved itself :)!
Generally from my experience, seeing that training crashes when resetting a scene frequently suggests that something else was the problem (often the error can be found earlier in the output). Could you perhaps save all the output to a log file and paste it here (e.g. the below command will save the output of running the
|
Seems running normally after several trials and it has been running for millions of steps. I am really interested in the visualization of the whole rearrangement process the agent performed, so would you mind giving some instructions/demos on how to generate/render a video with pretrained/user-trained models to observe the initial scenes, all actions performed by the agent and the final visual state of the scene when the episodes ends. Thanks a lot! |
Hi @Leeeshuz, Happy to hear it's training successfully! Visualization is always a bit messy. If you'd like to get an idea of how to visualize things from a top down perspective, take a look at the discussion in this PR. For visualizing a saved model checkpoint from the agent's perspective, I'd recommend doing something like I've done for my tests of the rearrangement mapping code and saving the frames after every agent action (here's a function for saving a list of numpy frames as a video, note that you can grab the frame from the |
Thanks a lot! I have successfully generated a top down perspective video under your instruction, and I will try if an agent's perspective video can be generated further. I am really grateful for your kindly help and patience during my environment construction and project running. I think a summarization should be made for all the key issues I have met during these days if it can help any further readers. (1) Commit id: it is used to specify which version of the Unity build to use during the project running. For the rearrangement task, it uses Unity build with Commit id: (2) Invalid Commit id problem: Maybe firstly the environment zip file related to the specified commit id should be downloaded if the remote server does not have internet connection. Try to specify the commit id when the ai2thor controller is built by: (3) Environment zip file: It may cause some damage to the environment zip file during the downloading, especially when the internet connection is not that stable. Make sure to check the files carefully during the (4)Visualization: May be hard to find an official tutorial on this. However, combining the codes from allenai/ai2thor#124 and https://github.com/allenai/cordial-sync/blob/master/utils/visualization_utils.py#L109 would easily generate a video from top-down perspective. |
Hello, I am new to the embodied AI area and when I tried to run the baseline model training. Following errors occurred and I really do not know what has happened. Is there anybody that could provide any clues on what may cause this. I would be very appreciated for this!
The text was updated successfully, but these errors were encountered: