segment-anything icon indicating copy to clipboard operation
segment-anything copied to clipboard

Grayscale image segmentation

Open aoguangcheng opened this issue 1 year ago • 2 comments

Great job, can I input a grayscale map into the SAM model instead of a three-channel color image?

aoguangcheng avatar Apr 09 '23 09:04 aoguangcheng

The following works for now:
image = np.expand_dims(image, axis=2) image = np.repeat(image, 3, axis=2)

markspec avatar Apr 14 '23 18:04 markspec

With this, I assume there is no benefit in performance to running grayscale?

dvdrplus avatar May 01 '23 15:05 dvdrplus

我猜@dvdrplus的意思是说加一个灰度图的模块

I guess @ dvdrplus means adding a grayscale module 似乎SAM的数据集里面没包括医学影像 It seems that the SAM dataset does not include medical imaging 但是,我试了一下,对于医学影像SAM做的也不错👍🏻 But I gave it a try and did a good job with medical imaging SAM 👍🏻 所以, 有必要做个这样的模块专门处理像xRay, CT, MRI等这样的灰度图 So, it is necessary to create a module specifically for processing grayscale images such as xRay, CT, MRI, etc

jumbojing avatar Jun 06 '23 05:06 jumbojing