Skip to content

ResNeXt-50 accuracy is 0% #73

Description

@gcunhase

About

ResNeXt-50 accuracy is 0% instead of 77.36%. Are the pre-trained weights here updated?

Steps to reproduce

  1. Install requirements:
pip install tensorflow-gpu==2.8.0
pip install git+https://github.com/qubvel/classification_models.git
  1. Load the model as follows:
ResNeXt, preprocess_input = Classifiers.get("resnext50)
model = ResNeXt(
    include_top=True,
    input_shape=(224, 224, 3),
    weights="imagenet"
)
  1. Use preprocess_input as the preprocessing function on the ImageNet validation dataset.
  2. Compile the model and evaluate:
 model.compile(
    optimizer="sgd",
    loss=tf.keras.losses.SparseCategoricalCrossentropy(),
    metrics=["accuracy"],
)
_, model_accuracy = model.evaluate(val_batches)

Note that there are no issues with the ResNet models when I follow the above steps.

System info

Python 3.8, Ubuntu 18.04

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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