Skip to content

Tensorflow error #6

Description

@jtlz2

When executing

python3 train.py positiveImages negativeImages trainDataPositive trainDataNegative 2

(Note that in your README you have trainingDataPositive and trainingDataNegative),

I get the following error:

tensorflow.python.framework.errors_impl.InvalidArgumentError: Received a label value of 1 which is outside the valid range of [0, 1). Label values: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

I needed to use binary_crossentropy a la https://stackoverflow.com/a/44152923/1021819

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions