简体   繁体   English

用于 CT 图像预训练权重的 SegNet

[英]SegNet for CT images pretrained weights

I'm trying to train a SegNet for segmentation task on ct images (with Keras TF).我正在尝试训练一个用于 ct 图像分割任务的 SegNet(使用 Keras TF)。 I'm using VGG16 pretrained weights but I had a problem with the first convolutional layer because I'm using grayscale images but VGG was trained on rgb ones.我正在使用 VGG16 预训练权重,但我在第一个卷积层遇到问题,因为我使用的是灰度图像,但 VGG 是在 rgb 图像上训练的。 I solved that using second method of this (can't use first method because requires too much memory).我使用第二种方法解决了这个问题(不能使用第一种方法,因为需要太多内存)。 However it didn't help me, values are really bad (trained for 100 epochs).然而它并没有帮助我,价值观真的很糟糕(训练了 100 个时期)。

Should I train the first convolutional layer from scratch?我应该从头开始训练第一个卷积层吗?

You can try to add a Conv2D before the vgg.您可以尝试在 vgg 之前添加一个 Conv2D。 Something like:就像是:

> Your Input(shape=(height,width,1))

Conv2D(filters=3,kernel_size=1, padding='same',activation='relu')

> The VGG pretrained network (input = (height,width,3))

is interesting in your case because 1x1 convolution is usually employed to change the depth of your object.在您的情况下很有趣,因为通常使用 1x1 卷积来更改 object 的深度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM