Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tts/configs/flux.1_dev_gptscore.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

"pipeline_args": {
"pretrained_model_name_or_path": "black-forest-labs/FLUX.1-dev",
"cache_dir": "FLUX_PATH",
"cache_dir": "/mnt/data-volume/FLUX.1-dev",
"torch_dtype": "bf16",
"height": 1024,
"width": 1024,
"condition_size": 512,
"max_sequence_length": 512,
"guidance_scale": 3.5,
"num_inference_steps": 30,
"lora_path": "LORA_PATH"
"lora_path": "/mnt/data-volume/FLUX-Corrector"
},
"verifier_args": {
"name": "openai",
Expand Down Expand Up @@ -40,7 +40,7 @@
},
"reflection_args": {
"run_reflection": true,
"name": "openai"
"name": "ours"
},
"prompt_refiner_args": {
"run_refinement": true
Expand Down
2 changes: 1 addition & 1 deletion tts/configs/our_reflectionmodel.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
model_name_or_path: path/infer/30000
model_name_or_path: /mnt/data-volume/Reflection-Generator/infer/30000
template: qwen2_vl
finetuning_type: lora
10 changes: 10 additions & 0 deletions tts/download.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from huggingface_hub import snapshot_download

local_dir = "/mnt/data-volume/FLUX.1-dev"
snapshot_download(repo_id="black-forest-labs/FLUX.1-dev", local_dir=local_dir)

local_dir = "/mnt/data-volume/FLUX-Corrector"
snapshot_download(repo_id="diffusion-cot/FLUX-Corrector", local_dir=local_dir)

local_dir = "/mnt/data-volume/Reflection-Generator"
snapshot_download(repo_id="diffusion-cot/Reflection-Generator", local_dir=local_dir)
10 changes: 10 additions & 0 deletions tts/download_model.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from huggingface_hub import snapshot_download

local_dir = "/mnt/data-volume/FLUX.1-dev"
snapshot_download(repo_id="black-forest-labs/FLUX.1-dev", local_dir=local_dir)

local_dir = "/mnt/data-volume/FLUX-Corrector"
snapshot_download(repo_id="diffusion-cot/FLUX-Corrector", local_dir=local_dir)

local_dir = "/mnt/data-volume/Reflection-Generator"
snapshot_download(repo_id="diffusion-cot/Reflection-Generator", local_dir=local_dir)
89 changes: 89 additions & 0 deletions tts/log_naive_noise.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
Loading pipeline components...: 0%| | 0/7 [00:00<?, ?it/s]
Loading checkpoint shards: 0%| | 0/2 [00:00<?, ?it/s]Loading checkpoint shards: 100%|██████████| 2/2 [00:00<00:00, 54.16it/s]
Loading pipeline components...: 43%|████▎ | 3/7 [00:00<00:00, 18.85it/s]
Loading checkpoint shards: 0%| | 0/3 [00:00<?, ?it/s]Loading checkpoint shards: 100%|██████████| 3/3 [00:00<00:00, 42.71it/s]
Loading pipeline components...: 86%|████████▌ | 6/7 [00:00<00:00, 17.14it/s]You set `add_prefix_space`. The tokenizer needs to be converted from the slow tokenizers
Loading pipeline components...: 100%|██████████| 7/7 [00:00<00:00, 12.40it/s]
Sampling prompts: 0it [00:00, ?it/s]Sampling prompts: 1it [08:12, 492.10s/it]Sampling prompts: 1it [08:12, 492.10s/it]
Folder creation and JSON opening took: 0.00 seconds.

=== Round: 1 ===
Generating images for batch with seeds: [1412510432].
Generating images for batch with seeds: [691175494].
Image serialization took: 0.83 seconds.

=== Round: 2 ===
Generating images for batch with seeds: [1455950135].
Generating images for batch with seeds: [1321371547].
Image serialization took: 0.79 seconds.

=== Round: 3 ===
Generating images for batch with seeds: [342876182].
Generating images for batch with seeds: [1257931078].
Image serialization took: 0.87 seconds.

=== Round: 4 ===
Generating images for batch with seeds: [190684787].
Generating images for batch with seeds: [1198709334].
Image serialization took: 0.83 seconds.

=== Round: 5 ===
Generating images for batch with seeds: [1050684505].
Generating images for batch with seeds: [1765954606].
Image serialization took: 0.86 seconds.

=== Round: 6 ===
Generating images for batch with seeds: [102214368].
Generating images for batch with seeds: [1882864211].
Image serialization took: 0.89 seconds.

=== Round: 7 ===
Generating images for batch with seeds: [1119095312].
Generating images for batch with seeds: [766898254].
Image serialization took: 0.85 seconds.

=== Round: 8 ===
Generating images for batch with seeds: [1941068873].
Generating images for batch with seeds: [2092558658].
Image serialization took: 0.86 seconds.

=== Round: 9 ===
Generating images for batch with seeds: [1450279666].
Generating images for batch with seeds: [1017617413].
Image serialization took: 0.94 seconds.

=== Round: 10 ===
Generating images for batch with seeds: [299857752].
Generating images for batch with seeds: [238849333].
Image serialization took: 0.88 seconds.

=== Round: 11 ===
Generating images for batch with seeds: [504298609].
Generating images for batch with seeds: [58365203].
Image serialization took: 0.84 seconds.

=== Round: 12 ===
Generating images for batch with seeds: [376127004].
Generating images for batch with seeds: [638865873].
Image serialization took: 0.89 seconds.

=== Round: 13 ===
Generating images for batch with seeds: [507498130].
Generating images for batch with seeds: [577042757].
Image serialization took: 0.69 seconds.

=== Round: 14 ===
Generating images for batch with seeds: [479773152].
Generating images for batch with seeds: [1651404906].
Image serialization took: 0.91 seconds.

=== Round: 15 ===
Generating images for batch with seeds: [147997326].
Generating images for batch with seeds: [1774332912].
Image serialization took: 0.81 seconds.

=== Round: 16 ===
Generating images for batch with seeds: [52998602].
Generating images for batch with seeds: [504657197].
Image serialization took: 0.82 seconds.
Total image gen time: 478282.62 seconds.
Expand Down
Loading