Giter Site home page Giter Site logo

training 设置报错 about crslab HOT 3 OPEN

xy-derrick avatar xy-derrick commented on June 17, 2024
training 设置报错

from crslab.

Comments (3)

ChenCyril avatar ChenCyril commented on June 17, 2024

我也有点奇怪...用GPU跑就报这个错,CPU跑倒是没问题emmm...

from crslab.

enchantee00 avatar enchantee00 commented on June 17, 2024

change
bert_param = list(self.rec_model.module.bert.named_parameters())
to
bert_param = list(self.rec_model.bert.named_parameters())

Can fix this error

from crslab.

nguyenminhduc392002 avatar nguyenminhduc392002 commented on June 17, 2024

"Traceback (most recent call last):
File "/opt/conda/lib/python3.10/site-packages/nltk/util.py", line 468, in ngrams
history.append(next(sequence))
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/kaggle/working/CRSLab-main/run_crslab.py", line 43, in
run_crslab(config, args.save_data, args.restore_data, args.save_system, args.restore_system, args.interact,
File "/kaggle/working/CRSLab-main/crslab/quick_start/quick_start.py", line 73, in run_crslab
CRS.fit()
File "/kaggle/working/CRSLab-main/crslab/system/inspired.py", line 206, in fit
self.train_conversation()
File "/kaggle/working/CRSLab-main/crslab/system/inspired.py", line 188, in train_conversation
self.step((batch), stage='conv', mode='val')
File "/kaggle/working/CRSLab-main/crslab/system/inspired.py", line 120, in step
self.conv_evaluate(pred, batch[-1])
File "/kaggle/working/CRSLab-main/crslab/system/inspired.py", line 89, in conv_evaluate
self.evaluator.gen_evaluate(p_str, [r_str])
File "/kaggle/working/CRSLab-main/crslab/evaluator/standard.py", line 80, in gen_evaluate
for token in ngrams(hyp, k):
RuntimeError: generator raised StopIteration" Can you help me fix this error?

from crslab.

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.