Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ResNeXt-50 accuracy is 0% #73

Open
Open
ResNeXt-50 accuracy is 0%#73

Description

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

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