diff --git a/paddlex/cv/models/slim/prune_config.py b/paddlex/cv/models/slim/prune_config.py index 34675a53b8bda539f3aa5cfc0adf374f449df303..65baefa96a42c86c4a1b6ad5797e58b2c2ea5420 100644 --- a/paddlex/cv/models/slim/prune_config.py +++ b/paddlex/cv/models/slim/prune_config.py @@ -162,7 +162,7 @@ def get_prune_params(model): continue prune_names.append(param.name) elif model_type.startswith("MobileNetV3"): - if model_type == 'MobileNetV3_small': + if model_type.startswith('MobileNetV3_small'): expand_prune_id = [3, 4] else: expand_prune_id = [2, 3, 4, 8, 9, 11]