Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [pruning]

Use pruning for questions related to algorithms used on data structures to facilitate generalization and performance optimization.

0 votes
0 answers
31 views

compress yolov8 object detection model (.pt file)

I've tried compressing my .pt file using pruning, quantization, and various other methods, but these attempts have doubled the file size 20mb file becomes 40mb. If anyone has any ideas on how to ...
adarsh khopkar's user avatar
1 vote
0 answers
41 views

issue in PostgrelSQL 15.3 with partition pruning

I have two tables partitioned by range on column day,(this is an oversimplification for a more complex design), tables appear similar but day field refers to completly different concept than day in ...
Tony Zucchini's user avatar
0 votes
1 answer
52 views

Why does my pruned model have a larger file size than my initial model?

I'm exploring pruning a neural network using this example. My pruning code, using a pre-trained model, looks like this: prune_low_magnitude = tfmot.sparsity.keras.prune_low_magnitude # Compute end ...
Barney_Dinosaur's user avatar
0 votes
1 answer
189 views

Pruned model size is the same of non-pruned model [PyTorch]

I'm trying to implement model pruning on PyTorch with a ResNet18. Given an instance of ResNet18, I run the following code to load a pre-trained model, prune it and save the pruned model: def ...
Alessandro Masci's user avatar
0 votes
0 answers
119 views

Error when pruning a model: model = (ckpt.get("ema") or ckpt["model"]).to(device).float() # FP32 model

I am trying to prune a YOLOv8 detection model. Following is my code and it runs successfully and I see the saved pruned model. But when I want to train it or run prediction on it, I get the following ...
Mary H's user avatar
  • 321
0 votes
1 answer
173 views

How to solve deepcopy error of a pruned model in pytorch

I am trying to build a RL model, where my actor network has some pruned connections. When using the data collector SyncDataCollector from torchrl, the deepcopy fails (see error below). This seems to ...
samje's user avatar
  • 3
0 votes
0 answers
120 views

How to prune random forest regression in Optuna?

I am working on machine learning model and trying to tune hyperparameters with Optuna. I want to try pruning, but I dont know how to implement this feature. I am using random forest regressor and ...
david's user avatar
  • 55
0 votes
0 answers
159 views

How to implement optuna pruner in pytorch lightning?

I am trying to carry out hyperaprameter optimization of a TFT model from the Pytorch forecasting library. For this I am using pytorch lightning for training and Optuna for hyperparameter optimization. ...
Priyanka Dani's user avatar
0 votes
0 answers
46 views

Pruned model not only couldn't decrease the inference time but also increased

I pruned my pre-trained model and the I can clearly see the impact on total model parameters but actually in inference time, as long as I increase the pruning percentage, the inference time gets worse ...
mrghafari's user avatar
0 votes
0 answers
469 views

Pruning a yolov8 model

I have pruned a yolov8 model using : from torch.nn.utils import prune and the l1.structured method. I obtain a pruned_model.pt file. The pruned model's size was bigger than my original model. This ...
Asmaa's user avatar
  • 1
0 votes
0 answers
31 views

How can I use pytorch to implement layer pruning of my own defined resnet series models?

Hello everyone!This is my initial question. Thank you very much for your help. I now want to directly delete a certain convolutional layer in my model, such as a convolutional layer in resnet18 with ...
EEEyuzu's user avatar
0 votes
0 answers
78 views

Pruning Pretrained Neural Networks

I try to remove the neurons that was under the required threshold not to do them 0 but to delete it from the VGG neural network. I did the follow: import tensorflow as tf Load the VGG16 model model = ...
Artemis Stefanidou's user avatar
0 votes
0 answers
19 views

Filter out unused blobs after cloning [duplicate]

You can do a partial clone without blobs like this: git clone --filter=blob:none This will make Git lazily download blobs when needed (when a checkout or diff is done for instance). According to my ...
Gabriel Devillers's user avatar
0 votes
0 answers
129 views

Neural Network Pruning in PyTorch - from scratch

I am trying to implement global, unstructured pruning algorithm closely based on The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networks, Frankle et al. and Comparing Rewinding and ...
Arun's user avatar
  • 2,438
0 votes
0 answers
59 views

Pytorch pruning channels of trained ResNet model while preserving the unpruned channels’ weight?

I want to ask whether there is a method to prune channels of trained ResNet model while preserving the unpruned channels’ weight? The pruning method I used is similar to "Pruning from Scratch&...
Stackunderflow's user avatar

15 30 50 per page
1
2 3 4 5
13