Coder Social home page Coder Social logo

dialogue_gcn's People

Contributors

byecc avatar mianzhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dialogue_gcn's Issues

Duplicate calculation?

/dgcn/model/functions.py
Line 17: edge_ind.append(edge_perms(lengths[j].cpu().item(), wp, wf))
Line 24: perms = edge_perms(cur_len, wp, wf)

Maybe the perms in line 24 can be assigned directly by edge_ind calculate in Line 17?
Is there any difference?

PLz!how does the dataset work?

i have downloaded iemocap yet found no pkl for utils to load_pkl.
is there any necessary process missing ?
.first time using this dataset

Runtime error

I am trying to use dialogueGCN for establishing baseline for my model, but I cannot run the code-
while executing ./scripts/iemocap.sh train

Error: RuntimeError: 'lengths' argument should be a 1D CPU int64 tensor, but got 1D cuda:1 Long tensor

Error log-
Traceback (most recent call last):
File "train.py", line 93, in
main(args)
File "train.py", line 35, in main
ret = coach.train()
File "/mnt/berry/home/prakhar/dialoguegcn/conv-emotion/DialogueGCN-mianzhang/dgcn/Coach.py", line 41, in train
self.train_epoch(epoch)
File "/mnt/berry/home/prakhar/dialoguegcn/conv-emotion/DialogueGCN-mianzhang/dgcn/Coach.py", line 74, in train_epoch
nll = self.model.get_loss(data)
File "/mnt/berry/home/prakhar/dialoguegcn/conv-emotion/DialogueGCN-mianzhang/dgcn/model/DialogueGCN.py", line 59, in get_loss
graph_out, features = self.get_rep(data)
File "/mnt/berry/home/prakhar/dialoguegcn/conv-emotion/DialogueGCN-mianzhang/dgcn/model/DialogueGCN.py", line 43, in get_rep
node_features = self.rnn(data["text_len_tensor"], data["text_tensor"]) # [batch_size, mx_len, D_g]
File "/mnt/berry/home/prakhar/dialoguegcn/conv-emotion/DialogueGCN-mianzhang/cudagcn/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "/mnt/berry/home/prakhar/dialoguegcn/conv-emotion/DialogueGCN-mianzhang/dgcn/model/SeqContext.py", line 20, in forward
packed = pack_padded_sequence(
File "/mnt/berry/home/prakhar/dialoguegcn/conv-emotion/DialogueGCN-mianzhang/cudagcn/lib/python3.8/site-packages/torch/nn/utils/rnn.py", line 249, in pack_padded_sequence
_VF._pack_padded_sequence(input, lengths, batch_first)
RuntimeError: 'lengths' argument should be a 1D CPU int64 tensor, but got 1D cuda:1 Long tensor

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.