You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from utils import load_weights
model = get_model()
load_weights(model,'yolo-tiny.weights')
Error:
/usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py:8: UserWarning: Update your Conv2D call to the Keras 2 API: Conv2D(16, (3, 3), input_shape=(3, 448, 4..., strides=(1, 1), padding="same")
/usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py:13: UserWarning: Update your Conv2D call to the Keras 2 API: Conv2D(32, (3, 3), padding="same")
del sys.path[0]
/usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py:15: UserWarning: Update your MaxPooling2D call to the Keras 2 API: MaxPooling2D(pool_size=(2, 2), padding="valid")
from ipykernel import kernelapp as app
Load weights
from utils import load_weights
model = get_model()
load_weights(model,'yolo-tiny.weights')
Error:
/usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py:8: UserWarning: Update your
Conv2D
call to the Keras 2 API:Conv2D(16, (3, 3), input_shape=(3, 448, 4..., strides=(1, 1), padding="same")
/usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py:13: UserWarning: Update your
Conv2D
call to the Keras 2 API:Conv2D(32, (3, 3), padding="same")
del sys.path[0]
/usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py:15: UserWarning: Update your
MaxPooling2D
call to the Keras 2 API:MaxPooling2D(pool_size=(2, 2), padding="valid")
from ipykernel import kernelapp as app
InvalidArgumentError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py in _create_c_op(graph, node_def, inputs, control_inputs, op_def)
1653 try:
-> 1654 c_op = pywrap_tf_session.TF_FinishOperation(op_desc)
1655 except errors.InvalidArgumentError as e:
InvalidArgumentError: Negative dimension size caused by subtracting 2 from 1 for '{{node max_pooling2d_38/MaxPool}} = MaxPoolT=DT_FLOAT, data_format="NHWC", ksize=[1, 2, 2, 1], padding="VALID", strides=[1, 2, 2, 1]' with input shapes: [?,1,224,32].
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
14 frames
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py in _create_c_op(graph, node_def, inputs, control_inputs, op_def)
1655 except errors.InvalidArgumentError as e:
1656 # Convert to ValueError for backwards compatibility.
-> 1657 raise ValueError(str(e))
1658
1659 return c_op
ValueError: Negative dimension size caused by subtracting 2 from 1 for '{{node max_pooling2d_38/MaxPool}} = MaxPoolT=DT_FLOAT, data_format="NHWC", ksize=[1, 2, 2, 1], padding="VALID", strides=[1, 2, 2, 1]' with input shapes: [?,1,224,32].
The text was updated successfully, but these errors were encountered: