Skip to content

ValueError: The target has to be an integer tensor. #241

Description

@mwitiderrick

What is the right way to use dataloaders from PyTorch and generators from TensorFlow?

This gave the above error

history = model.fit(
    inputs=train_loader,
    epochs=100,
    steps_per_epoch=200,
    validation_data=validation_loader,
    shuffle=True,
    callbacks=[eg.callbacks.ModelCheckpoint("models/high-level", save_best_only=True)],
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions