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

请问一下,按照步骤执行1_txt2json.py报错如下,这个怎么解,路径都换成自己的了 #36

Open
Xu-Fengnian opened this issue Oct 15, 2020 · 7 comments

Comments

@Xu-Fengnian
Copy link

Convert annotation files (txt format) into coco json format...
Traceback (most recent call last):
File "C:/Users/xdtech/Desktop/Keras-YOLOv4-master/1_txt2json.py", line 77, in
img_h, img_w, _ = ndarr.shape
AttributeError: 'NoneType' object has no attribute 'shape'

@miemie2013
Copy link
Owner

Convert annotation files (txt format) into coco json format...
Traceback (most recent call last):
File "C:/Users/xdtech/Desktop/Keras-YOLOv4-master/1_txt2json.py", line 77, in
img_h, img_w, _ = ndarr.shape
AttributeError: 'NoneType' object has no attribute 'shape'

找不到图片,请再检查一下

@Xu-Fengnian
Copy link
Author

Convert annotation files (txt format) into coco json format...
Traceback (most recent call last):
File "C:/Users/xdtech/Desktop/Keras-YOLOv4-master/1_txt2json.py", line 77, in
img_h, img_w, _ = ndarr.shape
AttributeError: 'NoneType' object has no attribute 'shape'

找不到图片,请再检查一下
好的,非常感谢,我再去尝试一下

@Xu-Fengnian
Copy link
Author

你好,我的训练集和验证集的图片是放在一起的,我将路径改为绝对路径后仍然报这个错。

1 similar comment
@Xu-Fengnian
Copy link
Author

你好,我的训练集和验证集的图片是放在一起的,我将路径改为绝对路径后仍然报这个错。

@ignbxxx
Copy link

ignbxxx commented Oct 25, 2020

你好,我的训练集和验证集的图片是放在一起的,我将路径改为绝对路径后仍然报这个错。

这个错误更像是由于版本不对导致的。建议检查一下版本兼容

@ppy2017
Copy link

ppy2017 commented Nov 4, 2020

将注释文件(txt格式)转换为可可json格式...
追溯(最近一次调用):
文件“ C:/Users/xdtech/Desktop/Keras-YOLOv4-master/1_txt2json.py”,行
img_h中的77 , img_w,_ = ndarr.shape
AttributeError:“ NoneType”对象没有属性“ shape”

找不到图片,请再检查一下
好的,非常感谢,我再去尝试一下

我也出现这个问题了,不知道您解决了没?

@ppy2017
Copy link

ppy2017 commented Nov 4, 2020

Convert annotation files (txt format) into coco json format...
Traceback (most recent call last):
File "C:/Users/xdtech/Desktop/Keras-YOLOv4-master/1_txt2json.py", line 77, in
img_h, img_w, _ = ndarr.shape
AttributeError: 'NoneType' object has no attribute 'shape'

找不到图片,请再检查一下

你好,我也是遇到这个问题,检查了路径没问题但是还是这样

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

4 participants