Comments (10)
Error message:
dyld: Library not loaded: @rpath/libdarknetOSX.dylib
...
Reason: image not found
from ofxdarknet.
We can fix this by setting in xCode:
Build Settings / Runpath Search Paths
{blabla}.. libs/darknet/lib/osx/
Let's see, if this can be set via the Project Generator
from ofxdarknet.
If I add into the addon_config.mk
ADDON_LDFLAGS = -rpath /Users/sonneundasche/programming/of/addons/ofxDarknet/libs/darknet/lib/osx
It works, but that's an absolute path
from ofxdarknet.
what about this:
ADDON_LDFLAGS = -rpath $(OF_ROOT)/addons/ofxDarknet/libs/darknet/lib/osx
from ofxdarknet.
this appears to work. a7eb277
ADDON_LDFLAGS = -rpath ../../../../addons/ofxDarknet/libs/darknet/lib/osx
from ofxdarknet.
Heya, I'm still getting:
dyld: Library not loaded: @rpath/libcudart.8.0.dylib
Referenced from: /.../OpenFrameworks/of_v0.9.8_osx_release/addons/ofxDarknet/example-yolo2/bin/libdarknetOSX.dylib
Reason: image not found
(lldb)
(Thread 1: 0_abort_with_payload on run)
libdarknetOSX.dylib is in the project bin, and I'm up to date with your latest commit (i.e the ADDON_LDFLAGS is correct) anything else I've missed?
Thanks guys, awesome job putting this together
Also do I need to specify using CPU and not cuda/GPU in addon_config (tried commenting out the cuda paths but then get other errors) / Will it work on CPU?
from ofxdarknet.
do you have CUDA installed? or in a different path?
right now it's searching for cuda in /usr/local/cuda/
, so you should have a file libcudart.8.0.dylib
inside /usr/local/cuda/lib/
. if you have cuda in a different location, you'd need to change the CUDA search path in the addon_config.mk
file or in the xcode project file.
it's also assuming CUDA 8.0 -- if you have an older version, we'd need to link against that for it to work. potentially it could work with just using symlinks to your version of cuda.
from ofxdarknet.
I have CUDA 7 installed but not sure it ever worked as I don't have a nvidia GPU on my macbook (can try install CUDA 8 but I thought you needed a GPU). Bit confused though as it says darknet supports CPU and GPU computation but is written in Cuda?
If its only for GPU then no worries, I think its a dead end, I'll just keep playing on my AWS :)
from ofxdarknet.
are you sure you don't have NVIDIA? check graphics in About this mac
. if you have CUDA 7, you should be able to switch to CUDA 8 without much difficulty. it's possible that it may work without problems with CUDA 7, we haven't tested that. one quick way to check is to make symlinks for all the needed files, so e.g. libcudart.8.0.dylib
links to libcudart.7.0.dylib
or whatever you have... its a hack but it could work. otherwise try cuda 8.
the repo is hard-coded to just use GPU at the moment. we might make it an option, but everything becomes at least 10x slower in CPU mode, which defeats the purpose of bringing it into OF to begin with.
from ofxdarknet.
Yeah no NVIDIA. I have the Retina 13-inch Late 2013 with an integrated GPU - Intel Iris 1536 MB - only the larger ones have the dedicated Nvidia GPU (hence having to use AWS for all GPU stuff - bit of a bore), thanks though Gene. I might try playing with Redmon's DarkNet in CPU mode though
from ofxdarknet.
Related Issues (20)
- GPU mode issue HOT 3
- YOLO 9000 HOT 1
- All examples crashing when loading layer 24 HOT 3
- YOLO examples don't align with current code state HOT 3
- Eclipse Problem HOT 1
- Video streaming HOT 3
- Can't run in Linux (Ubuntu 16.04) HOT 6
- Example quits on init() without warning/errors (Windows 10 + OF0.9.8) HOT 1
- GPU=1 make fails HOT 4
- can't find visual studion .props files HOT 1
- COCO dataset HOT 1
- issue with new version cuda 9.1 HOT 1
- Extract image features from darknet
- trying to run examples but they close immediately after opening HOT 1
- Windows build errors help? HOT 1
- Can't cmake Darknet HOT 1
- YOLOv3 HOT 11
- How to run live stream
- Segmentation fault (core dumped) HOT 6
- yolo 9000 for object detection
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 ofxdarknet.