Skip to content

No compatible with new version of tensorflow #260

@KyuDan1

Description

@KyuDan1

In recognition.py file,
line 277~283

locnet_y = keras.layers.Dense(
            6,
            weights=[
                np.zeros((64, 6), dtype="float32"),
                np.array([[1, 0, 0], [0, 1, 0]], dtype="float32").flatten(),
            ],
        )(locnet_y)

keras.layers.Dense layer no longer accepts a weights argument in its constructor in recent versions of Keras (TensorFlow 2.6 and above). Instead, weights should be set after the layer is created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions