Skip to content
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

使用Kmeans生成先验anchors报错, 运行python train.py报错 #24

Open
RAINzxy1007 opened this issue Apr 13, 2021 · 1 comment
Open

Comments

@RAINzxy1007
Copy link

1.使用Kmeans生成先验anchors报错
(t1.9g) D:\Program Files\pycharm\code\Zhangxinyu_Safehat>python get_kmeans.py
Traceback (most recent call last):
File "get_kmeans.py", line 143, in
anno_result = parse_anno(annotation_path, target_size=target_size)
File "get_kmeans.py", line 101, in parse_anno
img_w = int(float(s[2]))
ValueError: could not convert string to float: 'Files\pycharm\code\Zhangxinyu_Safehat\data/my_data/JPEGImages/000003.jpg'

2.运行 python train.py时报错

----------- start to train -----------

0%| | 0/171 [00:00<?, ?it/s]2
021-04-13 18:10:27.341428: W C:\users\nwani_bazel_nwani\ujdkfsks\execroot\org_tensorflow\tensorflow\core\framework\op_kernel.cc:1306] Invalid argu
ment: ValueError: invalid literal for int() with base 10: 'Files\pycharm\code\Zhangxinyu_Safehat\data/my_data/JPEGImages/part2_000959.jpg'

@zhaoyong-li
Copy link

您好,请问这个问题解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants