Code Monkey home page Code Monkey logo

Comments (6)

MaxSobolMark avatar MaxSobolMark commented on June 27, 2024

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.

from hardrlwithyoutube.

kynehc avatar kynehc commented on June 27, 2024

I downloaded the videos by the given download_videos.py
python download_videos.py --filename montezuma.txt
I have tried many times and it’s same. And Video1 and 3 can’t preprocess due to the error “unref short failure”.

from hardrlwithyoutube.

kynehc avatar kynehc commented on June 27, 2024

Can u share your version of python, opencv, scipy, tensorflow? I will try to recovery the same development environment.

from hardrlwithyoutube.

MaxSobolMark avatar MaxSobolMark commented on June 27, 2024

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.

from hardrlwithyoutube.

kynehc avatar kynehc commented on June 27, 2024

Thanks, I run it successfully.
But the performance seems like not good, would u share your saved model after ppo2, so I can run it locally to see the good results.

from hardrlwithyoutube.

MaxSobolMark avatar MaxSobolMark commented on June 27, 2024

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.

from hardrlwithyoutube.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.