Skip to content

CZY-Code/PGRDiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

All-in-One Mural Restoration with Prompt-Guided Residual Diffusion

Installation

  1. Download source code and dataset:

    • git clone https://github.com/CZY-Code/PGRDiff.git
    • Download the datasets
  2. Pip install dependencies:

    conda env create -f install.yaml
    

Dataset Preparation

Unzip and move dataset into ROOT

Directory structure of dataset

├── PGRDiff
│   ├── code
│   ├── DUNHUANG
│   │   ├── train
│   │   ├── test
│   ├── muralv2
│   │   ├── images
│   │   ├── masks
│   ├── install.yaml
│   ├── README.md

Training

cd ./code
python train.py

or

accelerate launch train.py

Evaluation

cd ./code
python metric.py

Pre-trained Models

├── code                     
├── DUNHUANG
│   ├── train         
│   ├── test
├──muralv2
│   ├── images
│   ├── masks
├── install.yaml
├── README.md

Training

cd ./code
python train.py

or

accelerate launch train.py

Evaluation

cd ./code
python metric.py

Pre-trained Models

Acknowledgement

This implementation is based on / inspired by:

About

All-in-One Mural Restoration with Prompt-Guided Residual Diffusion & Learning Mural Restoration from Degraded Data via Unsupervised Low-rank Residual Diffusion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages