Giter Site home page Giter Site logo

Comments (6)

yilundu avatar yilundu commented on August 23, 2024

Hi the maze2d code should be released now -- do you still have issues?

from diffuser.

zanghyu avatar zanghyu commented on August 23, 2024

Thanks for the reply! But it seems the error still occurs...

from diffuser.

jannerm avatar jannerm commented on August 23, 2024

Thanks for reporting. Could you check that you're on the maze2d branch and using the default maze2d config?

git checkout maze2d
python scripts/train.py --config config.maze2d --dataset maze2d-large-v1

If that doesn't solve it, could you send the full stack trace?

from diffuser.

zanghyu avatar zanghyu commented on August 23, 2024

Here's the stack trace:

Traceback (most recent call last):
  File "scripts/train.py", line 36, in <module>
    dataset = dataset_config()
  File "/data/hyzang/project/rl/representation/diffuser-main/maze2d/diffuser-maze2d/diffuser/utils/config.py", line 65, in __call__
    instance = self._class(*args, **kwargs, **self._dict)
  File "/data/hyzang/project/rl/representation/diffuser-main/maze2d/diffuser-maze2d/diffuser/datasets/sequence.py", line 28, in __init__
    fields.add_path(episode)
  File "/data/hyzang/project/rl/representation/diffuser-main/maze2d/diffuser-maze2d/diffuser/datasets/buffer.py", line 75, in add_path
    self._dict[key][self._count, :path_length] = array
IndexError: index 10000 is out of bounds for axis 0 with size 10000

The default setting of the max_n_episodes being small could still be the issue?

from diffuser.

jannerm avatar jannerm commented on August 23, 2024

Could you include everything printed up until that point by the script? I think you're right that the max_n_episodes is what's causing the error locally, but I'm trying to figure out why you're getting the error when I don't, and looking at the printed configs might help me figure that out.

from diffuser.

zanghyu avatar zanghyu commented on August 23, 2024

Sorry for the late reply, I have re-run the code today, and found it works! Thanks very much!

from diffuser.

Related Issues (20)

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.