byliutao commited on
Commit
cb9c2c9
·
verified ·
1 Parent(s): 97fcf6b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -7
README.md CHANGED
@@ -76,7 +76,7 @@ conda activate cdm_infer
76
  pip install -r config/requirements_infer.txt
77
 
78
  # Run inference
79
- python scripts/infer/sd3_m.py # SD3.5-Medium
80
  python scripts/infer/longcat.py # LongCat
81
  ```
82
 
@@ -92,11 +92,11 @@ pip install flash-attn==2.7.4.post1 --no-build-isolation # May take 1-2 hours
92
 
93
  # Launch training with FSDP2
94
  accelerate launch --config_file config/accelerate_fsdp2.yaml \
95
- --num_processes 1 -m scripts.train \
96
- --config config/config.py:sd3 # SD3.5-Medium
97
 
98
  accelerate launch --config_file config/accelerate_fsdp2.yaml \
99
- --num_processes 1 -m scripts.train \
100
  --config config/config.py:longcat # LongCat
101
  ```
102
 
@@ -112,13 +112,13 @@ conda activate cdm_train
112
  python -m scripts.save \
113
  --experiment_dir "logs/experiments/sd3/test" \
114
  --output_dir "logs/pipelines/test" \
115
- --checkpoint_steps "10"
116
  ```
117
 
118
  ### Step 2 — Generate images
119
 
120
  ```bash
121
- accelerate launch --num_processes 1 -m scripts.eval \
122
  --phase generate \
123
  --model_path "logs/pipelines/test/checkpoint-2000" \
124
  --eval_metrics imagereward clipscore pickscore hpsv2 hpsv3 aesthetic ocr dpgbench fid \
@@ -140,7 +140,7 @@ pip install fairseq --no-deps
140
  # NOTE: If running on multiple GPUs, download checkpoints on 1 GPU first.
141
  # For FID evaluation, place COCO 2014 val images under: dataset/coco2014val_10k/images
142
 
143
- accelerate launch --num_processes 1 -m scripts.eval \
144
  --phase evaluate \
145
  --eval_metrics imagereward clipscore pickscore hpsv2 hpsv3 aesthetic ocr dpgbench fid \
146
  --output_dir "logs/evaluations/test"
 
76
  pip install -r config/requirements_infer.txt
77
 
78
  # Run inference
79
+ python scripts/infer/sd3_m.py # SD3-Medium
80
  python scripts/infer/longcat.py # LongCat
81
  ```
82
 
 
92
 
93
  # Launch training with FSDP2
94
  accelerate launch --config_file config/accelerate_fsdp2.yaml \
95
+ --num_processes 8 -m scripts.train \
96
+ --config config/config.py:sd3 # SD3-Medium
97
 
98
  accelerate launch --config_file config/accelerate_fsdp2.yaml \
99
+ --num_processes 8 -m scripts.train \
100
  --config config/config.py:longcat # LongCat
101
  ```
102
 
 
112
  python -m scripts.save \
113
  --experiment_dir "logs/experiments/sd3/test" \
114
  --output_dir "logs/pipelines/test" \
115
+ --checkpoint_steps "2000"
116
  ```
117
 
118
  ### Step 2 — Generate images
119
 
120
  ```bash
121
+ accelerate launch --num_processes 8 -m scripts.eval \
122
  --phase generate \
123
  --model_path "logs/pipelines/test/checkpoint-2000" \
124
  --eval_metrics imagereward clipscore pickscore hpsv2 hpsv3 aesthetic ocr dpgbench fid \
 
140
  # NOTE: If running on multiple GPUs, download checkpoints on 1 GPU first.
141
  # For FID evaluation, place COCO 2014 val images under: dataset/coco2014val_10k/images
142
 
143
+ accelerate launch --num_processes 8 -m scripts.eval \
144
  --phase evaluate \
145
  --eval_metrics imagereward clipscore pickscore hpsv2 hpsv3 aesthetic ocr dpgbench fid \
146
  --output_dir "logs/evaluations/test"