-
Notifications
You must be signed in to change notification settings - Fork 10
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
Why did I come to 'mmco:unref short failure' and print this ValueError: 'Empty range for randrange()' #4
Comments
The error seems to be the length of the videos. Every video should have much more than 200 frames, so this shouldn't be a problem if they are downloaded correctly. The error is in line 218, calling random.randint with a negative parameter, and that would only happen if videos[video_index].shape[0] < 200. Try to download the videos again, and also check videos[video_index].shape[0] to make sure it's more than 200. |
I downloaded the videos by the given download_videos.py |
Can u share your version of python, opencv, scipy, tensorflow? I will try to recovery the same development environment. |
You can use this environment for testing: https://colab.research.google.com/drive/1pKFO8hUpOZv_KZetEXmvxoNfyIoO9uQj Everything up to the PPO part should be working. For the PPO part I had to run it locally. |
Thanks, I run it successfully. |
Unfortunately, I don't have access to my previously trained ppo2 model. However, you could try to make PPO work on the colab. There seem to be some problems with updated packages, but that might be not too hard to fix. And performance on Google colab is very good, it shouldn't take too long to train the model. |
I followed the procedure to download videos. After that when I tried to train the featurizer, it happened this.
![image](https://user-images.githubusercontent.com/18049905/56505108-3f46c300-654d-11e9-8e5f-76ad49e9d0fe.png)
![image](https://user-images.githubusercontent.com/18049905/56505166-6dc49e00-654d-11e9-9e3e-a7165ab8a670.png)
I tried to figure out why occurred to this error.
this means Video1 and Video3 can't successfully preprocess and only Video2 to train the featurizer.
And after I found that empty range error due to this code in TDC model, which as said in the paper.
![image](https://user-images.githubusercontent.com/18049905/56505511-77023a80-654e-11e9-8157-a83138c0d65b.png)
![image](https://user-images.githubusercontent.com/18049905/56505854-5a1a3700-654f-11e9-88e4-9d82e790e256.png)
after I changed this possible_frames_end to 80 from 200, It trains the featurizer successfully but by only Video2.
So what should I do to solve this? Thanks!
The text was updated successfully, but these errors were encountered: