Skip to content

Validation Loss Exploding to 10^5 #14085

@lsaeuro

Description

@lsaeuro

🐛 Bug

Validation loss is exploding and I figured out that the problem is already in the forward method of my model.
During Validation , the input tensors after a batch norm or an activation function, does not change a lot, while during training it is rescaled.
image

I found something similar here in the Lightning Forum.
Are there some particular modes in the validation loss that I should turn on or off?

Environment

  • CUDA:
    • GPU:
      • NVIDIA RTX A6000
    • available: True
    • version: 10.2
  • Packages:
    • numpy: 1.23.0
    • pyTorch_debug: False
    • pyTorch_version: 1.11.0+cu102
    • pytorch-lightning: 1.7.0
    • tqdm: 4.64.0
  • System:
    • OS: Linux
    • architecture:
      • 64bit
      • ELF
    • processor: x86_64
    • python: 3.8.13
    • version: Extend CI #44~20.04.1-Ubuntu SMP Fri Jun 24 13:27:29 UTC 2022

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions