Downloads · 30 days
0
Arshul26/Efficientnet-B0
Efficientnet-B0 is a image classification model from Arshul26. Use it when you need a label for an image. It is set up for adapter-transformers. The card lists the license as apache-2.0.
This model uses EfficientNet-B0 for classifying 45 land-use categories from the NWPU-RESISC45 dataset. Transfer learning and fine-tuning techniques were applied.
Downloads · 30 days
0
Access
Public
Updated Oct 8, 2025
Repo size
17.6 MB
Likes
0
Public
Click a slice to open those files.
.h517.6 MB · 100%
From the Hugging Face model README
This model uses EfficientNet-B0 for classifying 45 land-use categories from the NWPU-RESISC45 dataset. Transfer learning and fine-tuning techniques were applied.
Note: Dataset not included in repo; download link below. NWPU-RESISC45 Dataset: https://github.com/remote-sensing-datasets/NWPU-RESISC45
from tensorflow.keras.models import load_model
from tensorflow.keras.preprocessing import image
import numpy as np
model = load_model("model_weights.h5")
img = image.load_img("example.jpg", target_size=(224,224))
x = image.img_to_array(img)
x = np.expand_dims(x, axis=0)/255.0
pred = model.predict(x)
pred_class = np.argmax(pred, axis=1)
print(f"Predicted class: {pred_class}")