mmcv.imread return None
See original GitHub issueWhen I use mmcv load pictures, some pictures can be load, however, there are some pictures will return None.
There is my code, so simple.
img = mmcv.imread(‘test_006960.jpg’)
print(img)
the img will return None, I’m not sure what`s wrong, I upload the image.
mmcv 1.6.1 mmcv-full 1.6.0
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top Results From Across the Web
cv2 imread returns None [duplicate] - python - Stack Overflow
I installed the cv2 library via pip install opencv-contrib-python-headless. Whenever i try to read an image it it returns None. I tried using...
Read more >Source code for mmcv.image.io
Default: None. Returns: ndarray: Loaded image array. Examples: >>> import mmcv >>> img_path = '/path/to/img.jpg' >>> img = mmcv.imread(img_path) >>> img ...
Read more >AttributeError when get image shape, seems image not load ...
Image is fine, print then verifed with pillow. ... Then I print img_bytes, also not None. ... So, seems something wrong when converting...
Read more >Python Examples of mmcv.imread - ProgramCreek.com
This page shows Python examples of mmcv.imread. ... device) with torch.no_grad(): result = model(return_loss=False, rescale=True, **data) return result.
Read more >mmdet/apis/inference.py · CVPR/WALT at main - Hugging Face
from mmcv.parallel import collate, scatter ... def init_detector(config, checkpoint=None, device='cuda:0', cfg_options=None): ... return model.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ok,thank u for the answer, maybe the data have some problem after unpack, i will open it and rewrite to address this error, thank u again.
I will close this issue, feel free to reopen it if you have any problems else. ^_^