Comments (4)
Hey @GreyGuoweiChen let us look into it. I am traveling these week, but I will do my best :)
Also the error seems to be related to the interplay between torchmetrics
and torchaudio
🤔? have you tried without installing torchaudio
. Even if you need that library it would be good to see if the issue raises from that library.
maybe @gradientsky has seen this?
from pytorch-widedeep.
Hello @jrzaurin ,
Thanks for your timely reply, and wish you a happy travel. I have some tries and have avoided this bug.
Firstly, I tried to upgrade the pytorch package to 2.0.1 sa below.
pytorch 2.0.1 py3.8_0 pytorch
pytorch-widedeep 1.3.2 dev_0 <develop>
torchaudio 2.0.2 py38_cpu pytorch
torchmetrics 1.2.0 pypi_0 pypi
torchvision 0.15.2 py38_cpu pytorch
And the error turns to
Traceback (most recent call last):
File "/Users/graveschan/PycharmProjects/virus_host/WD_model.py", line 1, in
from pytorch_widedeep import Trainer
File "/Users/graveschan/software/pytorch-widedeep/pytorch_widedeep/init.py", line 9, in
from pytorch_widedeep.utils import (
File "/Users/graveschan/software/pytorch-widedeep/pytorch_widedeep/utils/init.py", line 1, in
from pytorch_widedeep.utils.text_utils import (
File "/Users/graveschan/software/pytorch-widedeep/pytorch_widedeep/utils/text_utils.py", line 7, in
from pytorch_widedeep.utils.fastai_transforms import Vocab, Tokenizer
File "/Users/graveschan/software/pytorch-widedeep/pytorch_widedeep/utils/fastai_transforms.py", line 21, in
from pytorch_widedeep.wdtypes import (
File "/Users/graveschan/software/pytorch-widedeep/pytorch_widedeep/wdtypes.py", line 23, in
from torchvision.transforms import (
File "/Users/graveschan/miniforge3/envs/host_pred/lib/python3.8/site-packages/torchvision/init.py", line 6, in
from torchvision import datasets, io, models, ops, transforms, utils
File "/Users/graveschan/miniforge3/envs/host_pred/lib/python3.8/site-packages/torchvision/datasets/init.py", line 1, in
from ._optical_flow import FlyingChairs, FlyingThings3D, HD1K, KittiFlow, Sintel
File "/Users/graveschan/miniforge3/envs/host_pred/lib/python3.8/site-packages/torchvision/datasets/_optical_flow.py", line 10, in
from PIL import Image
File "/Users/graveschan/miniforge3/envs/host_pred/lib/python3.8/site-packages/PIL/Image.py", line 103, in
from . import _imaging as core
ImportError: dlopen(/Users/graveschan/miniforge3/envs/host_pred/lib/python3.8/site-packages/PIL/_imaging.cpython-38-darwin.so, 0x0002): Library not loaded: @rpath/libtiff.5.dylib
Referenced from: /Users/graveschan/miniforge3/envs/host_pred/lib/python3.8/site-packages/PIL/_imaging.cpython-38-darwin.so
Reason: tried: '/Users/graveschan/miniforge3/envs/host_pred/lib/python3.8/site-packages/PIL/../../../libtiff.5.dylib' (no such file), '/Users/graveschan/miniforge3/envs/host_pred/lib/python3.8/site-packages/PIL/../../../libtiff.5.dylib' (no such file), '/Users/graveschan/miniforge3/envs/host_pred/bin/../lib/libtiff.5.dylib' (no such file), '/Users/graveschan/miniforge3/envs/host_pred/bin/../lib/libtiff.5.dylib' (no such file), '/usr/local/lib/libtiff.5.dylib' (no such file), '/usr/lib/libtiff.5.dylib' (no such file)
And then I downgraded the Pillow to 9.3.0. This solves the error as above.
from pytorch-widedeep.
Hey @GreyGuoweiChen many thanks for all this info. I plan to review dependencies also related to another issue as soon as I can and this will be helpful!
thanks again and thanks for opening the issue :)
from pytorch-widedeep.
requirements have been updated and unit tests passed in GPU and CPU, with python versions 3.8, 3.9 and 3.10.
Hopefully there will be no dependencies issues directly related to the library
from pytorch-widedeep.
Related Issues (20)
- Not Being able to reproduce Bert results HOT 5
- pytorch vision module error HOT 1
- save_best_only error and NaN during training HOT 9
- CyclicLR throws ZeroDivisionError when finetuning with a single batch. HOT 2
- EarlyStopping does not store and restore the model HOT 5
- Can I use time series data HOT 6
- CUDA error: device-side assert triggered HOT 5
- Wrong paper links on ContrastiveDenoisingTrainer HOT 2
- how to save the best Epoch HOT 11
- Dropout layer being created on forward pass (in MultiHeadedAttention) HOT 1
- about Wide's input dim HOT 5
- ImportError: cannot import name 'LRScheduler' from 'torch.optim.lr_scheduler' HOT 8
- AttributeError: 'TabMlp' object has no attribute 'with_fds' HOT 3
- Colab session crash on .fit HOT 3
- IndexError: index out of range in self HOT 4
- how to use lr warmup in traing stage? HOT 3
- Problems running transformer models HOT 5
- 'TextPreprocessor' object has no attribute 'embedding_matrix' HOT 6
- How to install the previous version, the current 1.5 version has been working problems? HOT 14
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 pytorch-widedeep.