GithubHelp home page GithubHelp logo

Fail to collect data about behaviorretrieval HOT 6 OPEN

maxdu17 avatar maxdu17 commented on August 10, 2024
Fail to collect data

from behaviorretrieval.

Comments (6)

MaxDu17 avatar MaxDu17 commented on August 10, 2024

Hi! Thanks for reaching out--this is interesting. Just to confirm, you were running something along the lines of

python run_trained_agent.py \
  --agent SquarePeg \
  --eval_path datasets/square_machine_policy/ \
  --reference_data datasets/square/ph/image.hdf5 \
  --config configs/image_collection.json \
  --machine_oracle --success_only --dataset_obs \
  --dataset_path datasets/square_machine_policy/square_10_good.hdf5 \
  --n_rollouts 10 --horizon 400 --seed 11

The run_trained_agent needs a checkpoint if --machine_oracle is not passed in. Otherwise, it should default to the machine policy (if this is not the case, please let me know--that would definitely be a mistake on my end)

from behaviorretrieval.

ZlSong417 avatar ZlSong417 commented on August 10, 2024

@davidkillerhahaha Hi,Have you solved the problem? I need your help. Thanks.

from behaviorretrieval.

MaxDu17 avatar MaxDu17 commented on August 10, 2024

Hi! Can you give more details about your particular setup? This might be a problem on my end, but it should have a very easy fix

from behaviorretrieval.

ZlSong417 avatar ZlSong417 commented on August 10, 2024

@MaxDu17 Hi!MAX,When I run run_trained_agent.py,error appear:
Ubuntu18.04 python3.7 robosuite1.2 robomimic0.2.0
(BR) szl@szl-virtual-machine:~/BehaviorRetrieval$ python run_trained_agent.py --agent SquarePeg --eval_path datasets/square_machine_policy/ --reference_data datasets/square/ph/image.hdf5 --config configs/image_collection.json --machine_oracle --success_only --dataset_obs --dataset_path datasets/square_machine_policy/square_10_good.hdf5 --n_rollouts 10 --horizon 400 --seed 11
Created environment with name PickPlaceCan
Action size is 7

============= Initialized Observation Utils with Obs Spec =============

using obs modality: low_dim with keys: ['robot0_eef_quat', 'robot0_eef_pos', 'object', 'robot0_gripper_qpos']
using obs modality: rgb with keys: ['agentview_image', 'robot0_eye_in_hand_image']
using obs modality: depth with keys: []
using obs modality: scan with keys: []
Traceback (most recent call last):
File "run_trained_agent.py", line 536, in
run_trained_agent(args)
File "run_trained_agent.py", line 294, in run_trained_agent
data_writer = h5py.File(args.dataset_path, "w")
File "/home/szl/anaconda3/envs/BR/lib/python3.7/site-packages/h5py/_hl/files.py", line 567, in init
fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)
File "/home/szl/anaconda3/envs/BR/lib/python3.7/site-packages/h5py/_hl/files.py", line 237, in make_fid
fid = h5f.create(name, h5f.ACC_TRUNC, fapl=fapl, fcpl=fcpl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5f.pyx", line 126, in h5py.h5f.create
FileNotFoundError: [Errno 2] Unable to create file (unable to open file: name = 'datasets/square_machine_policy/square_10_good.hdf5', errno = 2, error message = 'No such file or directory', flags = 13, o_flags = 242)

What makes this error?
Hope some tips,thanks.

from behaviorretrieval.

MaxDu17 avatar MaxDu17 commented on August 10, 2024

Have you tried creating the datasets/square_machine_policy folder before running the script? It might be having some difficulty with recursive file creation

from behaviorretrieval.

ZlSong417 avatar ZlSong417 commented on August 10, 2024

Thanks for your advice, I have successfully created datasets/square_machine_policy.

from behaviorretrieval.

Related Issues (3)

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.