Downloads · 30 days
5
2% of all-time downloads
Akazi/resnet_c_s_redwood_finetuned
resnet_c_s_redwood_finetuned is a image classification model from Akazi. Use it when you need a label for an image. It is set up for transformers. The card lists the license as mit.
This model is a finetuned ResNet model that has been trained on images from a local park in Pleasanton.
Downloads · 30 days
5
2% of all-time downloads
All-time downloads
260
Public
Repo size
269 MB
Likes
0
Public
Click a slice to open those files.
.pth94.3 MB · 52%
From the Hugging Face model README
This model is a finetuned ResNet model that has been trained on images from a local park in Pleasanton.
The training dataset consists of two classes: "Sierra Redwood" and "Coastal Redwood". The dataset contains images captured within the park in Pleasanton.
The model architecture used for this classification task is ResNet-50.
To use this model, you can follow these steps:
torch.load function and extract the model weights.Here's an example code snippet for using the finetuned ResNet model:
from transformers import AutoModelForImageClassification, AutoImagePipeline
model_name = "resnet_c_s_redwood_finetuned"
image_path = "path/to/your/image.jpg"
# Load the pre-trained model
model = AutoModelForImageClassification.from_pretrained(model_name)
# Create an image classification pipeline
classifier = AutoImagePipeline(model=model, model_name=model_name)
# Perform image classification
result = classifier(image_path)
# Print the predicted label
predicted_label = result[0]['label']
print(predicted_label)