-
Notifications
You must be signed in to change notification settings - Fork 102
Closed
Description
Python version = 3.12
TIAToolBox version = 1.6.0
OS: Ubuntu 22.04.5 LTS
The pretrained model sccnn-conic and sccnn-crchisto seem to be broken. They only output 0 for all input.
Example:
from tiatoolbox.models.architecture import get_pretrained_model
import torch
sccnn_model = get_pretrained_model(pretrained_model="sccnn-conic")[0]
sccnn_model.eval()
sccnn_model.to('cuda')
with torch.no_grad():
test_input = torch.randn(1, 3, 31, 31).to('cuda')
test_output = sccnn_model(test_input)
print(test_output.shape)
print(torch.max(test_output), torch.min(test_output))Output:
torch.Size([1, 1, 13, 13])
tensor(0., device='cuda:0') tensor(0., device='cuda:0')
I encounter this "bug" when developing the new NucleusDetector Engine #967 I have tested this multiple times and every time it just outputs 0 for whatever input. Not sure what's going on with this model.
Metadata
Metadata
Assignees
Labels
No labels