-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,29 @@ | ||
# AdversarialTexture | ||
Adversarial Texture Optimization from RGB-D Scans (CVPR 2020). | ||
|
||
![AdversarialTexture Teaser](https://github.com/hjwdzh/AdversarialTexture/raw/master/res/teaser.png) | ||
|
||
### Scanning Data Download | ||
Please refer to [**data**](https://github.com/hjwdzh/AdversarialTexture/raw/master/data/) directory for details. | ||
|
||
Before run following scripts, please modify the data_path in src/config.py as the absolute path of the data folder (e.g. Adversarial/data) where you download all data. | ||
|
||
### Prepare for Training (Optimization) | ||
Please refer to [**src/preprocessing**](https://github.com/hjwdzh/AdversarialTexture/raw/master/src/preprocessing) directory for details. | ||
|
||
### Run Training (Optimization) | ||
Consider execute run_all.sh in parallel. | ||
``` | ||
cd src/textureoptim | ||
python gen_script.py | ||
sh run_all.sh | ||
``` | ||
|
||
### Result Visualization | ||
The result will be stored in data/result/chairID/chairID.png. You can use them to replace the corresponding default texture in data/shape, and use meshlab to open obj files to see the results. | ||
|
||
Alternatively, we provide a simple script to render results. | ||
``` | ||
cd src | ||
python visualize.py | ||
``` |