-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camvid数据集训练问题 #22
Comments
已经解决了,不好意思 |
请问你是怎么解决,分享一下呗 |
mark |
请问你知道如何解决吗? |
我是label图片用错了,应该用灰度图而不是这种彩色的可视化label,换成灰度图就解决了 |
Found 367 images belonging to 1 classes. |
请问label用灰度图的话data.py中label_color_mode要设置成grayscale吗?还是就保持rgb呢? |
需要改一下
在 2020-12-10 19:57:58,"lyricgoal" <[email protected]> 写道:
我是label图片用错了,应该用灰度图而不是这种彩色的可视化label,换成灰度图就解决了
请问label用灰度图的话data.py中label_color_mode要设置成grayscale吗?还是就保持rgb呢?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
您好!请问这个问题怎么解决,谢谢! |
您好,我在借用您的unet网络跑Camvid数据集的时候遇到了下面的问题,希望您可以指导一下:
`Total params: 31,051,200
Trainable params: 31,051,200
Non-trainable params: 0
Epoch 1/10
Found 100 images belonging to 1 classes.
Found 400 images belonging to 1 classes.
Found 100 images belonging to 1 classes.
Found 400 images belonging to 1 classes.
3/100 [========>.....................] - ETA: 3:58 - loss: 0.2298 - acc: 0.2382`
似乎所有图片都被判定属于同一个类别(belonging to 1 classes)?训练中acc确实会逐渐上升,最终达到1,但是使用test.py测试训练结果模型时得到的图片是全灰的(将data.py中COLOR_DICT的第一类颜色改为255,255,255的话会得到全白图像,感觉应该是把整个图像都分为第一类了)
看了之前几个issue,不知道是不是我的训练集图片路径设置错误,我是按如下路径设置的:
`
#path to images which are prepared to train a model
训练用的py文件都在E:/ljwgroupSRTP/unet文件夹下,而我的图片路径如下图:
不知这样的情况下我的路径设置是否正确?
如果不是图片路径的设置问题,我修改的参数是以下这些代码,希望您能指正一下错误:
train.py:
`
flag_multi_class = True
data.py中我在原本的12中颜色基础上,自己编了20种颜色并加入COLOR_DICT中(我猜测这个应该只是在test预测中用于染色的,并不一定要与label图像颜色相同?)
class data_preprocess:
test.py中:
test_path = "E:/ljwgroupSRTP/unet/data/test/image"
请问我这几个文件中是不是有改错或者漏改的内容?或者是data_Pretreatment.py和label_visualization.py中也有需要修改的内容?
非常感谢您的指导!
The text was updated successfully, but these errors were encountered: