jakeret / tf_unet

Generic U-Net Tensorflow implementation for image segmentation
GNU General Public License v3.0
1.9k stars 748 forks source link

Trainer would remove files in output_path if already exist #216

Closed hsieh42 closed 5 years ago

hsieh42 commented 6 years ago

Following the usage example in https://tf-unet.readthedocs.io/en/latest/usage.html, if the output_path is an existing path and contains files and directories, the line trainer.train(data_provider, output_path,...) would remove everything in output_path. This is very detrimental.

jakeret commented 6 years ago

At the moment this is done intentionally. One way around it is to pass different output_path per run. The benefit of that is that it becomes easier to compare the runs in tensorboard