-
Notifications
You must be signed in to change notification settings - Fork 1.8k
assert len(set(num_channels_list)) == 1 #4160
Comments
the same for speedup pruned ghostnet, and the num channels are 16 and 1 |
Hi @jxncyym @flyingmrwang , |
@J-shang the latest code refer to :https://pan.baidu.com/s/19xoJOC9yaD3E6-RkZkOf9Q,g4og |
This dependency set leads to error, but from the model structure, it seems that they should not be in the same group. {'spp.scale2.3': 128, 'spp.scale4.3': 128, 'spp.scale0.2': 128, 'layer5.0.conv3': 512, 'spp.process1.2': 128, 'layer5.0.downsample.0': 512, 'spp.process2.2': 128, 'spp.scale1.3': 128, 'spp.scale3.3': 128, 'spp.process3.2': 128} line 174 in ddrnet_23_slim.py Seems the dependency is related to this line. @zheng-ningxin please help to look into this issue. |
Is there any progress @zheng-ningxin @J-shang |
then how to solve this problem?@zheng-ningxin |
I'll submit a PR to fix this ASAP. I'll let you know when this pr merged. Thanks! |
Have you been able to fix this? I have the same issue with YOLOv5-Face yolov5n-0.5 model. |
I have meet the same problem:'assert len(set(num_channels_list)) == 1' when i try to prune my model DLASeg, i want to know how to resove it~ thanks a lot |
Hi, have you resolved this problem? I have meet the same error and I guess it was caused by the use of DCNv2. I want to now how to resolve this problem. Thanks ~ |
@HappyPeanuts Sincerely sorry for the late PR, already working on this pr and need some time. Thanks~ |
thank you for your reply,I will try other methods,if convenient ,please notice me when you resolved this problem
发自我的iPhone
…------------------ Original ------------------
From: Ningxin Zheng ***@***.***>
Date: Mon,Feb 28,2022 4:49 PM
To: microsoft/nni ***@***.***>
Cc: 杨志伟 ***@***.***>, Mention ***@***.***>
Subject: Re: [microsoft/nni] assert len(set(num_channels_list)) == 1 (#4160)
@HappyPeanuts Sincerely sorry for the late PR, already working on this pr and need some time. Thanks~
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@zheng-ningxin,hello, What does this code |
I also meet the same problem , so how to solve it? |
1 similar comment
I also meet the same problem , so how to solve it? |
hello @dianxin556 @dreamlychina , could you show your model for us to reproduce your issue? This problem is highly related to the model structure. |
Describe the issue:
I compress the model: https://github.com/chenjun2hao/DDRNet.pytorch
when add this code "pruner._unwrap_model()", meet the error
Traceback (most recent call last):
File "/algdata02/yiming.yu/DDRNet.pytorch_pruner/tools/pruner_nni_L1filter.py", line 142, in
main()
File "/algdata02/yiming.yu/DDRNet.pytorch_pruner/tools/pruner_nni_L1filter.py", line 130, in main
m_speedup.speedup_model()
File "/algdata02/yiming.yu/DDRNet.pytorch_pruner/envp_3/lib/python3.6/site-packages/nni/compression/pytorch/speedup/compressor.py", line 500, in speedup_model
fix_mask_conflict(self.masks, self.bound_model, self.dummy_input)
File "/algdata02/yiming.yu/DDRNet.pytorch_pruner/envp_3/lib/python3.6/site-packages/nni/compression/pytorch/utils/mask_conflict.py", line 50, in fix_mask_conflict
masks = fix_channel_mask.fix_mask()
File "/algdata02/yiming.yu/DDRNet.pytorch_pruner/envp_3/lib/python3.6/site-packages/nni/compression/pytorch/utils/mask_conflict.py", line 259, in fix_mask
assert len(set(num_channels_list)) == 1
AssertionError
Environment:
Configuration:
Log message:
How to reproduce it?:
The text was updated successfully, but these errors were encountered: