peteanderson80 / Matterport3DSimulator

AI Research Platform for Reinforcement Learning from Real Panoramic Images.
Other
503 stars 130 forks source link

Memory leak during newEpisode #81

Open guhur opened 4 years ago

guhur commented 4 years ago

I observed a memory leak during the newEpisode call function:

dataset_file = "./tasks/R2R/data/R2R_train.json"
HEIGHT = 480
VFOV = np.radians(60)
sim = MatterSim.Simulator()
sim.setCameraResolution(WIDTH, HEIGHT)
sim.setDiscretizedViewingAngles(True)
sim.setCameraVFOV(VFOV)
sim.initialize()

with open(dataset_file) as fid:
    data = json.load(fid)

for sample in tqdm(data):
    scan_id = sample["scan"]
    for viewpoint_id in sample["path"]:
        sim.newEpisode([scan_id], [viewpoint_id], [0], [0])

My memory (16GB) is quickly getting full I tested with a binary compiled with EGL or OSMesa

Tangolin commented 2 years ago

@guhur did you manage to find a solution for this probelm?

guhur commented 2 years ago

Sorry nope :/

On Sat, Feb 26, 2022, 10:41 AM Siteng @.***> wrote:

@guhur https://github.com/guhur did you manage to find a solution for this probelm?

— Reply to this email directly, view it on GitHub https://github.com/peteanderson80/Matterport3DSimulator/issues/81#issuecomment-1051914716, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC52MDUBAUSJHSOXPKRFYL3U5CN5BANCNFSM4S3A2SSA . You are receiving this because you were mentioned.Message ID: @.***>

Tangolin commented 2 years ago

It's alright! Thank you :)