-
Notifications
You must be signed in to change notification settings - Fork 143
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
test_dota.py ValueError: Shape must be rank 0 but is rank 1 for 'cond/cond/Switch' (op: 'Switch') with input shapes: [6], [6]. #33
Comments
I have the similar problem |
@programmer1401 |
谢谢提醒!我把test_dota_ms.py中324行左右的 |
请问您是怎么改的呢?可以发我一份正常运行的代码和测试图片吗? 谢谢! |
我是用服务器运行的文件,所以没有显示测试图像(不知道如何在服务器显示)。 下面是代码: |
好的,谢谢! |
不知道是否能通过修改参数的方式使程序正常运行,最近好像发现了出错的根本原因,希望能对你有用! 在训练文件 multi_gpu_train.py 中同样也有读取数据的函数: 对比了两个函数,发现 返回训练文件 multi_gpu_train.py ,发现了如下代码: 这就是问题所在! cfgs.IMAGE_PYRAMID 的默认值为 True, 改正的方法很简单,把 test_dota_ms.py 中 shortside_len 的值改变就可以了! ps: 如果在运行 read_tfrecord_multi_gpu.py 时也出现了同样的问题,可以采用同样的方法解决! |
谢谢您的建议~ |
when I run test_dota.py, it occurred
ValueError: Shape must be rank 0 but is rank 1 for 'cond/cond/Switch' (op: 'Switch') with input shapes: [6], [6].
what can I do?
thank you so much for your help!
The text was updated successfully, but these errors were encountered: