Git Product home page Git Product logo

adversarialtexture's Introduction

AdversarialTexture

Adversarial Texture Optimization from RGB-D Scans (CVPR 2020).

AdversarialTexture Teaser

Scanning Data Download

Please refer to 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 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. You will be able to see the rendering comparison in data/visual.

cd src
python visualize.py

Authors

© Jingwei Huang, Stanford University

IMPORTANT: If you use this code please cite the following in any resulting publication:

@inproceedings{huang2020adversarial,
  title={Adversarial Texture Optimization from RGB-D Scans},
  author={Huang, Jingwei and Thies, Justus and Dai, Angela and Kundu, Abhijit and Jiang, Chiyu and Guibas, Leonidas J and Niessner, Matthias and Funkhouser, Thomas},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={1559--1568},
  year={2020}
}

The rendering process is a modification of pyRender.

adversarialtexture's People

Contributors

hjwdzh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adversarialtexture's Issues

Cannot download the data

Hello, I tried to download the data with commands in the readme at data directory, and they all response 404.
Is there any thing wrong with the data source?
Expect for your reply!

What is the effect of Cache?

Very impressive work! While checking the dataset file, I found you utilize the cache to ensure no repeat calculation for each source image. But it will lead to one-to-one matching during training, rather than selecting the target view randomly. Is it right?

Questions about the code

Dear Jingwei, I have other two questions about the code

  • In Line128 of dataset.py, why 1-uv?

  • In Line 146 of model.py, why discrim_loss is set to 0 when it is greater than gen_loss_GAN?

Versions of dependent packages

Hello,could you write the Dependencies in readme?eg. I install TF2 but the code need TF1.I would be very grateful if you could accept my opinion.Thanks.

About Qianyi Zhou's data - the fountain model

It's a great work and thank you for sharing the code!

I have tried to run the code with your chair data, and it did show a significant improvement compared to L1 result.

Then, I edit render_scan.py file to read data from Zhou's fountain model (I choose around 30 RGBD frames as key frames, and use code from "Let there be color" to get the obj and mtl files from all 30 key frames.), I run the code with default parameters (λ=10.0, iter=4001).

But I don't get the fine result as the supplemental shows.

Here's what I get:

Before (L1):
fountain
snapshot00

After Iterations:
fountain
snapshot01

Is anything missing to run such RGBD datasets?

Thanks again for the interesting work!

About custom dataset

Hi, thank you for sharing source code, it's a fancy work!

I have a question about using custom dasaset. Since I have some RGBD dataset, I composed it to .sens file like BundleFusion (e.g. apt0.sens). But it couldn't work well using render_scan.py.

Any suggestion or is there a detail about how your .sens file composed?

Thank you~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.