Downloads · 30 days
10
16% of all-time downloads
2Phuong5Nam4/SAM3_carton_detection
SAM3_carton_detection is a machine learning model from 2Phuong5Nam4. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This is a LoRA adapter for SAM3 fine-tuned for carton detection.
Downloads · 30 days
10
16% of all-time downloads
All-time downloads
61
Public
Repo size
484 MB
Likes
0
Public
Click a slice to open those files.
.pt176 MB · 100%
From the Hugging Face model README
This is a LoRA adapter for SAM3 fine-tuned for carton detection.
from sam3.model_builder import build_sam3_image_model
from lora_layers import LoRAConfig, apply_lora_to_model, load_lora_weights
from huggingface_hub import hf_hub_download
# Build base model
model = build_sam3_image_model(device='cuda', load_from_HF=True)
# Apply LoRA structure
lora_config = LoRAConfig(rank=16, alpha=32, dropout=0.0)
model = apply_lora_to_model(model, lora_config)
# Download and load weights
weights_path = hf_hub_download(repo_id="YOUR_USERNAME/SAM3_carton_detection", filename="lora_weights.pt")
load_lora_weights(model, weights_path)
model.eval()
## Training Details
Rank: 16
Alpha: 32
Task: Instance segmentation of cartons