question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mmcv.imread return None

See original GitHub issue

When 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. test_006960

mmcv 1.6.1 mmcv-full 1.6.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
zgplvyoucommented, Sep 7, 2022

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.

0reactions
ice-tongcommented, Sep 7, 2022

I will close this issue, feel free to reopen it if you have any problems else. ^_^

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found