Comments (7)
resolved with
!pip install torch==1.0.1 torchvision==0.2.2
from sentiment-discovery.
same error, even tried earlier commits still didn't ran
from sentiment-discovery.
I encountered a similar problem.
It seems that the defined 'DataLoader' in this repository corresponds to the old 'DataLoader' and does not support the newer version.
https://github.com/NVIDIA/sentiment-discovery/blob/master/data_utils/loaders.py#L91
I added 2 lines in def __init__() of class DataLoader(data.DataLoader) as below.
class DataLoader(data.DataLoader):
"""normal data loader except with options for distributed data batch sampling + wrap around"""
def __init__(self, dataset, batch_size=1, shuffle=False, sampler=None, batch_sampler=None,
num_workers=0, collate_fn=default_collate, pin_memory=False, drop_last=False,
transpose=False, world_size=2, rank=-1, distributed=False, wrap_last=False,
timeout=0, worker_init_fn=None):
self.dataset = dataset
# added 2019-11-24
self._dataset_kind = None
self.multiprocessing_context = None
self.batch_size = batch_size
I haven't confirmed that it works correctly, but at least it works without error.
from sentiment-discovery.
Unfortunately, the method I wrote above may not be performing properly.
I tried using "Finetuned Plutchik Transformer" by the way above, but it doesn't seem to get good results...
self._dataset_kind = None
may be undesirable.
from sentiment-discovery.
I had a similar problem maybe it helps someone: I tried to load my own Dataloader object, which I saved with a previous version of Pytorch. After updating Pytorch my Dataloader object could be loaded, but I couldn't iterate over it. So, I had to create a new Dataloader object with the new Pytorch version.
from sentiment-discovery.
I had a similar problem maybe it helps someone: I tried to load my own Dataloader object, which I saved with a previous version of Pytorch. After updating Pytorch my Dataloader object could be loaded, but I couldn't iterate over it. So, I had to create a new Dataloader object with the new Pytorch version.
how to create a new Dataloader object with the new Pytorch version? I am so confused
from sentiment-discovery.
AttributeError: 'DirectoryDataLoader' object has no attribute 'label_map'. Please help.
from sentiment-discovery.
Related Issues (20)
- Reproducing SemEval results
- Broken Pipe Error - main.py
- Unable to use standalone transformer language model
- Can I use the pretrained emotion classification on new dataset for subset of emotion?
- run_classifier for emotion classification? HOT 1
- Can some body fix this library?
- KeyError in transformer model HOT 1
- other languages, camemBERT/flauBERT model
- Error(s) in loading state_dict for TransformerDecoderModel
- Unable to run train.py Keras retinanet in Ubuntu on Remote server HOT 1
- run_classifier.py invalid arguments HOT 2
- "AttributeError: 'DataLoader' object has no attribute '_dataset_kind'" How should I solve this error? HOT 2
- error: command 'gcc' failed with exit status 1
- The emotion classification model's performance is almost the same as a random guess HOT 4
- How to run_classifier on Semeval data for prediction?
- how to use transformer_semeval.clf?
- AttributeError: 'DataLoader' object has no attribute 'device'
- get the emotion score of a sentence
- the API for emotion Category
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 sentiment-discovery.