Downloads · 30 days
140
22% of all-time downloads
cwlachap/hrnet-cephalometric-landmark-detection
hrnet-cephalometric-landmark-detection is a object detection model from cwlachap. Use it when you need objects located in an image. It is set up for pytorch. The card lists the license as mit.
This model performs automatic detection of 19 anatomical landmarks in lateral cephalometric radiographs using HRNet-W32 architecture.
Downloads · 30 days
140
22% of all-time downloads
All-time downloads
645
Public
Repo size
347 MB
Likes
5
Public
Click a slice to open those files.
.pth347 MB · 100%
From the Hugging Face model README
This model performs automatic detection of 19 anatomical landmarks in lateral cephalometric radiographs using HRNet-W32 architecture.
import streamlit as st
import torch
from huggingface_hub import hf_hub_download
# Download model
@st.cache_resource
def load_model():
model_path = hf_hub_download(
repo_id="cwlachap/hrnet-cephalometric-landmark-detection",
filename="best_model.pth"
)
# Load your HRNet model here
model = get_hrnet_w32(config)
checkpoint = torch.load(model_path, map_location='cpu')
model.load_state_dict(checkpoint['model_state_dict'])
model.eval()
return model
model = load_model()
import torch
from huggingface_hub import hf_hub_download
# Download model
model_path = hf_hub_download(
repo_id="cwlachap/hrnet-cephalometric-landmark-detection",
filename="best_model.pth"
)
# Load model
model = get_hrnet_w32(config)
checkpoint = torch.load(model_path, map_location='cpu')
model.load_state_dict(checkpoint['model_state_dict'])
model.eval()
# Perform inference
with torch.no_grad():
landmarks = model(input_image)
If you use this model in your research, please cite:
@misc{hrnet-cephalometric-2024,
title={HRNet for Cephalometric Landmark Detection},
author={cwlachap},
year={2024},
url={https://huggingface.co/cwlachap/hrnet-cephalometric-landmark-detection}
}
This model is released under the MIT License, making it free for both academic and commercial use.
This is an open-source project! Contributions, issues, and feature requests are welcome.
Built with ❤️ for the medical imaging community