This repository complements our (Oral) BMVC'23 paper titled "Breathing New Life into 3D Assets with Generative Repainting" by Tianfu Wang, Menelaos Kanakis, Konrad Schindler, Luc Van Gool, and Anton Obukhov.
As the title suggests, our method takes a 3D model and paints it according to a text prompt:
Left: Input 3D model. Right: The same model painted by our method with the user-specified text prompt: "Pastel superhero unicorn".
Explore select models from the ShapeNetSem dataset, showcasing their texturing by our method and competition, on the project page:
To paint your own 3D model, use Colab or your local environment as described below.
Clone the repository and run the command below in the repository root. The process finishes in under 15 min on a machine with a GPU.
sh scripts/docker_run.sh assets/horse.ply out/ "pastel superhero unicorn"
Colab requires the GPU runtime (and thus a subscription) and takes an extra 15 minutes to install the environment. It eliminates the need to run the application locally and use Docker. Unlike the dockerized environment, the Colab functionality is not guaranteed. Click the badge to start:
Run sh scripts/setup.sh <WORK>
to set up a new working directory pointed to by <WORK>
.
This requires ~30 GB of disk space and installs a custom Python runtime with all dependencies.
Once the setup completes, use sh scripts/conda_run.sh <WORK> <PATH_MODEL> <PATH_OUTPUT_DIR> <PROMPT>
to paint your 3D model located at PATH_MODEL
according to the text PROMPT
and put the results in PATH_OUTPUT_DIR
.
Rerun sh scripts/setup.sh <WORK> --with-shapenet
to complement the setup with the dataset.
Once the setup completes, use sh scripts/conda_run_shapenet.sh <WORK> <ID_1> ... <ID_N>
to process models from the ShapeNetSem dataset.
Please support our research by citing our paper:
@inproceedings{wang2023breathing,
title={Breathing New Life into 3D Assets with Generative Repainting},
author={Wang, Tianfu and Kanakis, Menelaos and Schindler, Konrad and Van Gool, Luc and Obukhov, Anton},
booktitle={Proceedings of the British Machine Vision Conference (BMVC)},
year={2023},
publisher={BMVA Press}
}
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.