Comments (2)
I am just facing this issue. I got around by downgrading and using the same version used of pytorch-lightning==1.1.0
.
However, that caused also a problem of compatibility with torchtext
. And I also tried to solve that by downgrading that as well torchtext==0.8.1
. However, no resolution after that.
I am running the following
!python train.py --gpu_id=0 --data_dir='datasets' --classifier vgg11_bn
And getting
Traceback (most recent call last):
File "train.py", line 5, in <module>
from pytorch_lightning import Trainer, seed_everything
File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/__init__.py", line 60, in <module>
from pytorch_lightning import metrics
File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/metrics/__init__.py", line 14, in <module>
from pytorch_lightning.metrics.metric import Metric
File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/metrics/metric.py", line 23, in <module>
from pytorch_lightning.metrics.utils import _flatten, dim_zero_cat, dim_zero_mean, dim_zero_sum
File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/metrics/utils.py", line 18, in <module>
from pytorch_lightning.utilities import rank_zero_warn
File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/utilities/__init__.py", line 24, in <module>
from pytorch_lightning.utilities.apply_func import move_data_to_device
File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/utilities/apply_func.py", line 25, in <module>
from torchtext.data import Batch
File "/usr/local/lib/python3.7/dist-packages/torchtext/__init__.py", line 40, in <module>
_init_extension()
File "/usr/local/lib/python3.7/dist-packages/torchtext/__init__.py", line 36, in _init_extension
torch.ops.load_library(ext_specs.origin)
File "/usr/local/lib/python3.7/dist-packages/torch/_ops.py", line 104, in load_library
ctypes.CDLL(path)
File "/usr/lib/python3.7/ctypes/__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /usr/local/lib/python3.7/dist-packages/torchtext/_torchtext.so: undefined symbol: _ZNK3c104Type14isSubtypeOfExtESt10shared_ptrIS0_EPSo
from pytorch_cifar10.
I modified the code in the CIFAR10Module like:
def forward(self, batch):
images, labels = batch
outputs = self.model(images)
_, predictions = torch.max(outputs, 1)
loss = self.criterion(outputs, labels)
accuracy = self.accuracy(predictions, labels)
return loss, accuracy * 100
and it seems to have solved the problem.
from pytorch_cifar10.
Related Issues (18)
- How did you get the pretrained models? HOT 1
- Softmax in the last layer HOT 2
- Citation HOT 1
- Embeddings from the trained model don't work. HOT 1
- std different in script and readme file HOT 1
- Saving state_dict into another CNN HOT 1
- No resnet_orig.pt HOT 1
- wrong accuracy of resnet18 HOT 1
- wrong test accuracy reported HOT 1
- Hyperparameters used for training HOT 2
- 32 or 16-bit FP HOT 1
- Error during download weights and even training HOT 1
- AttributeError: can't set attribute
- Pre-trained models - low accuracy? HOT 1
- Can't replicate results HOT 1
- Do you know FLOPs of every model? HOT 2
- AdaptiveAvgPool2d in VGG creates redundancy HOT 2
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_cifar10.