Downloads · 30 days
8
10% of all-time downloads
ritesh313/neon-tree-resnet18-genus
neon-tree-resnet18-genus is a image classification model from ritesh313. Use it when you need a label for an image. It is set up for pytorch. The card lists the license as mit.
A resnet18 model trained for tree genus classification on the NEON Tree Crown Dataset. This model is designed for integration with DeepForest as a CropModel.
Downloads · 30 days
8
10% of all-time downloads
All-time downloads
82
Public
Parameters
11.2M
89.8 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors44.9 MB · 100%
From the Hugging Face model README
A resnet18 model trained for tree genus classification on the NEON Tree Crown Dataset. This model is designed for integration with DeepForest as a CropModel.
from deepforest import CropModel
# Load model
model = CropModel.load_model("ritesh313/neon-tree-resnet18-genus")
# Use with DeepForest predictions
# (after running detection with main DeepForest model)
results = model.predict(image_crops)
import torch
from safetensors.torch import load_file
from torchvision import transforms
# Load model weights
state_dict = load_file("model.safetensors")
# Load config for label mapping
import json
with open("config.json") as f:
config = json.load(f)
# Create your model architecture and load weights
# model.load_state_dict(state_dict)
# Preprocessing
preprocess = transforms.Compose([
transforms.Resize((224, 224)),
transforms.ToTensor(),
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
])
The model was trained on the NEON Tree Crown Dataset, which includes:
If you use this model, please cite:
@software{neontreeclassification,
author = {Chowdhry, Ritesh},
title = {NeonTreeClassification: Multi-modal Tree Species Classification},
url = {https://github.com/Ritesh313/NeonTreeClassification},
year = {2026}
}
MIT License