Comments (6)
Same thing for me.
And pydarknet.set_cuda_device(0) returns:
module 'pydarknet' has no attribute 'set_cuda_device'
from yolo3-4-py.
@dquig Thank you for showing the cause of issue. I will go through the setup script again and correct it.
from yolo3-4-py.
I am getting the same thing. Have you fixed that.
pydarknet.set_cuda_device(0) returns:
module 'pydarknet' has no attribute 'set_cuda_device'
from yolo3-4-py.
I was running into the same issue trying to install from source with a custom darknet installation. It looks like the GPU environment variables is ignored if DARKNET_HOME is also set. T
Line 28 in 062de22
if "GPU" in os.environ:
if "DARKNET_HOME" in os.environ:
logging.warning("GPU environment variable is skipped since DARKNET_HOME is specified")
else:
if int(os.environ["GPU"]) == 1:
logging.info("Darknet will be compiled with GPU support")
USE_GPU = True
else:
logging.info("Darknet will be compiled without GPU support")
USE_GPU = False
This causes pydarknet to be compiled without the ability to set cuda device.
Line 63 in 062de22
IF USE_GPU == 1:
--
64 | void cuda_set_device(int n)
It looks to me like the USE_GPU
variable should still be set in the case that DARKNE_HOME
is also set.
from yolo3-4-py.
Hello. I am going to run several processes.. One on Gpu 1 and another one on GPU 2.
So i am going to use set_gpu_device() function.
But it is showing this error.
pydarknet.set_cuda_device(1)
AttributeError: module 'pydarknet' has no attribute 'set_cuda_device'
How can i do this?
from yolo3-4-py.
Fixed issue of ignoring GPU environment variable when custom DARKNET_HOME is set.
Refer #118
from yolo3-4-py.
Related Issues (20)
- get error when i install yolo34py in Windows 8 pro HOT 1
- running yolov4 HOT 1
- Error installing from both pip and source HOT 5
- Disable architecture printing HOT 1
- batch inference HOT 1
- ModuleNotFoundError: No module named 'numpy' HOT 1
- does it work with yolov4? HOT 2
- Ubuntu 20.4 installation error HOT 1
- FileNotFoundError: pkg-config, pkg-config HOT 1
- ImportError: No module named pydarknet HOT 5
- Proxy issue in downloading https://github.com/madhawav/darknet while installing YOLO34PY using PIP HOT 1
- crashes on colab using custom weights/config HOT 2
- Trouble installing pip install yolo34py-gpu HOT 1
- Errors in "pip3 install yolo34py-gpu" HOT 1
- Error when installing yolo34py-gpu from source. HOT 2
- Segmentation Fault when running custom model HOT 1
- Error when pip installing
- Installation with newer GCC not working HOT 1
- Error pip installing yolo34py on windows
- Google Colab crashed when I was running the Detector HOT 1
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 yolo3-4-py.