Skip to main content

This is a simple script that help to train pytorch model

Project description

-- coding: utf-8 --

""" Created on Fri Sep 10 02:38:37 2021

@author: Dhusor """

Example Code:

Run Model Pytorch Model From Zero Epoch:

y:start from zero epoch n:after previous epoch y Enter Number Of Epoch: 1 Enter path to save the model: /content/drive/MyDrive/Data/

Again Train After Some Epochs.We need to load previous model info.

run_model(inception_v3,train_loader,validation_loader,optimizer,criterion)

y:start from zero n:train after previous epoch: n Enter Previous Trained Path: /content/drive/MyDrive/Data/trained.pt
Enter End 2

Epoch 1/1 ----------------------------Tranning Summary---------------------- training Tranning Avg. Loss: 1.6109 Tranning Avg. Acc: 0.2000 ----------------------------Validation Summary----------------- validation Validation Avg. Loss: 1.6110 Validation Avg. Acc: 0.2000

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

Pytorch_Easy-0.0.2.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file Pytorch_Easy-0.0.2.tar.gz.

File metadata

  • Download URL: Pytorch_Easy-0.0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.1

File hashes

Hashes for Pytorch_Easy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 979fe4dfcaf400e613862004657faff3ab033f70c1d6daeee8af178ca6647e09
MD5 794bb0fa46aaf682de3b3e6e921b78fc
BLAKE2b-256 ea3e53a6714bdc68dc17a75f825a01448630ac64154cebf372fd9e9d4045a24b

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