From a537068de35be8af2876f772cf34cdfb6f8ec1c1 Mon Sep 17 00:00:00 2001 From: Paul Sweeney Date: Fri, 2 Jun 2023 10:05:03 +0100 Subject: [PATCH] Update main.py Minor correction to process_new_data function inputs. --- main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 2f5ef5e..f11d5cb 100644 --- a/main.py +++ b/main.py @@ -254,7 +254,12 @@ def process_imaging_OTF(image): ''' SEGMENTING NEW IMAGES ''' # Alternatively, to run VANGAN on a directory of images (saved as .npy) using the following example script new_imaging_data = DataPrepocessor() # Create data preprocessor -new_imaging_data.process_new_data('/PATH/TO/DATA/', '/PATH/TO/SAVE/DATA/') +new_imaging_data.process_new_data(current_path='/PATH/TO/DATA/', + new_path='/PATH/TO/SAVE/DATA/', + preprocess_fn=preprocess_rsom_images, + tiff_size=args.RAW_IMG_SIZE, + target_size=args.TARG_RAW_IMG_SIZE, + resize=True) filepath = '/PATH/TO/SAVE/DATA/' img_files = os.listdir(filepath)