Update ball.py
Browse files
ball.py
CHANGED
|
@@ -44,8 +44,8 @@ import datetime
|
|
| 44 |
class TrainingConfig:
|
| 45 |
image_size = 256 # the generated image resolution
|
| 46 |
train_batch_size = 1
|
| 47 |
-
eval_batch_size =
|
| 48 |
-
num_epochs =
|
| 49 |
gradient_accumulation_steps = 1
|
| 50 |
learning_rate = 1e-4 #Was 1e-4
|
| 51 |
lr_warmup_steps = 500
|
|
@@ -228,7 +228,7 @@ def evaluate(config, epoch, pipeline):
|
|
| 228 |
).images
|
| 229 |
|
| 230 |
# Make a grid out of the images
|
| 231 |
-
image_grid = make_grid(images, rows=10, cols=
|
| 232 |
|
| 233 |
# Save the images
|
| 234 |
test_dir = os.path.join(config.output_dir, "samples"+config.time_started)
|
|
|
|
| 44 |
class TrainingConfig:
|
| 45 |
image_size = 256 # the generated image resolution
|
| 46 |
train_batch_size = 1
|
| 47 |
+
eval_batch_size = 50 # how many images to sample during evaluation
|
| 48 |
+
num_epochs = 1
|
| 49 |
gradient_accumulation_steps = 1
|
| 50 |
learning_rate = 1e-4 #Was 1e-4
|
| 51 |
lr_warmup_steps = 500
|
|
|
|
| 228 |
).images
|
| 229 |
|
| 230 |
# Make a grid out of the images
|
| 231 |
+
image_grid = make_grid(images, rows=10, cols=5)
|
| 232 |
|
| 233 |
# Save the images
|
| 234 |
test_dir = os.path.join(config.output_dir, "samples"+config.time_started)
|