habitat-sim icon indicating copy to clipboard operation
habitat-sim copied to clipboard

issues when creating two image extractor

Open Derry-Xing opened this issue 2 years ago • 1 comments

Habitat-Sim version

amin

🐛 Bug

/envs/habitat/lib/python3.8/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 6 leaked semaphore objects to clean up at shutdown warnings.warn('resource_tracker: There appear to be %d '

Steps to Reproduce

train_extractor = ImageExtractor(args.datadir, output=['rgba'], pose_extractor_name="panorama_extractor", mode="train")
test_extractor = ImageExtractor(args.datadir, output=['rgba'], pose_extractor_name="panorama_extractor", mode="test")

Derry-Xing avatar Jun 14 '22 04:06 Derry-Xing

We don't support multiple instances of the Simulator object (instanced within the ImageExtractor) within the same python process. You may want to try a multiprocess approach or run your train and test extractors sequentially.

aclegg3 avatar Jun 14 '22 14:06 aclegg3