-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTrain.py
More file actions
27 lines (21 loc) · 705 Bytes
/
Train.py
File metadata and controls
27 lines (21 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import cv2
import csv
import time
import glob
import torch
import numpy as np
import read_files as RF
import neural_network as NN
import feature_extractor as FE
import dataset_creator as DC
from scipy import stats
from commonfunctions import *
#################################################################################
start_time = time.time()
chunkSize = 1000 #Read 1000 lines at a time to handle memory restrictions and errors
inputSize = 17 #Size of feature file
#div = torch.device('cuda')
model = NN.createNN(inputSize)
#model = model.to(device=div)
RF.pandasCSVHandler(model,'image_label_pair.csv',chunkSize)
print("Running Time In Seconds: {0:.3f}".format(time.time() - start_time))