Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert.py, demo.py not work #14

Open
blackCmd opened this issue Jul 7, 2020 · 2 comments
Open

convert.py, demo.py not work #14

blackCmd opened this issue Jul 7, 2020 · 2 comments

Comments

@blackCmd
Copy link

blackCmd commented Jul 7, 2020

When i edit gpus=4 in convert.py, line 169 it occurs error like this.

Traceback (most recent call last):
File "convert.py", line 172, in
yolo4_model = Yolo4(score, iou, anchors_path, classes_path, model_path, weights_path, gpus)

File "convert.py", line 157, in init
self.load_yolo()

File "convert.py", line 142, in load_yolo
self.yolo4_model = multi_gpu_model(self.yolo4_model, gpus=self.gpu_num)

NameError: name 'multi_gpu_model' is not defined

I can't find "multi_gpu_model" everywhere..
How can i solved?

@ibrandiay
Copy link

my mean ploblem is this error if i execute python convert.py . help me please

Traceback (most recent call last):
File "convert.py", line 172, in
yolo4_model = Yolo4(score, iou, anchors_path, classes_path, model_path, weights_path)
File "convert.py", line 158, in init
self.load_yolo()
File "convert.py", line 128, in load_yolo
conv_weights = np.ndarray(
TypeError: buffer is too small for requested array

@doubleLLL3
Copy link

I found it in yolo.py:

from keras.utils import multi_gpu_model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants