This model detects
feet or shoes
in an image using a fine-tuned
Faster R-CNN
model from Torchvision.
It was trained on a small custom dataset of foot annotations and is intended as a starting point for foot/shoe detection in street, fashion, or movement-based applications.
Web demo:
🧠 Model Details
Base model:
fasterrcnn_resnet50_fpn
(pretrained on COCO)
Fine-tuned on 40 images of feet/shoes
Class labels:
1
: foot/shoe
Bounding box outputs with confidence scores
Optimized for CPU (but works with MPS and CUDA)
⚡️ Quick Start
To download this repository:
git clone https://github.com/tonyassi/FootDetection.git
cd FootDetection
Install:
pip install -r requirements.txt
Usage:
from FootDetection import FootDetection
from PIL import Image
# Initialize model (first run will auto-download weights)
foot_detection = FootDetection("cpu") # "cuda" for GPU or "mps" for Apple Silicon# Load image
img = Image.open("image.jpg").convert("RGB")
# Run detection
results = foot_detection.detect(img, threshold=0.1)
print(results)
# Draw boxes
img_with_boxes = foot_detection.draw_boxes(img)
img_with_boxes.show()
img_with_boxes.save("annotated_image.jpg")
foot-detection huggingface.co is an AI model on huggingface.co that provides foot-detection's model effect (), which can be used instantly with this tonyassi foot-detection model. huggingface.co supports a free trial of the foot-detection model, and also provides paid use of the foot-detection. Support call foot-detection model through api, including Node.js, Python, http.
foot-detection huggingface.co is an online trial and call api platform, which integrates foot-detection's modeling effects, including api services, and provides a free online trial of foot-detection, you can try foot-detection online for free by clicking the link below.
tonyassi foot-detection online free url in huggingface.co:
foot-detection is an open source model from GitHub that offers a free installation service, and any user can find foot-detection on GitHub to install. At the same time, huggingface.co provides the effect of foot-detection install, users can directly use foot-detection installed effect in huggingface.co for debugging and trial. It also supports api for free installation.