README.md
September 5, 2020 ยท View on GitHub
About
This repo is the image manipulation demo of "Self-Supervised Scene De-occlusion".
- Below is the demo.
For further information, please contact Xiaohang Zhan.
Usage
-
Clone the repo, install dependencies.
git clone https://github.com/XiaohangZhan/deocclusion-demo pip install PyQt5, opencv-python -
Run the demo.
python main.py -
Interactions.
- Click
Opento open an image fromdecomposition/image_*.png. - Click
De-occlusionto load decomposed components. - Use mouse to drag objects.
- Mouse right click to change ordering or save the object.
- Click
Show Objectsto show each object in order. - Click
Resetto reset to the original status. - Click
Insertand open an image frommaterialsto insert it. - Push
UporDownarrow button to zoom out or zoom in the object. - Push
LeftorRightarrow button to rotate the object. - Click
Save Asto save the re-composed image.
- Click
-
Try new images.
-
First of all, you should launch the jupyter notebooks here, e.g.,
demo_cocoa.ipynb. -
Second, run the notebook up to the last cell. In the last cell, change the
Falseunder# savetoTrue. In this way, the completed objects as well as the background are saved following the topological order underoutputs/decomposition/. -
Third, copy the image as well as the folder containing the decomposed components under
decompositionin this repo. Then enjoy yourself to re-compose the image.
Notice
There are still some bugs. Since I have no time to fix them, you are welcome to raise pull request to fix them. The bugs are below:
- When you click
OpenorInsertto browse a folder, but choose cancel, the program crash.