PAGCP icon indicating copy to clipboard operation
PAGCP copied to clipboard

opt.part?

Open xiaoshuomin opened this issue 1 year ago • 1 comments

有个部分代码没有看明白,想咨询一下
if name == "main": opt = parse_opt() if opt.compression.lower() == 'backbone': opt.part = [f'model.{i}.' for i in range(10)] else: opt.part = [f'model.{i}.' for i in range(24)] main(opt) 在compress.py文件中opt.part代表什么含义?如果修改这个值会有什么影响吗?

xiaoshuomin avatar May 22 '24 07:05 xiaoshuomin

Hi, thanks for ur attention to our work, and sorry for the late response. Opt.part refers to the list of layers that are expected to be compressed during pruning. So it should be adjusted to adapt to specific models.

HankYe avatar Jun 28 '24 05:06 HankYe