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

[Question]AttributeError: 'NoneType' object has no attribute 'glob' #237

Closed
sunqiangzai opened this issue Mar 28, 2024 · 3 comments
Closed
Labels
stale Issue without activity, will be closed soon

Comments

@sunqiangzai
Copy link

sunqiangzai commented Mar 28, 2024

❓ Question

the error occurs when I run the following command:
nndet_consolidate 000 RetinaUNetV001_D3V001_3d --sweep_boxes

 INFO looking for models in /opt/models/Task000D3_Example/RetinaUNetV001_D3V001_3d
INFO Found training dirs: [PosixPath('/opt/models/Task000D3_Example/RetinaUNetV001_D3V001_3d/fold0'), None, None, None, None]
INFO Consolidate models
Traceback (most recent call last):
  File "/opt/conda/bin/nndet_consolidate", line 33, in <module>
    sys.exit(load_entry_point('nndet', 'console_scripts', 'nndet_consolidate')())
  File "/opt/code/nndet/nndet/utils/check.py", line 62, in wrapper
    return func(*args, **kwargs)
  File "/opt/code/nndet/scripts/consolidate.py", line 159, in main
    consolidate_models(training_dirs, target_dir, ckpt)
  File "/opt/code/nndet/scripts/consolidate.py", line 46, in consolidate_models
    model_paths = list(sd.glob('*.ckpt'))
AttributeError: 'NoneType' object has no attribute 'glob'

@mibaumgartner
Copy link
Collaborator

consolidate is only needed when combining the models from different folds, it seems like you only trained fold 0 from the output and thus nnDetectionc an not find the other ones.

Copy link

github-actions bot commented May 3, 2024

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Issue without activity, will be closed soon label May 3, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issue without activity, will be closed soon
Projects
None yet
Development

No branches or pull requests

2 participants