This commit is contained in:
Keita Mizushima 2022-08-02 13:01:50 -05:00 committed by GitHub
commit 874bb51ede
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
from ctypes import *
import math
import random
import os
def sample(probs):
s = sum(probs)
@ -45,7 +46,7 @@ class METADATA(Structure):
#lib = CDLL("/home/pjreddie/documents/darknet/libdarknet.so", RTLD_GLOBAL)
lib = CDLL("libdarknet.so", RTLD_GLOBAL)
lib = CDLL(os.path.join(os.getcwd(), "libdarknet.so"), RTLD_GLOBAL)
lib.network_width.argtypes = [c_void_p]
lib.network_width.restype = c_int
lib.network_height.argtypes = [c_void_p]