Tel Aviv University, School of Electrical Engineering, Deep Learning Seminar, 0510-7255, Spring 2022
This file will give a short explanation about how to run our notebook – how to train from scratch, load a trained model, choose between different datasets, change hyperparameters and more.
Data path – should be the folder name that contains the dataset in a .zip format. config['data_path'] = '/content/gdrive/MyDrive/Datasets/’
In order to choose between the datasets you want to work with you should update in the config: #config['dataset'] = 'bowl' config['dataset']= 'CVC'
- When working with ‘bowl’ dataset, the relevant code cells for (D) creating new data or (E) Load data are 1,2,4.
- When working with ‘CVC’ dataset, the relevant code cells for (D) creating new data or (E) Load data are 1,2,3.
In case you want to use our interpolation technique you choose it in the config code: config ['use_interpolation'] = True
- If you want to use the original data and create your own split augmented data you should update in the config code this line as True:
config['first_time_data_arrangement'] = True
a. Run section 1,2,3 to create ‘CVC’ split augmented data .zip file to your Google Drive.
b. Run section 1,2,4 to create ‘bowl’ split augmented data .zip file to your Google Drive.
- After creating new data, Restart run time, and use your new data as (E) Load data describes.
In case your augmented data is ready (by using our augmented data/your augmented data).
- If you want to use ready split augmented data, set as False config['first_time_data_arrangement'] = False a. Run code cells 1,2,3 to load ‘CVC’ split augmented data .zip file to your Google Drive. b. Run code cells 1,2,4 to load ‘bowl’ split augmented data .zip file to your Google Drive.
- Proceed for train or test sections.
- Load Data
- Run code cells 5-7.
- Output path – should include the output folder path with the “/output/” ending. config['output_path'] = '/content/gdrive/MyDrive/output/' This is where we save the model, metrics and more.
- Load Data.
- Update model path in code cell 8.
- Run code cells 8-10
- Load data.
- Run code cells 5.
- Change in code cell 8 folder_in_output to the wanted folder in output path to load from
- Run code cells 8,9,10.
NOTE: The model’s name in our code is called DoubleUNet because we first implemented the DoubleUNet and on top of the base notebook we added our changes. We didn’t change the variable’s name when we implemented our DoubleAU-Net. To be clear, the model in the notebook is our DoubleAU-Net.