Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How run this code #3

Open
sagagk opened this issue Jun 18, 2021 · 1 comment
Open

How run this code #3

sagagk opened this issue Jun 18, 2021 · 1 comment

Comments

@sagagk
Copy link

sagagk commented Jun 18, 2021

Hi,

I use google colab to test this model to apply some real data:

!pip install git+https://github.com/AmrMKayid/nam

but when I run the notebook the line about pytorch_lightning

import pytorch_lightning as pl

I obtain:

ImportError Traceback (most recent call last)
in ()
----> 1 import pytorch_lightning as pl
2 from pytorch_lightning.callbacks.model_checkpoint import ModelCheckpoint
3 from pytorch_lightning.loggers import TensorBoardLogger
4
5 from nam.config import defaults

10 frames
/usr/local/lib/python3.7/dist-packages/torchtext/vocab.py in ()
11 from typing import Dict, List, Optional, Iterable
12 from collections import Counter, OrderedDict
---> 13 from torchtext._torchtext import (
14 Vocab as VocabPybind,
15 )

ImportError: /usr/local/lib/python3.7/dist-packages/torchtext/_torchtext.so: undefined symbol: _ZN2at6detail10noopDeleteEPv

Can you help me?. Or I should use a local version of your code.. in any way, what are the libraries that I need to run succesfully your code. Thanks!!

SAG

@sagagk
Copy link
Author

sagagk commented Jun 23, 2021

In any case, I could ran this code using in Google Colab (in this order; in the opposite it doesnt work):

!pip install git+https://github.com/PyTorchLightning/pytorch-lightning

!pip install git+https://github.com/AmrMKayid/nam

And then I use the lines of code:

import pytorch_lightning as pl
from pytorch_lightning.callbacks.model_checkpoint import ModelCheckpoint
from pytorch_lightning.loggers import TensorBoardLogger

from nam.config import defaults
(etc)

@sagagk sagagk closed this as completed Jun 23, 2021
@sagagk sagagk reopened this Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant