xw-hu / dsc Goto Github PK
View Code? Open in Web Editor NEWCVPR 2018 (Oral) & TPAMI 2019
CVPR 2018 (Oral) & TPAMI 2019
I am trying to run the shadow detection but when inferring the net in python an error occurs. The error occurs at net.forward()
. I compiled the CF-Caffe and no error occured during the compilation.
error looks like following:
F0326 13:43:25.415571 15771 irnn_layer-cpp:73] Not Implemented Yet
*** Check failure stack trace: ***
Aborted (core dumped)
Does someone have an idea how to solve this problem?
Thank you in advance!
老师您好,我想问一下我训练时出现以下错误导致不能训练成功,可以帮我解答以下为什么吗?
I0411 18:55:27.986623 13702 layer_factory.hpp:77] Creating layer data
I0411 18:55:27.986646 13702 net.cpp:100] Creating Layer data
I0411 18:55:27.986651 13702 net.cpp:408] data -> data
I0411 18:55:27.986665 13702 net.cpp:408] data -> label
I0411 18:55:27.986709 13702 image_labelmap_data_layer.cpp:41] Opening file CF-Caffe/data/SBU/train.txt
I0411 18:55:27.986716 13702 image_labelmap_data_layer.cpp:51] Shuffling data
I0411 18:55:27.986719 13702 image_labelmap_data_layer.cpp:56] A total of 0 images.
*** Aborted at 1554980127 (unix time) try "date -d @1554980127" if you are using GNU date ***
PC: @ 0x7fadc51aa7a3 std::operator+<>()
*** SIGSEGV (@0x8) received by PID 13702 (TID 0x7fadc5e49200) from PID 8; stack trace: ***
@ 0x7fadc389ef20 (unknown)
@ 0x7fadc51aa7a3 std::operator+<>()
@ 0x7fadc5269571 caffe::ImageLabelmapDataLayer<>::DataLayerSetUp()
@ 0x7fadc522e569 caffe::BasePrefetchingLabelmapDataLayer<>::LayerSetUp()
@ 0x7fadc5111483 caffe::Net<>::Init()
@ 0x7fadc5112ab1 caffe::Net<>::Net()
@ 0x7fadc5137c1e caffe::Solver<>::InitTrainNet()
@ 0x7fadc5138286 caffe::Solver<>::Init()
@ 0x7fadc513860a caffe::Solver<>::Solver()
@ 0x7fadc51803b3 caffe::Creator_SGDSolver<>()
@ 0x557c537d64bd train()
@ 0x557c537d257a main
@ 0x7fadc3881b97 __libc_start_main
@ 0x557c537d2f7a _start
Segmentation fault (core dumped)
我的数据集建立在一个train文件夹下,里面同时放入shadowimages和shadowmasks,再更该路径,不知是否正确。
请问胡老师,你的损失函数有pytorch版本吗?
你好,pre-trained model,ResNeXt101 model国内可以下载吗,没有VPN[手动笑哭][手动笑哭]
How to get the value of accuracy ?
could you share the code?
Hi, when I run train.py in DSC_detection, the loss was very big, like this:
Iteration 60, loss = 640045 I1116 18:20:46.603199 22386 solver.cpp:244] Train net output #0: loss-dsn1 = 122860 (* 1 = 122860 loss) I1116 18:20:46.603204 22386 solver.cpp:244] Train net output #1: loss-dsn2 = 117984 (* 1 = 117984 loss) I1116 18:20:46.603207 22386 solver.cpp:244] Train net output #2: loss-dsn3 = 123544 (* 1 = 123544 loss) I1116 18:20:46.603211 22386 solver.cpp:244] Train net output #3: loss-dsn4 = 84440.4 (* 1 = 84440.4 loss) I1116 18:20:46.603215 22386 solver.cpp:244] Train net output #4: loss-dsn5 = 104531 (* 1 = 104531 loss) I1116 18:20:46.603219 22386 solver.cpp:244] Train net output #5: loss-dsn6 = 87796.2 (* 1 = 87796.2 loss) I1116 18:20:46.603222 22386 solver.cpp:244] Train net output #6: loss-fuse = 79751.9 (* 1 = 79751.9 loss) I1116 18:20:46.603225 22386 solver.cpp:244] Train net output #7: loss-global = 120688 (* 1 = 120688 loss)
Could you give me some suggestions? Thank you very much!
配置好caffe之后,也用小猫的那个test验证过,成功了。但是在跑这个test_detection这个程序的时候,matlab闪退了,我用的matlab版本是2016a,也用2017a试过,报错说:“MATLAB has encountered an internal problem and needs to close.”
Hello, I am interested in your work about shadow removing and I have an issue. In the file examples/DSC/test_removal.m, there is an assertion for the existence of the file 'snapshot/DSC_iter_160000_lab.caffemodel'. I guess it is the model trained by your lab to remove the shadow, however I can't find it anywhere or find any access to it in your description file README.md, so could you please tell where can I find it? Thanks a lot
Hi, it's a not an issue. I am just curious about the shadow removal results when your networks are trained from scratch.
Hi, please tell me where can I access UCF dataset?
I found the predicted shadow map is an intensity image, how to convert it to a binary image for evaluation? Just set a global threshold, e.g., 0?
What is the training time and testing time of this model? What is your configuration? I didn't find it in the paper.
During running DSC_test.ipynb, "caffe.LayerParameter" has no field named "irnn_param".
My Spec/Environment:
anaconda, caffe-gpu on Ubuntu18.04
Caffe was installed by Conda install.
On running
net = caffe.Net('deploy.prototxt', 'snapshot/DSC_iter_12000.caffemodel', caffe.TEST)
Error below:
WARNING: Logging before InitGoogleLogging() is written to STDERR
W0329 21:54:29.432673 3982 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface
W0329 21:54:29.432858 3982 _caffe.cpp:140] Use this instead (with the named "weights" parameter):
W0329 21:54:29.432874 3982 _caffe.cpp:142] Net('/home/einstein/DSC/examples/DSC/DSC_detection/deploy.prototxt', 1, weights='/home/einstein/DSC/examples/DSC/DSC_detection/snapshot/DSC_iter_12000.caffemodel')
[libprotobuf ERROR google/protobuf/text_format.cc:307] Error parsing text-format caffe.NetParameter: 524:15: Message type "caffe.LayerParameter" has no field named "irnn_param".
F0329 21:54:29.437965 3982 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /home/einstein/DSC/examples/DSC/DSC_detection/deploy.prototxt
*** Check failure stack trace: ***
Thanks.
Hi,
I download the your trained model from the google drive and save it into models folder in the DSC root folder. Change the required paths in matlab code for depoly and model files and try to run the code in matlab but i got the following error. Can you help me in this regards,
After this i try to run the python Code and write it into python file as attached and than try to run the code but this time i got the following error.
Help me how to run the testing code for detection.
Hello,
wonderful job I think.
When evaluating the shadow removal results of SRD, my result is 16.83 RMSE for the whole image. I simply use the binarization of the difference of shadow free and shadow images. Could you share me the training and testing shadow mask you used? Thanks in advance.
Hello, Mr. Hu
I hope to introduce it 'Direction-aware attention mechanism' into my experiment.I hope you can tell me where it is in the code.Is it in the DSC/examples/DSC/DSC_detection/DSC.prototxt?
Also, I would like to ask whether DSC module can be used in other parts besides focusing on the shadow part. For example, in high exposure areas, if possible, which parameters determine?
I look forward to your reply. Thank you.
老师你好,很抱歉打扰您啦,请问能分享一下BER和accuracy计算的python代码吗,我看过torch版本的,但是好像没有涉及到这两个评价指标,或者是我没有发现,期待您的回复!谢谢~
UCF dataset cannot be accessed, can you provide it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.