-
Notifications
You must be signed in to change notification settings - Fork 1
/
track.py
26 lines (20 loc) · 1.05 KB
/
track.py
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 argparse
import pdb
from Utils.makeTimelapse import makeTimelapse
from Utils.TestPerformance import makeResultsCSV, getMeanAccuracy
from Utils.plotFLTrack import plotFlTrack
import pickle
## Parse Arguments
parser = argparse.ArgumentParser()
parser.add_argument("-f","--datasetfolder", type=str, help="Input string of dataset folder name. Assumed directory structure is './datasetfolder/(set of images)'", default="BF")
parser.add_argument("-p","--make_plot", type=bool, help="Boolean variable to choose whether fluorescence plots are desired", default=False)
parser.add_argument("-s","--save_experiment", type=bool, help="Boolean variable to choose whether to save a file containing all TImelapse info", default=False)
args = parser.parse_args()
datasetfolder = args.datasetfolder
makePlots = args.make_plot
saveExp = args.save_experiment
model_path = './Published/YNModelParams.pt'
tl = makeTimelapse('./Images/' + datasetfolder + '/' , model_path, saveExp)
#tl = makeTimelapse('./Published/Images/Z2/', model_path, False)
if makePlots:
plotFlTrack(tl)