Closed niamul070 closed 7 years ago
I guess you you get something wrong in the previous step, "compile_mex" has a wrong result.
I've never seen this before. Does running compile_mex
give you any error?
compile_mex did not give any error. I also can run the bbox function to see the selfie.jpg. But when I run the train script (hr_res101.m) then only I am getting this.
compute_dense_overlap
is only called during training. I'm not sure why MATLAB gives such error.
Let me know if you solved it.
hello,where did you get the model file hr_res101.mat?
@wolfworld6 Please see the latest README or tiny_face_detector.m
.
@niamul070 Let me know if you have solver this problem, i have met the same problem... Or could you please contact me by email: tangxu@shanghaitech.edu.cn
No it was not solved. They closed the ticket without solving the issue. I think this problem arises for a specific version of Matlab. I was using Matlab 2016b academic edition. I think "peiyunh" wrote the program with a different version of Matlab.
On Thu, Aug 31, 2017 at 1:13 AM, bigboss notifications@github.com wrote:
@niamul070 https://github.com/niamul070 Let me know if you have solver this problem, i have met the same problem... Or could you please contact me by email: tangxu@shanghaitech.edu.cn
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/peiyunh/tiny/issues/22#issuecomment-326223662, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVaqrzJez1-8WThnkUTZEGA-jFBgvV6ks5sdmsjgaJpZM4NwXDT .
@peiyunh hey, could you plz tell us the version of your matlab? Such that we can follow ur step. @niamul070 and I met the same problem, and we thought it owes to the differences between our version of matlab. THXs.
Here is my MATLAB version: 9.1.0.441655 (R2016b). It is unlikely an issue of MATLAB.
@takecareofbigboss and @niamul070, did you compile the MEX file on your system following the README.md?
I am so sorry to reply you now,my MATLAB version:9.1.0.441655 (R2016b) I have compiled the MEX
发自网易邮箱大师
On 9/1/2017 13:26,Peiyun Hunotifications@github.com wrote:
Here is my MATLAB version: 9.1.0.441655 (R2016b). It is unlikely an issue of MATLAB.
@takecareofbigboss and @niamul070, did you compile the MEX file on your system following the README.md?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Can you post your compilation error or runtime error here?
I added a test script for compute_dense_overlap
. Try this in MATLAB:
>> cd utils;
>> compile_mex;
>> test_compute_dense_overlap;
to see if it works now.
yep, it solved!!! appreciate your help... @peiyunh
@niamul070 you can try it again, all the problems are solved for me.
I am getting the following error. Can you help. I changed the gpus=[1 2 3 4] to gpus=[1] in the hr_res101('train') because it was saying device id from 1:1 is needed. Now I am getting the following error (at the bottom of the page):
ans =
models/widerface-resnet-101-simple-sample256-posfrac0.5-N25-bboxreg-cluster-scaled
Trying to initialize the structure of resnet-101-simple Unknown model: cannot initialize. Loading pretrained weights from ./trained_models/imagenet-resnet-101-dag.mat Loaded imdb from data/widerface/imdb.mat cluster path: data/widerface/RefBox_N25_scaled.mat
opts =
struct with fields:
ans =
struct with fields:
Start using dagnn.DetLoss for loss cnn_train_dag_hardmine: resetting GPU train: epoch 01: 1/1074:Invalid MEX-file '/purcell1/mbaqui/Documents/tiny/utils/compute_dense_overlap.mexa64': dlopen: cannot load any more object with static TLS.
Error in cnn_get_batch_hardmine (line 378) iou = compute_dense_overlap(ofx,ofy,stx,sty,vsx,vsy,...
Error in cnn_widerface>getDagNNBatch (line 258) [images, clsmaps, regmaps] = batchGetter(imagePaths, imageSizes, labelRects, ...
Error in cnn_widerface>@(x,y)getDagNNBatch(batchGetter,bopts,useGpu,x,y) (line 243) fn = @(x,y) getDagNNBatch(batchGetter, bopts,useGpu,x,y) ;
Error in cnn_train_dag_hardmine>process_epoch (line 268) inputs = state.getBatch(state.imdb, batch) ;
Error in cnn_train_dag_hardmine (line 148) [stats.train(epoch),prof] = process_epoch(net, state, opts, 'train') ;
Error in cnn_widerface (line 212) [net, info] = trainFn(net, imdb, getBatchFn(batchGetter, opts, net.meta), ...
Error in hr_res101 (line 42) cnn_widerface('inputSize', inputSize, ...