python - 使用 Tensorflow 的 DeepLab 输出黑屏
问题描述
我在我自己的数据集上训练了 DeepLab,initialize_last_layer
并且last_layers contain_logits
只使用了两者False
。我只有 2 类背景和标签。我尝试使用--num_classes=2
但3
没有任何效果。我的ignore_labe
l 是255
,而我的背景是(0,0,0,255)
,标签是(1,1,1,255)
。我也给了label_weights 1:20
但没用。我看到的只是segmented_results
文件夹中的黑色图像。有什么解决办法吗?
解决方案
在您的vis.sh
例如。:
--colormap_type="cityscapes"
推荐阅读
- chainer - 如何在chainer中使用BatchNormalization3D?
- mysql - 在 MySQL 中,将“AS”[tablename] 应用于子查询(或派生表)是不好的做法吗?如果是这样,为什么?
- python - 如何有效地订购时间python
- scala - 使用 Futures 通过在 scala 中链接来计算聚合
- ios - 自定义 UITableViewCell 中重复显示五张图片
- awk - 如何从特定文本中删除字符串到行尾?
- javascript - 在除 0 之外的其他下拉列表中禁用选择选项
- sprite-kit - 带有Lighting Spritekit的闪电
- javascript - 如何嵌入独立的 SVG 代码?
- javascript - 如果已经在 jquery 的第一行中选中,则防止选中第二行中的复选框