labmlai / annotated_deep_learning_paper_implementations

🧑‍🏫 60+ Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optimizers (adam, adabelief, sophia, ...), gans(cyclegan, stylegan2, ...), 🎮 reinforcement learning (ppo, dqn), capsnet, distillation, ... 🧠
https://nn.labml.ai
MIT License
56.45k stars 5.79k forks source link

ppo code running error #245

Open cxw-droid opened 8 months ago

cxw-droid commented 8 months ago

Hello, can you take a look at the following error? Thanks.

run code experiment.py

https://github.com/labmlai/annotated_deep_learning_paper_implementations/blob/a0679ecd90b41b8e012995a6bdf095edae590b17/labml_nn/rl/game.py#L130

cv2.error: OpenCV(4.9.0) :-1: error: (-5:Bad argument) in function 'cvtColor' Overload resolution failed:

  • src is not a numerical tuple
  • Expected Ptr for argument 'src'
vpj commented 5 months ago

Looks like it's not compatible with some newer version of opencv.