If you wish to extract new crops instead of the provided crops, follow the steps below.
-
Extract rectified surface masks from photos using the surface mask extractor project. Note that this project uses a different Python environment, due to dependencies with prior work.
-
Extract rectified surface crops from rectified surface masks by running extract_surface_crops.py.
python code/scripts/plan2scene/preprocessing/extract_surface_crops.py ./data/processed/rectified_crops/floor [MASK EXTRACTOR PATH]/data/output/floor/ python code/scripts/plan2scene/preprocessing/extract_surface_crops.py ./data/processed/rectified_crops/wall [MASK EXTRACTOR PATH]/data/output/wall/ python code/scripts/plan2scene/preprocessing/extract_surface_crops.py ./data/processed/rectified_crops/ceiling [MASK EXTRACTOR PATH]/data/output/ceiling/