Skip to main content

Easy-to-use library for extending Sri Lankan food recognition models

Project description

🍛 Sri Lankan Food Trainer

Easy-to-use Python library for extending Sri Lankan food recognition models with your own classes!

Installation

pip install srilankan-food-trainer

Quick Start

from srilankan_food_trainer import FoodModelExtender

# 1. Create extender
extender = FoodModelExtender()

# 2. Add your class
extender.add_class("potato_curry", "/path/to/images.zip")

# 3. Train
extender.train()

# 4. Save
extender.save("my_model.pth")

Features

  • ✅ Download pre-trained model automatically
  • ✅ Add custom food classes with minimal code
  • ✅ Few-shot learning support
  • ✅ Easy model export

Requirements

  • Python 3.8+
  • PyTorch 2.0+
  • GPU recommended (but works on CPU)

License

MIT License - see LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

srilankan_food_trainer-0.1.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

srilankan_food_trainer-0.1.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file srilankan_food_trainer-0.1.0.tar.gz.

File metadata

  • Download URL: srilankan_food_trainer-0.1.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for srilankan_food_trainer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ae3678e6a4b9def1b7ef0a6a2f25176665a4258fcd4a8ca887636266f5588b0a
MD5 0e024d97e1addac67d4d463418c5d4bb
BLAKE2b-256 614011916be11acc85ae657589ed87cef7672164376065a7ac07eb83396e644e

See more details on using hashes here.

File details

Details for the file srilankan_food_trainer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for srilankan_food_trainer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f92dca6175a399a5afbb50c74eba1687d30f60b1bea891ac6ceeb1524e72c8a1
MD5 71ba47ab8791fb6ffbc354a7185cc2fe
BLAKE2b-256 1a91f2536d7a977525ed389487b64df8c4b3cb235b9feb4fd207e606ef628d09

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page