Instructions to use fishze/Refacade with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use fishze/Refacade with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("fishze/Refacade", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
| license: apache-2.0 | |
| pipeline_tag: video-to-video | |
| library_name: diffusers | |
| <h1 align="center"> | |
| <span style="color:#2196f3;"><b>Refaçade</b></span>: Editing Object with Given Reference Texture | |
| </h1> | |
| <p align="center"> | |
| Youze Huang<sup>1,*</sup> | |
| Penghui Ruan<sup>2,*</sup> | |
| Bojia Zi<sup>3,*</sup> | |
| Xianbiao Qi<sup>4,†</sup> | |
| Jianan Wang<sup>5</sup> | |
| Rong Xiao<sup>4</sup> <br> | |
| <sup>*</sup> Equal contribution. <sup>†</sup> Corresponding author. | |
| </p> | |
| <p align="center"> | |
| <a href="https://huggingface.co/fishze/Refacade"><img alt="Huggingface Model" src="https://img.shields.io/badge/%F0%9F%A4%97%20Huggingface-Model-brightgreen"></a> | |
| <a href="https://github.com/fishZe233/Refacade"><img alt="Github" src="https://img.shields.io/badge/Refaçade-github-black"></a> | |
| <a href="https://arxiv.org/abs/2512.04534"><img alt="arXiv" src="https://img.shields.io/badge/Refaçade-arXiv-b31b1b"></a> | |
| <a href="https://huggingface.co/spaces/Ryan-PR/Refacade"><img alt="Huggingface Space" src="https://img.shields.io/badge/%F0%9F%A4%97%20Huggingface-Space-1e90ff"></a> | |
| <a href="https://refacade.github.io/"><img alt="Demo Page" src="https://img.shields.io/badge/Website-Demo%20Page-yellow"></a> | |
| </p> | |
| ## 🚀 Overview | |
| **Refaçade** is a unified image–video retexturing model built upon the Wan2.1-based VACE framework. It edits the surface material of specified objects in a video using user-provided reference textures, while preserving the original geometry and background. We use **Jigsaw Permutation** to decouple structural information in the reference image and a **Texture Remover** to disentangle the original object’s appearance. This functionality enables users to explore diverse possibilities effectively. | |
| --- | |
| ## 🛠️ Installation | |
| Our project is built upon [Wan2.1-based VACE](https://github.com/ali-vilab/VACE). | |
| ```bash | |
| pip install -r requirements.txt | |
| pip install wan@git+https://github.com/Wan-Video/Wan2.1 | |
| ``` | |
| --- | |
| ## 🏃♂️ Gradio Demo | |
| You can use this gradio demo to retexture objects. Note that you don't need to compile the SAM2. | |
| ```bash | |
| python app.py | |
| ``` | |
| --- | |
| ## 📂 Download | |
| First, download our checkpoints: | |
| ```shell | |
| huggingface-cli download --resume-download fishze/Refacade --local-dir models | |
| ``` | |
| Next, download SAM2 [sam2_hiera_large.pt](https://huggingface.co/facebook/sam2-hiera-large) and place it at: | |
| ```shell | |
| sam2/SAM2-Video-Predictor/checkpoints/ | |
| ``` | |
| We recommend to organize local directories as: | |
| ```angular2html | |
| Refacade | |
| ├── ... | |
| ├── examples | |
| ├── models | |
| │ ├── refacade | |
| │ │ └── ... | |
| │ ├── texture_remover | |
| │ │ └── ... | |
| │ └── vae | |
| │ └── ... | |
| ├── sam2 | |
| └── ... | |
| ``` | |
| --- |