Closed glopezzz closed 1 year ago
The code itself looks like it should be correct. How do you create your segmentator object? Many problems seems to be solved if you set padding=True
during instantiation.
Hi @cwinsnes
I tried just that and it still doesn't work... What could it be?
The weirdest part is that the segmentation works... I don't get it
The test images in the Kaggle set are 16bit while the train ones are 8bit, as discussed in https://www.kaggle.com/c/hpa-single-cell-image-classification/discussion/223745
As the profile images and names are alike, I assume the cv2
solution helped you there?
Hi @cwinsnes
I've been having issues with this function again. I updated the issue above with more proofs.
As you can see, I'm using both padding=True
and cv2.imread(b, cv2.IMREAD_GRAYSCALE)
I have no clue what might be going wrong, but I don't see many people having this sort of truble, which is giving me quite a headache
The full notebook is here, in case you want to give it a look.
Thank you in advance :)
Hi,
I'm working on a Kaggle proyect: https://www.kaggle.com/c/hpa-single-cell-image-classification
When I load the
test
data and apply thesegmentator.pred_cells()
function, it all works ok.But when I apply the
label_cell()
function, the array returned is empty (all 0's):The function where I load the images from Kaggle is:
Cell Segmentation plt.imshow(cell_segmentations[0])
I'll leave the code here, although the same code has worked with the test data...
The outputs are:
Also, in the images where it does capture cell masks, it ignores plenty of the cells...
Any idea why this function doesn't work?
Thank you in advance! Escanor