Better handling of the input mean
This commit is contained in:
parent
fa8b16a5bd
commit
92965b9bb7
1 changed files with 3 additions and 2 deletions
|
@ -117,6 +117,7 @@ elif cfg.data_mode == "MNIST_FASHION":
|
|||
else:
|
||||
raise Exception("data_mode unknown")
|
||||
|
||||
if len(cfg.image_statistics.mean) == 0:
|
||||
cfg.image_statistics.mean = the_dataset_train.mean
|
||||
|
||||
# The basic size
|
||||
|
@ -508,7 +509,7 @@ with torch.no_grad():
|
|||
lr_scheduler_eps.step(my_loss_for_batch)
|
||||
|
||||
tb.add_scalar(
|
||||
"Train Performance", 100.0 - performance, cfg.learning_step
|
||||
"Train Error", 100.0 - performance, cfg.learning_step
|
||||
)
|
||||
tb.add_scalar("Train Loss", my_loss_for_batch, cfg.learning_step)
|
||||
tb.add_scalar(
|
||||
|
|
Loading…
Reference in a new issue