Git Product home page Git Product logo

Comments (9)

aarnetalman avatar aarnetalman commented on July 29, 2024 1

Could be related to PyTorch version. The code is written using PyTorch 0.3.1. We have not tested with 0.4.

from hbmp.

aarnetalman avatar aarnetalman commented on July 29, 2024

Hi. Thanks for using our code. Are you running this on a machine with a GPU? Which version of PyTorch are you using. -Aarne

from hbmp.

Zeinab-Kouhkan avatar Zeinab-Kouhkan commented on July 29, 2024

Yes, I am running this on Google Colab and selecting GPU on Jupyter notebook.
PyTorch-0.4.1

from hbmp.

Zeinab-Kouhkan avatar Zeinab-Kouhkan commented on July 29, 2024

Now I have these versions:
Python (3.6.7)
Pytorch (0.3.1)
Numpy (1.14.3)
Torchtext (0.2.1)
SpaCy (2.0.11)
But there is an error:

Traceback (most recent call last):
File "train.py", line 393, in
main()
File "train.py", line 156, in main
map_location=lambda storage, location: storage.cuda(config.gpu))
File "/usr/local/lib/python3.6/dist-packages/torch/serialization.py", line 267, in load
return _load(f, map_location, pickle_module)
File "/usr/local/lib/python3.6/dist-packages/torch/serialization.py", line 420, in _load
result = unpickler.load()
AttributeError: Can't get attribute '_rebuild_tensor_v2' on <module 'torch._utils' from '/usr/local/lib/python3.6/dist-packages/torch/_utils.py'>

from hbmp.

aarnetalman avatar aarnetalman commented on July 29, 2024

Could it be that the code cannot locate the pretrained word embeddings. Have you run the download_data.sh script? That should download the word embeddings.

from hbmp.

Zeinab-Kouhkan avatar Zeinab-Kouhkan commented on July 29, 2024

Yes, I have.
1

from hbmp.

Zeinab-Kouhkan avatar Zeinab-Kouhkan commented on July 29, 2024

I tried to solve this issue:
https://github.com/Zeinab-Kouhkan/HBMP

from hbmp.

aarnetalman avatar aarnetalman commented on July 29, 2024

Hi, Unfortunately I don't have resources or time to verify and fix the issue. Let me know if you find a fix.
Aarne

from hbmp.

aarnetalman avatar aarnetalman commented on July 29, 2024

Closing this for now. Let me know if you still experience the issue.

from hbmp.

Related Issues (9)

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.