-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when running main.py #5
Comments
I figured it out... It was because I did not end the path with '/' in the config.py files. Now I fixed it and it still could find the path... py_lab@Pie:~/deep-parking$ python main.py It is looking for an 'empty' folder within '2012-12-08', but there is no such folder.. Any idea? |
Hi @tszngai ,
with
as root folder in |
Thank you for the reply @fabiocarrara ! I0712 06:15:46.586170 9696 solver.cpp:414] Test net output #1: loss = 0.335053 (* 1 = 0.335053 loss) |
It seems that one of the log files of the experiments is not properly formatted. It may indicate there was a problem with a specific experiment. Please, manually check the log files in the runs/ subfolders for errors. You may then rerun only the failed experiments by commenting the finished ones in main.py. If there are no failed experiments, there is probably a bug in the summarize() function. |
Thanks again for your response @fabiocarrara . Now that I have my own training models, I would like to use them to write a function that can detect vehicles from any input images. Could you advice the approaches or if there are any useful tutorials you know? Thank you! |
Hi Fabiocarrara, thank you for your efforts in this incredible project. As I am following with the instructions, I have encountered some errors when running the main.py.
According to the other two posts, I have changed the caffe path to the correct one and remove the GPU 0 flags already. When I run main.py, I got the following errors:
py_lab@Pie:~/deep-parking$ python main.py
INFO 2018-07-09 17:16:03: Setting up mAlexNet trained on PKLot_train, validated on PKLot_val, CNRPark-EXT_val, tested on PKLot_test_CNRPark-EXT_test ...
INFO 2018-07-09 17:16:04: Training on PKLot_train while validating on PKLot_val, CNRPark-EXT_val ...
E0709 17:16:04.984817 4622 io.cpp:80] Could not open or find file /home/py_lab/deep-parking/PKLot/PKLotUFPR04/Sunny/2012-12-08/Empty/2012-12-08_14_25_10#010.jpg
F0709 17:16:04.985540 4622 image_data_layer.cpp:77] Check failed: cv_img.data Could not load UFPR04/Sunny/2012-12-08/Empty/2012-12-08_14_25_10#010.jpg
*** Check failure stack trace: ***
@ 0x7eff5db9f5cd google::LogMessage::Fail()
@ 0x7eff5dba1433 google::LogMessage::SendToLog()
@ 0x7eff5db9f15b google::LogMessage::Flush()
@ 0x7eff5dba1e1e google::LogMessageFatal::~LogMessageFatal()
@ 0x7eff5e07b358 caffe::ImageDataLayer<>::DataLayerSetUp()
@ 0x7eff5dfe598e caffe::BasePrefetchingDataLayer<>::LayerSetUp()
@ 0x7eff5df47d07 caffe::Net<>::Init()
@ 0x7eff5df4a44e caffe::Net<>::Net()
@ 0x7eff5e0d44fa caffe::Solver<>::InitTrainNet()
@ 0x7eff5e0d59c5 caffe::Solver<>::Init()
@ 0x7eff5e0d5cdf caffe::Solver<>::Solver()
@ 0x7eff5e0cd801 caffe::Creator_SGDSolver<>()
@ 0x40a288 train()
@ 0x407208 main
@ 0x7eff5c335830 __libc_start_main
@ 0x407ad9 _start
@ (nil) (unknown)
It says that it could not find the file at /home/py_lab/deep-parking/PKLot/PKLotUFPR04/Sunny/2012-12-08/Empty/2012-12-08_14_25_10#010.jpg
The problem is that a '/' is missing before UFPR04. UFPR04 is actually a folder within PKLot so it should instead be home/py_lab/deep-parking/PKLot/PKLot/UFPR04/Sunny/2012-12-08/Empty/2012-12-08_14_25_10#010.jpg
Could you please advice how to fix this issue?
The text was updated successfully, but these errors were encountered: