allenai / procthor

🏘️ Scaling Embodied AI by Procedurally Generating Interactive 3D Houses
https://procthor.allenai.org/
Apache License 2.0
241 stars 20 forks source link

Multiagent error? #26

Open SeungyounShin opened 1 year ago

SeungyounShin commented 1 year ago
import prior 
from ai2thor.controller import Controller

dataset = prior.load_dataset("procthor-10k")
house = dataset['train'][0]

c = Controller(scene=house, height=640, width=640, fieldOfView=90, agentCount=2)

#c.reset(agentCount=5) => not work
#e = c.step(action="Initialize",raise_for_failure=True,**c.initialization_parameters,) => not work

Only a agent in the scene.

+edit

I noticed that there is an if statement on line 301 of the AgentManager.cs script in the AI2-THOR GitHub repository (https://github.com/allenai/ai2thor/blob/63947e75d0762101a141d079a4a2737f7a4656f3/unity/Assets/Scripts/AgentManager.cs#L301). If I were to passively delete this statement, would it cause any issues?

Thank you for your assistance.

liuxz-cs commented 8 months ago
import prior 
from ai2thor.controller import Controller

dataset = prior.load_dataset("procthor-10k")
house = dataset['train'][0]

c = Controller(scene=house, height=640, width=640, fieldOfView=90, agentCount=2)

#c.reset(agentCount=5) => not work
#e = c.step(action="Initialize",raise_for_failure=True,**c.initialization_parameters,) => not work

Only a agent in the scene.

+edit

I noticed that there is an if statement on line 301 of the AgentManager.cs script in the AI2-THOR GitHub repository (https://github.com/allenai/ai2thor/blob/63947e75d0762101a141d079a4a2737f7a4656f3/unity/Assets/Scripts/AgentManager.cs#L301). If I were to passively delete this statement, would it cause any issues?

Thank you for your assistance.

Do you try this, and does this work to add multiple agents in procthor?