-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathmain.py
More file actions
31 lines (23 loc) · 1.07 KB
/
main.py
File metadata and controls
31 lines (23 loc) · 1.07 KB
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
27
28
29
30
31
from NaroNet.utils.DatasetParameters import parameters
from NaroNet.Patch_Contrastive_Learning.patch_contrastive_learning import patch_contrastive_learning
from NaroNet.Patch_Contrastive_Learning.preprocess_images import preprocess_images
from NaroNet.architecture_search.architecture_search import architecture_search
from NaroNet.NaroNet import run_NaroNet
from NaroNet.NaroNet_dataset import get_BioInsights
def main(path):
# Select Experiment parameters
params = parameters(path, 'Value')
possible_params = parameters(path, 'Object')
best_params = parameters(path, 'Index')
# Preprocess Images
preprocess_images(path,params['PCL_ZscoreNormalization'],params['PCL_patch_size'])
# Patch Contrastive Learning
patch_contrastive_learning(path,params)
# Architecture Search
# params = architecture_search(path,params,possible_params)
run_NaroNet(path,params)
# BioInsights
get_BioInsights(path,params)
if __name__ == "__main__":
path = '/mnt/c/Users/danij/Google Drive/Proyectos/NaroNet/POLE_toy/'
main(path)