mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Added init_cpu() function to init CPU just to speedup the 1st detection (if GPU=0)
This commit is contained in:
@ -144,6 +144,8 @@ if hasGPU:
|
||||
set_gpu = lib.cuda_set_device
|
||||
set_gpu.argtypes = [c_int]
|
||||
|
||||
init_cpu = lib.init_cpu
|
||||
|
||||
make_image = lib.make_image
|
||||
make_image.argtypes = [c_int, c_int, c_int]
|
||||
make_image.restype = IMAGE
|
||||
|
Reference in New Issue
Block a user