Coder Social home page Coder Social logo

Comments (4)

qiangruoyu avatar qiangruoyu commented on June 14, 2024

Dear Author:
I meet an error When I test the model after I use the code
"th src/train.lua -phase test -gpu_id 1 -load_model -model_dir model/html -visualize
-data_base_dir data/html_64_64_100k/data/
-data_path data/html_64_64_100k/html_test.txt
-label_path data/html_64_64_100k/html_sources.txt
-output_dir results
-max_num_tokens 400 -max_image_width 64 -max_image_height 64
-batch_size 80 -beam_size 5 "

And the Error message is:

HCudaCheck FAIL file=/root/torch/extra/cutorch/lib/THC/generated/../generic/THCTensorMathPointwise.cu line=157 error=59 : device-side assert triggered
/root/torch/install/bin/luajit: /root/torch/install/share/lua/5.1/nn/THNN.lua:110: cuda runtime error (59) : device-side assert triggered at /root/torch/extra/cutorch/lib/THC/generated/../generic/THCTensorMathPointwise.cu:157
stack traceback:
[C]: in function 'v'
/root/torch/install/share/lua/5.1/nn/THNN.lua:110: in function 'Sigmoid_updateOutput'
/root/torch/install/share/lua/5.1/nn/Sigmoid.lua:4: in function 'func'
/root/torch/install/share/lua/5.1/nngraph/gmodule.lua:345: in function 'neteval'
/root/torch/install/share/lua/5.1/nngraph/gmodule.lua:380: in function 'forward'
src/model/model.lua:370: in function 'feval'
src/model/model.lua:912: in function 'step'
src/train.lua:116: in function 'train'
src/train.lua:299: in function 'main'
src/train.lua:305: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50
Can you give me some advice?

from im2markup.

da03 avatar da03 commented on June 14, 2024

Hmm weird, have you checked your torch installation? For example by

th -ltorch -e "torch.test()"

and

th -lnn    -e "nn.test()"

from im2markup.

qiangruoyu avatar qiangruoyu commented on June 14, 2024

Hmm weird, have you checked your torch installation? For example by

th -ltorch -e "torch.test()"

and

th -lnn    -e "nn.test()"

I rebuilt the dictionary and I use the model that I train.it Succeed.
thanks!

from im2markup.

da03 avatar da03 commented on June 14, 2024

Great. Closing.

from im2markup.

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.