Code Monkey home page Code Monkey logo

Comments (4)

EagleW avatar EagleW commented on July 21, 2024

@dara1822 I have fixed the bug, it is not important for training. Thank you very much for your suggestion.

from paperrobot.

demonlj avatar demonlj commented on July 21, 2024

got similar error
system: win8.1 + cuda10.1 + python 3.7 + pytorch1.1
C:\greenSoft\PaperRobot-master\New paper writing>python train.py --data_path dat a/pubmed_abstract --model_dp abstract_model/ --batch_size=10

`Model location: abstract_model/memory,lower=False,freq=5,word_dim=128,h=8,hop=3,
input_dropout_p=0.2,layer_dropout=0.2,gpu=True,batch_size=10,max_len=150,lr_meth
od=adam,lr_rate=0.001
Model parameters:
lower=False
freq=5
word_dim=128
h=8
hop=3
pre_emb=
input_dropout_p=0.2
layer_dropout=0.2
gpu=True
batch_size=10
max_len=150
lr_method=adam
lr_rate=0.001
data_path=data/pubmed_abstract
Found 25133 unique words (16508545 in total)
22811 / 2095 pairs in train / dev.
train batches 2282

Epoch 0/99
2281 batches processed. current batch loss: 6.061568
Finished epoch 0: Train Avg NLLLoss: 6.4136
Traceback (most recent call last):
File "train.py", line 261, in
eval_f = Evaluate()
File "C:\greenSoft\PaperRobot-master\New paper writing\eval.py", line 15, in _
init_
(Meteor(), "METEOR"),
File "C:\greenSoft\PaperRobot-master\New paper writing\pycocoevalcap\meteor\me
teor.py", line 20, in init
stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, buf
size=1)
File "C:\Users\MyPC\AppData\Local\Programs\Python\Python37\lib\subprocess.py",
line 775, in init
restore_signals, start_new_session)
File "C:\Users\MyPC\AppData\Local\Programs\Python\Python37\lib\subprocess.py",
line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2]。
Exception ignored in: <function Meteor.del at 0x0000000FECFBDD90>
Traceback (most recent call last):
File "C:\greenSoft\PaperRobot-master\New paper writing\pycocoevalcap\meteor\me
teor.py", line 59, in del
self.lock.acquire()
AttributeError: 'Meteor' object has no attribute 'lock' `

Thought the training already finished, the METEOR error does not matter?

from paperrobot.

EagleW avatar EagleW commented on July 21, 2024

from paperrobot.

EagleW avatar EagleW commented on July 21, 2024

I have commented out meteor in the current version, you can try to pull it again, because we don't use it in training @demonlj

from paperrobot.

Related Issues (20)

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.