Upload 7 files
Browse files- Cradle2Cane/clip_project.bin +3 -0
- Cradle2Cane/face_project.bin +3 -0
- Cradle2Cane/hparams.yml +104 -0
- Cradle2Cane/pytorch_lora_weights.safetensors +3 -0
- alex.pth +3 -0
- backbone.pth +3 -0
- model_only_age_imdb_4.29.pth.tar +3 -0
Cradle2Cane/clip_project.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf40e6d790f1e664358e5a5261e3dace0d9e9cf7d12c2096f73e365f8c724f9e
|
| 3 |
+
size 73582438
|
Cradle2Cane/face_project.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c1da7718fec9faf580d23cd2b408f25b932dc3d6dbe6460a7895faafca2bd52b
|
| 3 |
+
size 1695160934
|
Cradle2Cane/hparams.yml
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
config: config/train_config.yaml
|
| 2 |
+
pretrained_model_name_or_path: ./models/sdxl-turbo
|
| 3 |
+
pretrained_vae_model_name_or_path: ./models/sdxl-vae-fp16-fix
|
| 4 |
+
dataset_name: config/ffhq_dataset.yaml
|
| 5 |
+
output_dir: exp/ablation_20000_ep30
|
| 6 |
+
seed: 42
|
| 7 |
+
num_train_epochs: 30
|
| 8 |
+
train_batch_size: 5
|
| 9 |
+
validation_steps: 1000
|
| 10 |
+
max_load_num: 20000
|
| 11 |
+
max_train_steps: 20010
|
| 12 |
+
checkpointing_steps: 4000
|
| 13 |
+
t1: 10
|
| 14 |
+
t2: 30
|
| 15 |
+
id_cos_loss_weight: 1.0
|
| 16 |
+
age_loss_weight: 0.75
|
| 17 |
+
age_loss_2_weight: 1.0
|
| 18 |
+
pixel_mse_loss_weight: 0.05
|
| 19 |
+
ssim_loss_weight: 0.1
|
| 20 |
+
g_loss_weight: 0.01
|
| 21 |
+
lpips_loss_weight: 1.0
|
| 22 |
+
arcface_weight: ./models/backbone.pth
|
| 23 |
+
clip_L_path: ./models/clip-vit-large-patch14/
|
| 24 |
+
lpips_model_path: ./models/alex.pth
|
| 25 |
+
age_model_path: ./models/model_only_age_imdb_4.29.pth.tar
|
| 26 |
+
train_data_list: ./models/ffhq_crop_gray_wo_crop_race4
|
| 27 |
+
lpips_net: alex
|
| 28 |
+
arcface_network: r100
|
| 29 |
+
revision: null
|
| 30 |
+
resolution: 512
|
| 31 |
+
center_crop: false
|
| 32 |
+
random_flip: true
|
| 33 |
+
learning_rate: 0.0001
|
| 34 |
+
scale_lr: false
|
| 35 |
+
lr_scheduler: constant
|
| 36 |
+
lr_warmup_steps: 500
|
| 37 |
+
gradient_accumulation_steps: 1
|
| 38 |
+
gradient_checkpointing: true
|
| 39 |
+
mixed_precision: fp16
|
| 40 |
+
variant: fp16
|
| 41 |
+
start_g_loss_weigth: 0.04
|
| 42 |
+
end_g_loss_weigth: 0.04
|
| 43 |
+
d_loss_weight: 1.0
|
| 44 |
+
d_loss_update_step: 6
|
| 45 |
+
min_age: 1
|
| 46 |
+
max_age: 80
|
| 47 |
+
same_age_rate: 0.01
|
| 48 |
+
age_scale: 20
|
| 49 |
+
aged_strength: 0.5
|
| 50 |
+
id_strength: 0.25
|
| 51 |
+
infer_step: 4
|
| 52 |
+
gender_strength: 0.5
|
| 53 |
+
use_avg: true
|
| 54 |
+
sort: false
|
| 55 |
+
use_four_image_swr: false
|
| 56 |
+
use_swr: false
|
| 57 |
+
use_gan_loss: true
|
| 58 |
+
use_arcface_project: true
|
| 59 |
+
use_clip_project: true
|
| 60 |
+
face_project_use_hidden_state: true
|
| 61 |
+
pixel_mse_loss_use_weight: true
|
| 62 |
+
lpips_loss_use_weight: false
|
| 63 |
+
use_adaptive_noise_inject: true
|
| 64 |
+
prompt_mode: normal
|
| 65 |
+
age_sample_mode: uniform
|
| 66 |
+
clip_map_model: angle
|
| 67 |
+
rank: 40
|
| 68 |
+
use_8bit_adam: false
|
| 69 |
+
adam_beta1: 0.9
|
| 70 |
+
adam_beta2: 0.999
|
| 71 |
+
adam_weight_decay: 0.01
|
| 72 |
+
adam_epsilon: 1.0e-08
|
| 73 |
+
max_grad_norm: 1.0
|
| 74 |
+
train_text_encoder: false
|
| 75 |
+
snr_gamma: null
|
| 76 |
+
prediction_type: null
|
| 77 |
+
enable_xformers_memory_efficient_attention: true
|
| 78 |
+
noise_offset: 0
|
| 79 |
+
allow_tf32: false
|
| 80 |
+
dataloader_num_workers: 3
|
| 81 |
+
checkpoints_total_limit: null
|
| 82 |
+
resume_from_checkpoint: null
|
| 83 |
+
num_validation_images: 1
|
| 84 |
+
push_to_hub: false
|
| 85 |
+
hub_token: null
|
| 86 |
+
hub_model_id: null
|
| 87 |
+
logging_dir: logs
|
| 88 |
+
report_to: tensorboard
|
| 89 |
+
debug_loss: false
|
| 90 |
+
debug_index: -1
|
| 91 |
+
embedding_fuse_save_name: embedding_fuse.bin
|
| 92 |
+
face_project_save_name: face_project.bin
|
| 93 |
+
face_project_hidden_dim: 25088
|
| 94 |
+
face_project_feature_dim: 512
|
| 95 |
+
face_project_output_dim: 2048
|
| 96 |
+
clip_project_save_name: clip_project.bin
|
| 97 |
+
clip_project_input_dim: 768
|
| 98 |
+
clip_project_output_dim: 2048
|
| 99 |
+
swr_alpha: 0.01
|
| 100 |
+
swr_beta: 1.1
|
| 101 |
+
local_rank: 0
|
| 102 |
+
_config_loaded_at: '2025-09-25 11:01:57'
|
| 103 |
+
_config_loaded_from: train_config.yaml
|
| 104 |
+
_config_loaded_by: u2120240694
|
Cradle2Cane/pytorch_lora_weights.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:224380cbd5e17b3fb25e17c3b93c2580b68137f738e31ff4cc7e07a41ffd7411
|
| 3 |
+
size 232412664
|
alex.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df73285e35b22355a2df87cdb6b70b343713b667eddbda73e1977e0c860835c0
|
| 3 |
+
size 6009
|
backbone.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a566a62357f0c55b679d9ff2f022a294486568be0c00665d39029d0e46a8109b
|
| 3 |
+
size 261223796
|
model_only_age_imdb_4.29.pth.tar
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53dedc7d173f61e6b0a14de4195aa051b98b3d3b76480d67add3ef7b226c30b0
|
| 3 |
+
size 103492590
|