Update butterfly_training.py
Browse files- butterfly_training.py +3 -3
butterfly_training.py
CHANGED
|
@@ -61,12 +61,12 @@ class TrainingConfig:
|
|
| 61 |
image_size = 64 # the generated image resolution
|
| 62 |
train_batch_size = 16
|
| 63 |
eval_batch_size = 16 # how many images to sample during evaluation
|
| 64 |
-
num_epochs =
|
| 65 |
gradient_accumulation_steps = 1
|
| 66 |
learning_rate = 1e-4
|
| 67 |
lr_warmup_steps = 500
|
| 68 |
-
save_image_epochs =
|
| 69 |
-
save_model_epochs =
|
| 70 |
mixed_precision = "fp16" # `no` for float32, `fp16` for automatic mixed precision
|
| 71 |
output_dir = "butterflystest" # the model name locally and on the HF Hub
|
| 72 |
|
|
|
|
| 61 |
image_size = 64 # the generated image resolution
|
| 62 |
train_batch_size = 16
|
| 63 |
eval_batch_size = 16 # how many images to sample during evaluation
|
| 64 |
+
num_epochs = 10
|
| 65 |
gradient_accumulation_steps = 1
|
| 66 |
learning_rate = 1e-4
|
| 67 |
lr_warmup_steps = 500
|
| 68 |
+
save_image_epochs = 5
|
| 69 |
+
save_model_epochs = 5
|
| 70 |
mixed_precision = "fp16" # `no` for float32, `fp16` for automatic mixed precision
|
| 71 |
output_dir = "butterflystest" # the model name locally and on the HF Hub
|
| 72 |
|