microsoft / CameraTraps

PyTorch Wildlife: a Collaborative Deep Learning Framework for Conservation.
https://cameratraps.readthedocs.io/en/latest/
MIT License
770 stars 243 forks source link

PytorchStreamReader failed reading zip archive #392

Closed yodaka0 closed 7 months ago

yodaka0 commented 10 months ago

Excuse me. I run MegaDetector on laptop pc. But below error occurs. PytorchStreamReader failed reading zip archive: failed finding central directory OS : Windows 10 Home Processor: AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx 2.30 GHz

zhmiao commented 10 months ago

Hello @yodaka0, thank you so much for reporting this! Could you please share more details on how did you get the error? If you could make a small snippet that can reproduce the error, it would be the best! Also, could you send us the full error message as well? Thanks again!

yodaka0 commented 10 months ago

Thanks your thinking and reply.

Using threads for queue 1702183773.9032795 Loaded model (before queueing) in 0 seconds Image C:\Users\shoun\Documents\herp\Pf_2021-04-10_00195613.JPG cannot be processed. Exception: PytorchStreamReader failed reading zip archive: failed finding central directory

I tried load MegaDetector directly from row program, but failed. I guess because processor is not i core. Thanks again.

zhmiao commented 10 months ago

Hello @yodaka0 , thanks for sharing the error message. I think this might be caused by corrupted or unfinished downloads according to this issue: https://github.com/pytorch/pytorch/issues/31620

There might be a possibility that the weights are not downloaded properly but I am not 100% sure. Did this error happen when you run detection_model = pw_detection.MegaDetectorV5() ?

yodaka0 commented 10 months ago

Thanks your replay. Because it’s not own pc, now I can’t check this, but I may be so.

zhmiao commented 7 months ago

Hello @yodaka0, we want to check in if there are any updates on this issue? If there is no further updates, we would like to close this issue for now, and you are welcome to open it again if the issue persists. Thank you very much!