Torch-Pruning icon indicating copy to clipboard operation
Torch-Pruning copied to clipboard

[CVPR 2023] Towards Any Structural Pruning; LLMs / SAM / Diffusion / Transformers / YOLOv8 / CNNs

Results 196 Torch-Pruning issues
Sort by recently updated
recently updated
newest added

> 我在执行过程中遇到代码错误,指出张量不在同一设备上。@Hyunseok-Kim0你能给我解释一下吗,谢谢 That's the problem. How did you solve it? _Originally posted by @aicmaodyu in https://github.com/VainF/Torch-Pruning/issues/147#issuecomment-1727343947_ 解决了吗兄弟?我也是张量不在同一个设备上

fine-tuning stage after yolov8-seg prune using torch-pruning, when use torch.load to load save model, the error occured ![image](https://github.com/VainF/Torch-Pruning/assets/38915327/18efdfa0-f208-4244-aa8a-a435ab8d4308)

@JonnyKong Hello!When I run prune_hf_swin.py, I met a problem:"Could not find image processor class in the image processor config or the model config. Loading based on pattern matching with the...

Hi @VainF , first of all, thanks for the great work! Looking at `importance.py` I noticed that there are 2 importances which are not documented in the docs, nor exposed,...

![image](https://github.com/VainF/Torch-Pruning/assets/149750728/fa9abc7a-f136-47bd-9a90-ad6f94f617a1) ![image](https://github.com/VainF/Torch-Pruning/assets/149750728/d948a2f4-1edd-4657-b7b3-4dec206d339d) 测试环境: pytorch == 1.13 or pytorch==1.8 ultralytics==6a2fddf 运行脚本: 示例中的yolov8_example 直接异常原因: x类型应当为list而不是一个tensor 应当如何修改

https://github.com/deepinsight/insightface/blob/master/recognition/arcface_torch/backbones/mobilefacenet.py 模型定义 https://github.com/deepinsight/insightface/blob/master/recognition/arcface_torch/backbones/mobilefacenet.py 使用group_norm剪枝方式,参数如下: model_name = 'mobilefacev2' global_pruning = 'True' reg = 1e-4 max_ch_sparsity = 1.0 target_flops = 1.0 prune_pm = 'True' method = "group_norm" 使用insightface训练框架,训练20轮,效果比原来差很多

您好,对resnet18的整个预训练,稀疏化,剪枝,在训练的流程代码是在哪里啊?我想看看。

tks for very creative idea of torch pruning, But my model is exported from pretrained tensorflow model, it's hard to fine tune or re-trained again. So can you give me...