Predicting discrete pixel output #378
Replies: 5 comments 2 replies
-
Good question! I would use the segmentation configs, but there are a few things I'd recommend changing:
|
Beta Was this translation helpful? Give feedback.
-
Correct - I was assuming that you're trying to classify each pixel in the image into 0,1,2,3? I think the issue is you are doing 4 class classification and your output channels is only 3. If the loss is being dominated by your background class (0), you can set |
Beta Was this translation helpful? Give feedback.
-
I am getting the 4 channels in the out_channels. The error was probably due to some of my images having pixel values as -1. But the output is still a range of pixels and not as expected. I've removed the ThresholdIntensity as well. Do you recommend giving the input 4 channels as well? Also it says that ignore_background is an unexpected argument |
Beta Was this translation helpful? Give feedback.
-
Each channel will have the probability of the pixel belonging to the class with the index of the channel you're looking at, if you want a classification for each pixel, you can find the channel-wise argmax for each pixel. The input channels is how many channels are in the image you're passing into the network - only change this if you're changing the types of images you're passing in. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hi @benjijamorris
I have paired set of training images, one which is a microscopic image of a cell and the other has cell areas with pixel values only as 0,1,2, and 3. Looks something like below.
I essentially wanna predict the pixel values out of (0,1,2 and 3) based off the microscopic image input only. Is there any way to do this in cyto-dl? I've given the labelfree and segmentation a try but they don't produce expected outputs.
Beta Was this translation helpful? Give feedback.
All reactions