Downloads · 30 days
3
5% of all-time downloads
Wisnu1354/Gumi-Banten
Gumi-Banten is a image classification model from Wisnu1354. Use it when you need a label for an image. The card lists the license as mit.
Model identifikasi tanaman Gumi Banten menggunakan arsitektur hybrid CNN (EfficientNet-B4) + Vision Transformer (ViT).
Downloads · 30 days
3
5% of all-time downloads
All-time downloads
66
Public
Repo size
306 MB
Likes
0
Public
Click a slice to open those files.
.pth199 MB · 65%
From the Hugging Face model README
Model identifikasi tanaman Gumi Banten menggunakan arsitektur hybrid CNN (EfficientNet-B4) + Vision Transformer (ViT).
| Metrik | Nilai |
|---|---|
| Test Accuracy | 0.9012 (90.12%) |
| Best Val Accuracy | 0.9202 (92.02%) |
| Jumlah Kelas | 10 |
| File | Deskripsi |
|---|---|
gumi_banten_cnn_vit.h5 | Model weights dalam format HDF5 |
best_model.pth | Checkpoint PyTorch lengkap |
config.json | Konfigurasi model |
class_names.txt | Daftar nama kelas |
import torch
from huggingface_hub import hf_hub_download
pth_path = hf_hub_download(repo_id="Wisnu1354/Gumi-Banten", filename="best_model.pth")
ckpt = torch.load(pth_path, map_location='cpu')
model.load_state_dict(ckpt['model_state'])
model.eval()
import h5py, torch, numpy as np
from huggingface_hub import hf_hub_download
def load_from_h5(h5_path, model_class, cfg):
with h5py.File(h5_path, 'r') as hf:
class_names = list(hf['metadata/class_names'][:])
state_dict = {}
def _load(name, obj):
if isinstance(obj, h5py.Dataset):
state_dict[name.replace('/', '.')] = torch.tensor(obj[()])
hf['model_weights'].visititems(_load)
model = model_class(cfg)
model.load_state_dict(state_dict)
model.eval()
return model, class_names
h5_path = hf_hub_download(repo_id="Wisnu1354/Gumi-Banten", filename="gumi_banten_cnn_vit.h5")
model, class_names = load_from_h5(h5_path, CNNViTHybrid, CFG)
Dilatih di Google Colab menggunakan GPU A100/V100/T4.
Dibuat oleh: Gumi Banten Research | 2026-04-27