This is amazing work! Just a minor suggestion for a small bug. For some reason, the .h5 files generated with create_patches_fp.py get saved in the source directory of whole slide images. I've appended create_patches_fp.py with this code to move the .h5 files to the intended directory.
import shutil
source_files = os.listdir(args.source)
for file in source_files:
if file.endswith('.h5'):
shutil.move(os.path.join(args.source, file), patch_save_dir)
Hey Victor, I feel like this maybe some weird issue where the script doesn't play nice with parsing file directories on Windows. I think on Linux things behave as expected.
This is amazing work! Just a minor suggestion for a small bug. For some reason, the .h5 files generated with create_patches_fp.py get saved in the source directory of whole slide images. I've appended create_patches_fp.py with this code to move the .h5 files to the intended directory.