Skip to content

Fix pytorch_lightning dependencies #2

@allemangD

Description

@allemangD

(Quoted from Slicer/ExtensionsIndex#1973 (comment))

pytorch_lightning fails to import even after it's been installed, which prevents loading the PlaneCNN module.

cannot import name 'get_num_classes' from 'torchmetrics.utilities.data' (site-packages/torchmetrics/utilities/data.py)

I suggest revisiting the pinned versions in your slicer.util.pip_install calls, and possibly add a pinned installation for torchmetrics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions