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,7 +117,8 @@ elif cfg.data_mode == "MNIST_FASHION":
|
||||||
else:
|
else:
|
||||||
raise Exception("data_mode unknown")
|
raise Exception("data_mode unknown")
|
||||||
|
|
||||||
cfg.image_statistics.mean = the_dataset_train.mean
|
if len(cfg.image_statistics.mean) == 0:
|
||||||
|
cfg.image_statistics.mean = the_dataset_train.mean
|
||||||
|
|
||||||
# The basic size
|
# The basic size
|
||||||
cfg.image_statistics.the_size = [
|
cfg.image_statistics.the_size = [
|
||||||
|
@ -508,7 +509,7 @@ with torch.no_grad():
|
||||||
lr_scheduler_eps.step(my_loss_for_batch)
|
lr_scheduler_eps.step(my_loss_for_batch)
|
||||||
|
|
||||||
tb.add_scalar(
|
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("Train Loss", my_loss_for_batch, cfg.learning_step)
|
||||||
tb.add_scalar(
|
tb.add_scalar(
|
||||||
|
|
Loading…
Reference in a new issue