qubvel / segmentation_models.pytorch

Semantic segmentation models with 500+ pretrained convolutional and transformer-based backbones.
https://smp.readthedocs.io/
MIT License
9.1k stars 1.62k forks source link

epsilon in jaccardscore and dicescore is not read as a torch tensor #858

Closed TomatoGreen2 closed 1 month ago

TomatoGreen2 commented 4 months ago

suggestion - add line: eps=torch.tensor(1e-07, dtype=torch.float32) or eps=torch.tensor(1e-07, dtype=gt.dtype)

JulienMaille commented 3 months ago

Maybe you should suggest this PR to https://github.com/isaaccorley/torchseg

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 month ago

This issue was closed because it has been stalled for 7 days with no activity.