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

self.model, export_subnet_mode='mutator', slice_weight=True) AttributeError: 'ItePruneValLoop' object has no attribute 'model' #657

Open
3114917790 opened this issue Jan 28, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@3114917790
Copy link

when i use python ./tools/train.py configs/pruning/mmdet/dcff/dcff_faster_rcnn_resnet50_8xb4_coco.py

Traceback (most recent call last):
File "./tools/train.py", line 121, in
main()
File "./tools/train.py", line 117, in main
runner.train()
File "/home//anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmengine/runner/runner.py", line 1745, in train
model = self.train_loop.run() # type: ignore
File "/home//anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmengine/runner/loops.py", line 102, in run
self.runner.val_loop.run()
File "/home//anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmrazor/engine/runner/iteprune_val_loop.py", line 35, in run
self._save_fix_subnet()
File "/home//anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmrazor/engine/runner/iteprune_val_loop.py", line 44, in _save_fix_subnet
self.model, export_subnet_mode='mutator', slice_weight=True)
AttributeError: 'ItePruneValLoop' object has no attribute 'model'

@3114917790 3114917790 added the bug Something isn't working label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant