GithubHelp home page GithubHelp logo

run hr_res('train') has error about tiny HOT 5 CLOSED

peiyunh avatar peiyunh commented on June 10, 2024
run hr_res('train') has error

from tiny.

Comments (5)

zhangjinsong3 avatar zhangjinsong3 commented on June 10, 2024 1

out of memory!
train to change the batchSize=4 ,for example : batchSzie =1.
Because the resnet101 need much more memory.

from tiny.

tzhang2014 avatar tzhang2014 commented on June 10, 2024

thank you ! I have set opts.batchSize = 10 to opts.batchSize = 1in cnn_widerface.m and opts.batchSize = 256 to opts.batchSize = 1 in cnn_train_dag_hardmine.m ,but remain get the same error ,

from tiny.

peiyunh avatar peiyunh commented on June 10, 2024

Parameters set in hr_res101.m will override default ones in both cnn_widerface.m and cnn_train_dag_hardmine.m.

from tiny.

FredaZhang338 avatar FredaZhang338 commented on June 10, 2024

hi dear @peiyunh I haved compiled and tested as you said,and I can run the demo,but when I run hr_res101('train');I got the errors as floows:
( I have changed the MAX_INPUT_DIM in hr_res101.m to 1500)
Lab 1:
train: epoch 01: 1/269:
Lab 2:
train: epoch 01: 1/269:
Lab 3:
train: epoch 01: 1/269:
Lab 4:
train: epoch 01: 1/269:
Error using dagnn.Conv/forward (line 11)
Error detected on worker 1.
Out of memory on device. To view more detail about available memory on the GPU, use 'gpuDevice()'.
If the problem persists, reset the GPU by calling 'gpuDevice(1)'.

Error in dagnn.Layer/forwardAdvanced (line 85)
outputs = obj.forward(inputs, {net.params(par).value}) ;

Error in dagnn.DagNN/forward (line 28)
obj.layers(l).block.forwardAdvanced(obj.layers(l)) ;

Error in cnn_train_dag_hardmine>process_epoch (line 286)
net.forward(inputs, opts.derOutputs);

Error in cnn_train_dag_hardmine>(spmd body) (line 158)
[stats_.train, prof_] = process_epoch(net_, state, opts, 'train') ;

Error in cnn_train_dag_hardmine>(spmd) (line 156)
spmd

Error in cnn_train_dag_hardmine (line 156)
spmd

Error in cnn_widerface (line 212)
[net, info] = trainFn(net, imdb, getBatchFn(batchGetter, opts, net.meta), ...

Error in hr_res101 (line 41)
cnn_widerface('inputSize', inputSize, ...

I have tried to reset the gpuDevice and tried to change the batchsize smaller ,but another error came out.So I am wondering if you have any idea to fix this problem. thank you so much!

from tiny.

FredaZhang338 avatar FredaZhang338 commented on June 10, 2024

I have fixed the probelm~thx

from tiny.

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.