Skip to content

[BUG] Model Training Crashing Windows #703

Description

@themetzmeier

🧠 Describe the Bug

Possible VRAM Memory Leak in detector model training causes Windows to crash. Training of a large model crashed with only 60 total images and a batch size of 2 on a NVIDIA 3080Ti with 12GB of VRAM. This doesn't happen consistently either, as this is the first time this has happened and I have ran these regression tests weekly for the past few weeks without issue on the same dataset, same kwargs.

🔁 Steps to Reproduce

lightly_train.train_object_detection(**train_kwargs)

🤖 Environment Details

  • OS: Windows 11
  • Python version: Python3.12
  • Frameworks/Libraries (with versions):
    torch 2.11.0+cu128
    lightly_train 0.14.3
    cuda 12.8

📌 Additional Context

Output from WinDbg:
VIDEO_TDR_FAILURE (0x116)
nvlddmkm.sys (NVIDIA driver)
0xc000009a (insufficient resources)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions