Skip to main content

Image classification with pretrained models in Pytorch

Project description

# Image classification with pretrained models in Pytorch

Use pretrained models to train your data.

## Installation

`sh pip install image-classification-pytorch `

## ✨ Quick start

`sh import image_classification_pytorch as icp ` `sh # Images of each class in its own folder with the class name. # Examples of folders: homer_simpson, bart_simpson etc. from google.colab import drive drive.mount('/content/gdrive') !unzip -q /content/gdrive/My\ Drive/datasets/image_classification_pytorch/data_simpsons.zip -d train ` `sh # add model tf_efficientnet_b4_ns = {'model_type': 'tf_efficientnet_b4_ns', 'im_size': 380, 'im_size_test': 380, 'batch_size': 8, 'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]} models = [tf_efficientnet_b4_ns] ` `sh # create trainer trainer = ICPTrainer(models=models, data_dir='data_simpsons') # start training trainer.fit_test() `

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

image_classification_pytorch-0.0.9.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file image_classification_pytorch-0.0.9.tar.gz.

File metadata

  • Download URL: image_classification_pytorch-0.0.9.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for image_classification_pytorch-0.0.9.tar.gz
Algorithm Hash digest
SHA256 eef8f7c335a5e10e5f7c97fc445e96d21b1b1f130b902d2c196710e55e8cbba3
MD5 dc33806e649e39ac27157f391539d1a3
BLAKE2b-256 8c727d0df4df60cf8705adc1608fcc7ffb72b5c617ef01872df8281b3349783d

See more details on using hashes here.

Supported by

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