open-mmlab / mmsegmentation

OpenMMLab Semantic Segmentation Toolbox and Benchmark.
https://mmsegmentation.readthedocs.io/en/main/
Apache License 2.0
8.36k stars 2.63k forks source link

fastscnn RuntimeError! #481

Closed jacob081 closed 3 years ago

jacob081 commented 3 years ago

When I used the fastscnn model, and I found somemistake, such as 'RuntimeError: fast_scnn_4x8x80k_lr0.12_cityscapes-f5096c79.pth is a zip archive'. Should I how to solve this problem or the model is error itself?

clownrat6 commented 3 years ago

The scripts may be run on a pytorch version older than v1.6.0. After pytorch v1.6.0, the torch.save() will save file in .zip format by default.

clownrat6 commented 3 years ago

If there is no response, I will close this issue. You can try to change your pytorch version.