Skip to main content

A package for fine-tuning deep learning models with Siamese architecture and triplet loss

Project description

DeepTuner

Description

DeepTuner is an open source Python package for fine-tuning computer vision (CV) based deep models using Siamese architecture with a triplet loss function. The package supports various model backbones and provides tools for data preprocessing and evaluation metrics.

Installation

To install the package, use the following command:

pip install DeepTuner

Usage

Fine-tuning Models with Siamese Architecture and Triplet Loss

Here is an example of how to use the package for fine-tuning models with Siamese architecture and triplet loss:

import DeepTuner
from DeepTuner import triplet_loss, backbones, data_preprocessing, evaluation_metrics

# Load and preprocess data
data = data_preprocessing.load_data('path/to/dataset')
triplets = data_preprocessing.create_triplets(data)

# Initialize model backbone
model = backbones.get_model('resnet')

# Compile model with triplet loss
model.compile(optimizer='adam', loss=triplet_loss.triplet_loss)

# Train model
model.fit(triplets, epochs=10, batch_size=32)

# Evaluate model
metrics = evaluation_metrics.evaluate_model(model, triplets)
print(metrics)

For more detailed usage and examples, please refer to the documentation.

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

DeepTuner-0.1.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

DeepTuner-0.1.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: DeepTuner-0.1.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.18

File hashes

Hashes for DeepTuner-0.1.1.tar.gz
Algorithm Hash digest
SHA256 598b2d34bca7d6f2954f994de5a3cf2a74251eb6167ce19bf4041f9630e02840
MD5 72faec7281cd3f0eb1a1ee25599a2dbf
BLAKE2b-256 cd88e67a24a7ed1a47fc2b6acbbf9f741d08be28e34c6c2132605f23c2eb7128

See more details on using hashes here.

File details

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

File metadata

  • Download URL: DeepTuner-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.18

File hashes

Hashes for DeepTuner-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2023ad34acb7d27e5fa9adffb4f3a927f2c1321adb57bc863a12595cf6a5eca6
MD5 573d55a14d9626f860c673fe17f455a1
BLAKE2b-256 8f4451b1344edc4bfdc1f1ebf0a351528b05796e6841b968e0182eb61c56a112

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