Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
Minor correction to process_new_data function inputs.
  • Loading branch information
psweens authored Jun 2, 2023
1 parent 3f1d11b commit a537068
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a537068

Please sign in to comment.