facebookresearch / phyre

PHYRE is a benchmark for physical reasoning.
https://phyre.ai
Apache License 2.0
430 stars 61 forks source link

Simulation with no action #12

Closed keeganharris closed 4 years ago

keeganharris commented 4 years ago

Is there a way to run a simulation without taking any action and get the resulting images, similar to pressing "Simulate" in the demo without taking any action?

akhti commented 4 years ago

It's possible, but it's not part of public API. So if you are building an agent for a published tier, it's better to avoid.

import phyre
import matplotlib.pyplot as plt
task = phyre.loader.load_compiled_task_dict()['00000:000']
_, _, images = phyre.simulator.magic_ponies(task, phyre.simulator.scene_if.UserInput())
plt.imshow(images[0][::-1])
keeganharris commented 4 years ago

Great, thanks.