Skip to main content

Supervised Fine-Tuning Package for Blyncsy

Project description

📦 BlyncsySFT

Supervised Fine-Tuning for Faster R-CNN with Focal Loss and Custom Augmentations
An extensible training and evaluation framework for object detection on COCO-format datasets.


🚀 Features

  • 🧠 Fine-tuning with Focal Loss for class imbalance
  • 🎯 Customizable anchor boxes and backbone networks
  • 🧪 Augmentation pipeline (MixUp, transforms, etc.)
  • 📊 Validation pipeline with mAP evaluation (COCO)
  • 🛠 CLI interface for training automation
  • 🗂 Compatible with COCO-style datasets

📁 Installation

pip install blyncsysft

or

git clone https://github.com/your-username/BlyncsySFT.git
cd BlyncsySFT
pip install .

🧩 Quick Start

  1. Prepare your dataset and project structure: Ensure your dataset is in COCO format. The directory structure should look like this:

    your_project/
    ├── images/
    │   ├── train/
    │   └── validation/
    ├── annotations/
    │   ├── train.json
    │   └── validation.json
    └── .env
    
  2. Create a .env file: This file should contain the following variables:

    TRAINING_RUN=test01
    EPOCHS=20
    BATCH_SIZE=4
    WORKERS=2
    NUM_CLASSES=2
    BACKBONE=resnet50
    SAVE_EVERY=5
    TRAIN_IMAGE_PATH=images/train
    TRAIN_ANNOT_PATH=annotations/train.json
    VAL_IMAGE_PATH=images/validation
    VAL_ANNOT_PATH=annotations/validation.json
    

🧪 Usage

Run training directly from the command line:

python -m BlyncsySFT.cli train /path/to/your_project/ --verbose

This command:

  • Valdiates your .env file
  • Loads the dataset
  • Builds and trains the model
  • Logs the training process
  • Saves the model checkpoints

Or use the Python API:

from BlyncsySFT.pipeline import run_auto_training_pipeline
from BlyncsySFT.config import load_and_validate_env

# Step 1: Load config
cfg = load_and_validate_env(env_file="/path/to/your_project/.env")

# Step 2: Define project directory
project_dir = "/path/to/your_project"

# Step 3: Run the training pipeline
run_auto_training_pipeline(project_dir, cfg, verbose=True)

📄 License

MIT License. See the LICENSE file for details.

🤝 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repo and create your branch (git checkout -b feature/YourFeature).
  2. Make your changes, add tests, and commit them (git commit -m 'Add some feature').
  3. Submit a pull request and describe your changes.

👥 Contributors

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

blyncsysft-0.1.1.tar.gz (33.7 kB view details)

Uploaded Source

Built Distribution

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

blyncsysft-0.1.1-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file blyncsysft-0.1.1.tar.gz.

File metadata

  • Download URL: blyncsysft-0.1.1.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for blyncsysft-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ba72ba07680c879385427417b0394bae8a194ed2e83b29c32e4a3aae8852b8b9
MD5 4fcc8733cb8218c10bd90d2c40ad6853
BLAKE2b-256 2b11131b9057149dbb0e12dcaa1f01b6ffa24d4ed1268f160256dc25145d767a

See more details on using hashes here.

File details

Details for the file blyncsysft-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: blyncsysft-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 30.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for blyncsysft-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f8a5a1067ede3eb59a17289f184b33624aacdcbd9da6fa46972185d14586bb1
MD5 7a26457c17793c677e28f5396f9c7582
BLAKE2b-256 68a40b932b96ecd6c842eb5e8c1fe3741d143d0504f6b2fb0aba13ed0250f1b9

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