Skip to content

Commit 34c3b59

Browse files
author
Tianwei Yin
committed
update single object benchmark
1 parent 5282a7e commit 34c3b59

File tree

132 files changed

+160
-2227
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+160
-2227
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Diffusion models excel at text-to-image generation, especially in subject-driven
1515
conda create -n fastcomposer python
1616
conda activate fastcomposer
1717
pip install torch torchvision torchaudio
18-
pip install transformers==4.25.1 accelerate datasets evaluate diffusers==0.16.1 xformers triton scipy clip gradio
18+
pip install transformers==4.25.1 accelerate datasets evaluate diffusers==0.16.1 xformers triton scipy clip gradio facenet-pytorch
1919

2020
python setup.py install
2121
```
@@ -41,6 +41,14 @@ python demo/run_gradio.py --finetuned_model_path model/fastcomposer/pytorch_mode
4141
bash scripts/run_inference.sh
4242
```
4343

44+
### Evaluation
45+
46+
```bash
47+
python evaluation/single_object/run.py --finetuned_model_path model/fastcomposer/pytorch_model.bin --mixed_precision "fp16" --dataset_name data/celeba_test_single/ --seed 42 --num_images_per_prompt 4 --object_resolution 224 --output_dir OUTPUT_DIR
48+
49+
python evaluation/single_object/single_object_evaluation.py --prediction_folder OUTPUT_DIR --reference_folder data/celeba_test_single/
50+
```
51+
4452
### Training
4553

4654
Prepare the FFHQ training data:
41.6 KB
Loading
17.5 KB
Loading
19.5 KB
Loading
24.5 KB
Loading
7.81 KB
Loading
25.6 KB
Loading
27.1 KB
Loading
18.3 KB
Loading
40 KB
Loading

0 commit comments

Comments
 (0)