Comments (19)
- Try to update build/darknet/darknet/darknet.vcxproj from last commit.
- Try to delete all temporary files if it exist:
.vcxproj.user
.vcxproj.filters
.vcproj.<domainname???>..user
.suo - Open in MSVS 2013: darknet.vcxproj
then, right click on project -> Build dependecies -> Build Customizations -> set check on CUDA 6.5 or 7.0 - for example as here: http://devblogs.nvidia.com/parallelforall/wp-content/uploads/2015/01/VS2013-R-5.jpg
from yolo-windows.
Thank you for your reply, I appreciate it a lot. However, after cloning the new commission, I still encounter the same problem.
Also, here's the screenshot from step 3, when I open darknet.vcxproj in MSVS 2013.
C:\Users(username)\Downloads\yolo-windows-master (vs2013, Cuda 6.5, Git AlexeyAB)\build\darknet\darknet\darknet.vcxproj : error : Unable to read the project file "darknet.vcxproj".
C:\Users(username)\Downloads\yolo-windows-master (vs2013, Cuda 6.5, Git AlexeyAB)\build\darknet\darknet\darknet.vcxproj(55,5): The imported project "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 7.5.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
I noticed it's asking for CUDA 7.5 now, which I have installed, but it still won't load. I can't get to building dependencies either.
I look forward to your reply, every bit of help is greatly appreciated. Thanks so much!
from yolo-windows.
@olivesfang Can you post screenshot from: HELP -> About Microsoft Visual Studio?
Is there Visual C++?
I just successfully opened darknet.sln in each of the:
- MSVS2010 Ultimate
- MSVS2012 Ultimate Update 4
- MSVS2013 Ultimate SP1Rel
from yolo-windows.
Here's the screenshot. I appreciate the response.
from yolo-windows.
@olivesfang
You can to create your own darknet.sln & darknet.vcxproj
Then add to your created project:
- (right click on project) -> properties -> C/C++ -> General -> Additional Include Directories, put here:
C:\opencv_2.4.9\opencv\build\include;..\..\..\3rdparty\include;%(AdditionalIncludeDirectories);$(CudaToolkitIncludeDir)
- right click on project -> Build dependecies -> Build Customizations -> set check on CUDA 7.5 or what version you have - for example as here: http://devblogs.nvidia.com/parallelforall/wp-content/uploads/2015/01/VS2013-R-5.jpg
- add to project all .c & .cu files from yolo-windows\src
- (right click on project) -> properties -> Linker -> General -> Additional Library Directories, put here:
C:\opencv_2.4.9\opencv\build\x64\vc12\lib;$(CUDA_PATH)lib\$(PlatformName);%(AdditionalLibraryDirectories)
- (right click on project) -> properties -> Linker -> Input -> Additional dependecies, put here:
..\..\..\3rdparty\lib\x64\pthreadVC2.lib;cublas.lib;curand.lib;cudart.lib;%(AdditionalDependencies)
- (right click on project) -> properties -> C/C++ -> Preprocessor -> Preprocessor Definitions
OPENCV;_CRT_SECURE_NO_WARNINGS;GPU;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
- compile to .exe (X64 & Release) and put .dll`s near with .exe:
pthreadVC2.dll, pthreadGC2.dll
from yolo-windows\3rdparty\dll\x64
cusolver64_75.dll, curand64_75.dll, cudart64_75.dll, cublas64_75.dll
- 75 for CUDA 7.5 or your version, from C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\bin
from yolo-windows.
Thank you for your reply ... but there are some steps that I do not understand.
- What do you mean by
$(CUDA_PATH)lib\$(PlatformName);
? I ended up just adding that to my directories.
compile to .exe (X64 & Release)
- You mean to build the project right? I don't understand if there are additional steps to make it "X64 & Release", can you direct me to a guide?
pthreadVC2.dll, pthreadGC2.dll
from yolo-windows\3rdparty\dll\x64
- But
pthreadGC2.dll
isn't in the specified folder?
I hope you are willing to continue to help me. Thank you so much for taking your time to teach me.
from yolo-windows.
What do you mean by
$(CUDA_PATH)lib$ (PlatformName);? I ended up just adding that to my directories.
You should put exactly this line, not changing it.
$(CUDA_PATH)lib\$(PlatformName);
compile to .exe (X64 & Release) You mean to build the project right? I don't understand if there are additional steps to make it "X64 & Release", can you direct me to a guide?
Yes, simply compile the project
pthreadVC2.dll, pthreadGC2.dll from yolo-windows\3rdparty\dll\x64
But pthreadGC2.dll isn't in the specified folder?
There are: pthreadGC2.dll, pthreadVC2.dll
https://github.com/AlexeyAB/yolo-windows/tree/master/3rdparty/dll/x64
These are the output errors:
You should - I fixed it in my previous answer:
- first thing, at the beginning: right click on project -> Build dependecies -> Build Customizations -> set check on CUDA 7.5 or what version you have - for example as here: http://devblogs.nvidia.com/parallelforall/wp-content/uploads/2015/01/VS2013-R-5.jpg
- and only after 1-st step done, then: add to project all .c & .cu files from yolo-windows\src
And try to right click on any .cu-file -> properties, and you should see that there is CUDA C/C ++ compiler, not C/C++ compiler
from yolo-windows.
Thanks for the help, but I still encountered the exact error when following the new instructions.
Is it possible to watch you look into the project via Team Viewer? Thank you so much for the help so far.
from yolo-windows.
@olivesfang
Unfortunately I can not give remote access, even readonly.
- You must make sure that for each .cu-file selected compiler CUDA C/C++ instead of C/C++
(right click) on any .cu-file -> properties
- And you must make sure that
cudart.lib
added:
Can you provide each screenshot for each of steps?
- selected compiler CUDA C/C++ for activation_kernels.cu (and check that the same for each .cu-file)
- Additional Include Directories
- Additional Library Directories
- Additional dependecies
from yolo-windows.
You must make sure that for each .cu-file selected compiler CUDA C/C++ instead of C/C++
And you must make sure that cudart.lib added:
Additional Include Directories
File path on my computer for OpenCV & yolo-windows for reference:
Thanks for the help again. I've also checked each .cu-file and it does say the item type is CUDA C/C++, although it'd take a while to screenshot all of them (I will upload them shortly.)
By Team Viewer, I meant if you would be so kind to access my computer and see if there is a problem. Thanks for the prompt help!
from yolo-windows.
One last thing :)
- (right click on project) -> properties -> C/C++ -> Preprocessor -> Preprocessor Definitions
Insert:
OPENCV
_CRT_SECURE_NO_WARNINGS
GPU
WIN32
NDEBUG
_CONSOLE
_LIB
from yolo-windows.
Thanks! That allowed the project to start it's build. Unfortunately, it stopped shortly...
from yolo-windows.
@olivesfang
I fix some files in 2 last commits.
Try to download new versions of 3 files from github:
- src/utils.c
- src/maxpool_layer_kernels.cu
- src/softmax_layer_kernels.cu
from yolo-windows.
Thanks again. After updating these files, this is the output error:
I have checked the .cu and they are the correct item type.
from yolo-windows.
In these files: src/maxpool_layer_kernels.cu
& src/softmax_layer_kernels.cu
, after all #include
's you can use:
#ifndef INFINITY
#include <limits>
const float INFINITY = std::numeric_limits<float>::infinity();
#endif
For example in src/softmax_layer_kernels.cu
:
#include "cuda_runtime.h"
#include "curand.h"
#include "cublas_v2.h"
#include "math.h"
extern "C" {
#include "maxpool_layer.h"
#include "cuda.h"
}
#ifndef INFINITY
#include <limits>
const float INFINITY = std::numeric_limits<float>::infinity();
#endif
Or try to use this darknet2.vcxproj
I just now did everything on his instructions on MSVS 2013 & CUDA 7.5 - and it works for x64 (Release & Debug), but not for Win32 (Release & Debug).
- Download: https://drive.google.com/open?id=0BwRgzHpNbsWBdGZuNkVnT1lUcnc
- Put it: yolo-windows\build\darknet2\darknet2\darknet2.vcxproj
- And set x64 to compile
from yolo-windows.
Holy cow, I was able to compile darknet2.vcxproj successfully. Although ... the .exe file crashes upon execution and gives me the following errors regarding these files are missing and need to be re-installed:
- pthreadVC2.dll
- opencv_core249.dll
- opencv_imgproc249.dll
- opencv_highgui249.dll
If you have some time, please look into this. Thank you so much!
EDIT: I have the pthreadVC2.dll
file at yolo-windows-master\yolo-windows-master\3rdparty\dll\x64
I see the opencv related .dll
files are here C:\opencv_2.4.9\opencv\build\x64\vc12\bin
EDIT2: I was able to fix it easily by dragging the correct files to the root. Never mind! Currently having problems with execution, where the title + box won't appear (so it's not detecting at all ...)
from yolo-windows.
Okay, so my executable doesn't seem to be detecting objects correctly. Real time webcam loaded, but wasn't detecting anything. Running the yolo test instead, I found prediction errors.
Thank you for looking into this!
from yolo-windows.
Just reporting back that I was eventually able to compile with the original files in the repository with CUDA 7.5 and VS 2013. Thanks for the help!
from yolo-windows.
@olivesfang Glad to hear. What was the problem and how it was solved? Now do you successfully detect the objects?
- Now by link there is new version YoloV2: http://pjreddie.com/darknet/yolo/
- But this fork of old version YoloV1, description is now here: http://pjreddie.com/darknet/yolov1/
I changed all links to old weights-files in Readme.md (in the description of this fork) which successfully tested.
from yolo-windows.
Related Issues (13)
- Do you know how to run ssd on windows? HOT 1
- Compile errors with yolo2_light HOT 4
- How to test image?
- Is it possible to perform detection and test on part of each image?
- How to make yolo cpp dll thread safe
- I didn't get any detcted boxes after training new data HOT 4
- why a lot of classes has changed in windows version like removing CUDNN ? HOT 2
- How can I use it without GPU HOT 1
- problem when i compile darknet HOT 1
- Memory Leak
- OpenCV 3.3 Compile Errors HOT 2
- Unreasonable high score for the classes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yolo-windows.