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

运行pruneSlim.py时报错IndexError: list index out of range #88

Open
dtde opened this issue Jun 22, 2022 · 0 comments
Open

运行pruneSlim.py时报错IndexError: list index out of range #88

dtde opened this issue Jun 22, 2022 · 0 comments

Comments

@dtde
Copy link

dtde commented Jun 22, 2022

image
请问怎么解决?Traceback (most recent call last):
File "pruneEagleEye.py", line 127, in
rand_prune_and_eval(model,ignore_idx,opt)
File "pruneEagleEye.py", line 59, in rand_prune_and_eval
pruned_yaml = update_yaml(pruned_yaml, model, ignore_conv_idx, maskconvdict, opt)
File "/hy-nas/yolov5-multibackbone/utils/prune_utils.py", line 263, in update_yaml
update_yaml_loop(pruned_yaml,name,maskdict)
File "/hy-nas/yolov5-multibackbone/utils/prune_utils.py", line 247, in update_yaml_loop
args[-3][1] = 0.5 * maskconvdict[named_m_cv2_conv].sum().item() / (c2*0.5)
IndexError: list index out of range

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant