Spaces:
Paused
Paused
Update inference_configs/inference.yaml
Browse files- inference_configs/inference.yaml +27 -16
inference_configs/inference.yaml
CHANGED
@@ -1,33 +1,44 @@
|
|
|
|
1 |
model_name: "flux-dev"
|
2 |
-
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
use_ip: false
|
6 |
ip_local_path: null
|
7 |
ip_repo_id: null
|
8 |
ip_name: null
|
9 |
ip_scale: 1.0
|
10 |
use_lora: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
data_config:
|
12 |
-
eval_batch_size:
|
13 |
num_workers: 4
|
14 |
-
img_size:
|
15 |
-
img_dir: output_bench/
|
16 |
grayscale_editing: false
|
17 |
zoom_camera: false
|
18 |
random_ratio: false
|
19 |
report_to: wandb
|
20 |
eval_batch_size: 1
|
21 |
-
ckpt_dir: ./pretrained_weights/ByteMorpher/dit.safetensors
|
22 |
output_dir: ./test_log/seedmorpher/
|
23 |
logging_dir: logs
|
24 |
-
mixed_precision: "fp16"
|
25 |
-
rank: 16
|
26 |
-
single_blocks: null
|
27 |
-
double_blocks: null
|
28 |
disable_sampling: false
|
29 |
-
|
30 |
-
|
31 |
-
sample_steps: 23
|
32 |
-
seed: 42
|
33 |
-
cfg_scale: 2
|
|
|
1 |
+
# Configuração do Modelo
|
2 |
model_name: "flux-dev"
|
3 |
+
ckpt_dir: ./pretrained_weights/ByteMorpher/dit.safetensors
|
4 |
+
|
5 |
+
# --- Configurações de Condicionamento de Imagem ---
|
6 |
+
# Esta é a seção mais importante para a edição de imagem para imagem.
|
7 |
+
# O app.py corrigido agora utiliza estas configurações corretamente.
|
8 |
+
use_share_weight_referencenet: true # ATIVADO: Essencial para usar a imagem de entrada como referência.
|
9 |
+
use_spatial_condition: false # DESATIVADO: Geralmente, usa-se um ou outro método de condicionamento.
|
10 |
+
share_position_embedding: true # MANTIDO: Importante para o alinhamento espacial entre a entrada e a saída.
|
11 |
+
|
12 |
+
# --- Configurações de IP-Adapter e LoRA (Desativados por padrão) ---
|
13 |
use_ip: false
|
14 |
ip_local_path: null
|
15 |
ip_repo_id: null
|
16 |
ip_name: null
|
17 |
ip_scale: 1.0
|
18 |
use_lora: false
|
19 |
+
rank: 16
|
20 |
+
|
21 |
+
# --- Parâmetros de Amostragem (Configurações de Alta Qualidade) ---
|
22 |
+
sample_width: 1024 # ALTA QUALIDADE: Resolução aumentada para 1024x1024.
|
23 |
+
sample_height: 1024 # ALTA QUALIDADE: Resolução aumentada para 1024x1024.
|
24 |
+
sample_steps: 50 # ALTA QUALIDADE: 50 passos é um ótimo equilíbrio entre velocidade e detalhe.
|
25 |
+
cfg_scale: 4.0 # ALTA QUALIDADE: Aumentado para maior fidelidade ao prompt de texto.
|
26 |
+
seed: -1 # DINÂMICO: -1 para gerar uma imagem diferente a cada execução. Mude para um número (ex: 42) para resultados reprodutíveis.
|
27 |
+
mixed_precision: "bf16" # OTIMIZADO: bfloat16 é ideal e mais estável para GPUs L40.
|
28 |
+
|
29 |
+
# --- Configuração de Dados e Logging (geralmente não precisam de alteração para a demo) ---
|
30 |
data_config:
|
31 |
+
eval_batch_size: 8
|
32 |
num_workers: 4
|
33 |
+
img_size: 1024 # Atualizado para corresponder à resolução de amostragem.
|
34 |
+
img_dir: output_bench/
|
35 |
grayscale_editing: false
|
36 |
zoom_camera: false
|
37 |
random_ratio: false
|
38 |
report_to: wandb
|
39 |
eval_batch_size: 1
|
|
|
40 |
output_dir: ./test_log/seedmorpher/
|
41 |
logging_dir: logs
|
|
|
|
|
|
|
|
|
42 |
disable_sampling: false
|
43 |
+
single_blocks: null
|
44 |
+
double_blocks: null
|
|
|
|
|
|