Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two questions regarding data generation #4

Open
AlexWanghaoming opened this issue Nov 12, 2024 · 3 comments
Open

Two questions regarding data generation #4

AlexWanghaoming opened this issue Nov 12, 2024 · 3 comments

Comments

@AlexWanghaoming
Copy link

Hi, I have two questions about date generation in virtualhome:

  1. I have generated the goal of a domain using vh/data_gene/gen_data/vh_init.py and the result in pickle is comprised of task_id, task_name, env_id, init_graph, task_goal, level and init_rooms. How can I know the task instruction?
  2. When I generated expert data using python vh/data_gene/testing_agents/gene_data.py --mode simple --dataset_path ./vh/dataset/env_task_set_50_simple.pik , an error Time out for action: {0: None} occurs at this line. This erros appeared randomly. Could you please help to solve it?

Thank you

@1989Ryan
Copy link
Owner

Hi, the instructions will be generated in the later steps. vh/data_gene/gen_data/vh_init.py only generates the environment set-up.

Unfortunately, I cannot replicate your errors in your 2nd point. It would be great if you could provide more detailed information regarding your errors. Before that, I would suggest you take a look at this guidance: https://github.com/wanbiao1993usa/llm-mcts.

@AlexWanghaoming
Copy link
Author

Hi,

Thanks for your reply. I just follow the guidance you provide. But when I run python vh/data_gene/testing_agents/gene_data.py --mode simple --dataset_path ./vh/dataset/env_task_set_50_simple.pik, an error ValueError: too many values to unpack (expected 4) occurs at this line
. I modified the line to (obs, reward, done, env_info, _ ), agent_actions, agent_info = self.step(true_graph=is_train) and the error seems being solved. Could you please figure out which step will generate task instructions?

Best

@1989Ryan
Copy link
Owner

Hi, the error is caused by the wrong submodule branch. You can go to the submodule vh/data_gene and switch to the main branch. The repo is updated accordingly. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants