Comments (4)
Having the exact same problem (only difference is that i'm on windows 10)...
from wsl-images.
Hey Apologies for not responding earlier.
Let me repro it and get back. Meanwhile did you try other models and do they work?
from wsl-images.
Thank you for your response. In my end, i'm not facing any issues with the models i've tested (i'm in the middle of testing them all and i'll give a final full report of all the models i face issues with if any...). but if it could help you, i loaded a simple resnet using another method just for testing and i faced the exact same error while loading the FixResNeXt-101 32x48d V2 weights using this ligne of code pretrained_dict=torch.load('ResNeXt101_32x48d.pth',map_location='cpu')['model']
i'm not reporting the issue here because it's not the repository for but the intersting point is that the same file (torch\serialization.py) and the same lignes are causing this problem (i can post the error msg if you need to). and i solved it using the buffer loading method.
with open('FixResNeXt101_32x48d_v2.pth', 'rb') as f:
---buffer = io.BytesIO(f.read())
pretrained_dict=torch.load(buffer)
just putting this here not sure if it'll help you resolving the issue...
it's worth noting that the resnext101_32x48d_wsl works perfectly on ubuntu (just tested it using VM VirtualBox).
from wsl-images.
Considering that I randomly see our wsl1 (GHA) pipeline fail, with OSError 22, I assume that this is till broken in 2022
File "/mnt/d/a/ansible-lint/ansible-lint/src/ansiblelint/file_utils.py", line 418, in check_suite_focus=true#step:10:114)
if item.path.is_dir():
File "/usr/lib/python3.9/pathlib.py", line 1422, in is_dir
return S_ISDIR(self.stat().st_mode)
File "/usr/lib/python3.9/pathlib.py", line 1221, in stat
return self._accessor.stat(self)
OSError: [Errno 22] Invalid argument: 'examples/roles/template_lookup/files/a_file'
As you can see the exception comes from python and on a file that is perfectly fine, job runs task under WSL, not windows. It is relatively rare but still occurs.
from wsl-images.
Related Issues (20)
- Passing 'pretrained' parameter to torch.hub.load raises error
- About training set
- Is there anyone who implemented the ResNeXt WSL reproduction results in tensorflow2.x or tensorflow1.x,Thx!
- Pretrained hashtag prediction model HOT 4
- how can I do the final hashtag prediction using the pretrained model?
- How to find the precision of the various layers when laoding the models resnext101 models
- Significant numerical differences with torch.amp.autocast() compared with stock pretrained resnext101
- default branch name breaking torch.hub HOT 1
- Will ResNeXt-101 32x4d be available? HOT 1
- 404 error when pulling model from hub HOT 7
- Error
- cuda out of memory
- Model performance
- Get "TypeError: __init__() got an unexpected keyword argument 'groups'" during ResNet init HOT 1
- About performance in Cub-200 finetune. HOT 2
- x101-32*8d doesn't work well when I put it in cascade rcnn in mmdetection HOT 5
- can not load model from hub
- WSL models not fine-tuned for ImageNet HOT 7
- How to solve ZeroDivisionError: float division by zero? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsl-images.