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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file Pytorch_Easy-0.0.3.tar.gz.
File metadata
- Download URL: Pytorch_Easy-0.0.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f1883260cbfad5d75f675893846d2d53ea5ee2b8781396e3936fe5ab80120e2
|
|
| MD5 |
0cf7e596c0cddea93416af5fd0b4774b
|
|
| BLAKE2b-256 |
47de8fed1ea76beeb7db2d8a33238b9c554b872ba537aa14caa2798bfb8cea28
|