Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto3DSeg BundleGen clobbers existing bundles #1630

Open
pwrightkcl opened this issue Feb 2, 2024 · 0 comments
Open

Auto3DSeg BundleGen clobbers existing bundles #1630

pwrightkcl opened this issue Feb 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@pwrightkcl
Copy link

Problem
I just discovered the hard way that BundleGen completely clobbers existing bundles, not only overwriting files, but deleting files it does not write (like training output).

Desired solution
It would be nice to have a clobber=True kind of option, where the default would be to give a warning that the bundle directory already exists.

Example code
Here are the relevant parts of what I ran:

from monai.apps.auto3dseg import BundleGen


bundle_generator = BundleGen(
    algo_path=work_dir,
    data_stats_filename=datastats_file,
    data_src_cfg_name=input_yaml,
)

bundle_generator.generate(work_dir, num_fold=5)
@KumoLiu KumoLiu added the enhancement New feature or request label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants