GithubHelp home page GithubHelp logo

tartavull / alfredo Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 0.0 262 KB

Relentlessly learning, persistently failing, but never surrendering.

License: MIT License

Nix 28.98% Python 51.16% Go 19.85%
genetic-algorithms reinforcement-learning evolutionary-algorithms gym-environments artificial-intelligence brax

alfredo's Introduction

Alfredo

Relentlessly learning, persistently failing, but never surrendering.

alfredo_upscale

built with nix License: MIT Test

Read the documentation to get started!




โญ Star this project to stay in the loop with exciting updates, and to show your support for the hardworking contributors shaping Alfredo's evolution!

Star History Chart

alfredo's People

Contributors

baduhai avatar mginoya avatar tartavull avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

alfredo's Issues

Changing Version of Python Packages through Nix

Attempting to switch gym package from 0.26.2 to 0.25.2.

Steps taken so far have been to modify nix/gym.nix line 11, version = "0.25.2".

However, how can these changes be reflected within nix? Upon reloading the terminal and running nix/nix-shell, gym package is still version 0.26.2.

AttributeError: module 'gym.wrappers.monitoring.video_recorder' has no attribute 'ImageEncoder'

Running either baseline-a2c.py or baseline-dqn.py results in AttributeError: module 'gym.wrappers.monitoring.video_recorder' has no attribute 'ImageEncoder'. My assumption is the issue is to do with the gym version. Currently, the nix configuration is at 0.26.2.

Reproduce

cd ./nix && nix-shell
python3 baseline-a2c.py

Full Error Output

Traceback (most recent call last):
  File "/nix/store/hcwzsghil8rw2b650nqdwz4pgpvvzz3z-python3-3.10.8-env/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 1075, in init
    wi.setup(kwargs)
  File "/nix/store/hcwzsghil8rw2b650nqdwz4pgpvvzz3z-python3-3.10.8-env/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 247, in setup
    wandb.gym.monitor()
  File "/nix/store/hcwzsghil8rw2b650nqdwz4pgpvvzz3z-python3-3.10.8-env/lib/python3.10/site-packages/wandb/integration/gym/__init__.py", line 11, in monitor
    vcr.ImageEncoder.orig_close = vcr.ImageEncoder.close
AttributeError: module 'gym.wrappers.monitoring.video_recorder' has no attribute 'ImageEncoder'
wandb: ERROR Abnormal program exit
Traceback (most recent call last):
  File "/nix/store/hcwzsghil8rw2b650nqdwz4pgpvvzz3z-python3-3.10.8-env/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 1075, in init
    wi.setup(kwargs)
  File "/nix/store/hcwzsghil8rw2b650nqdwz4pgpvvzz3z-python3-3.10.8-env/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 247, in setup
    wandb.gym.monitor()
  File "/nix/store/hcwzsghil8rw2b650nqdwz4pgpvvzz3z-python3-3.10.8-env/lib/python3.10/site-packages/wandb/integration/gym/__init__.py", line 11, in monitor
    vcr.ImageEncoder.orig_close = vcr.ImageEncoder.close
AttributeError: module 'gym.wrappers.monitoring.video_recorder' has no attribute 'ImageEncoder'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/kishdubey/Documents/projects/genetic-intelligence/benchmark/BipedalWalker-v3/baseline-a2c.py", line 29, in <module>
    never_ending_render("BipedalWalker-v3", train())
  File "/home/kishdubey/Documents/projects/genetic-intelligence/benchmark/BipedalWalker-v3/baseline-a2c.py", line 25, in train
    return train_model(config, A2C)
  File "/nix/store/hcwzsghil8rw2b650nqdwz4pgpvvzz3z-python3-3.10.8-env/lib/python3.10/site-packages/genetic_intelligence/train.py", line 29, in train_model
    run = wandb.init(
  File "/nix/store/hcwzsghil8rw2b650nqdwz4pgpvvzz3z-python3-3.10.8-env/lib/python3.10/site-packages/wandb/sdk/wandb_init.py", line 1116, in init
    raise Exception("problem") from error_seen
Exception: problem

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.