Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prune weights for support yolo-v3 #1

Open
zhukkang opened this issue Feb 22, 2019 · 5 comments
Open

prune weights for support yolo-v3 #1

zhukkang opened this issue Feb 22, 2019 · 5 comments

Comments

@zhukkang
Copy link

do you have the code for compress the yolo-v3 model, as yolo-v3 model with 416&416 need GPU memory 2~3GB, so do you have any suggest for reduce the memory?

@ArtyZe
Copy link
Owner

ArtyZe commented Feb 27, 2019

do you have the code for compress the yolo-v3 model, as yolo-v3 model with 416&416 need GPU memory 2~3GB, so do you have any suggest for reduce the memory?

you want to reduce the memory used in training or just test process? If you want to reduce it in forward you can commit the calloc function of updates parameters such as l.weight_updates_gpu, l.delta_gpu

another suggest is combine the convolution and batch normalization into one function, you can also save some memory

@zhukkang
Copy link
Author

can you give some detail explain about the commit calloc function, as i just want reduce in test stage on device, not training

@ArtyZe
Copy link
Owner

ArtyZe commented Feb 27, 2019

can you give some detail explain about the commit calloc function, as i just want reduce in test stage on device, not training

e-mail: gaoyang917528@163.com, send me a

can you give some detail explain about the commit calloc function, as i just want reduce in test stage on device, not training

in the start of program, it will call make_convolutional_layer function, and in this function will calloc gpu memory according to your parameters, but this calloc are not all necessary for test process, so you can commit them :
l.delta_gpu = cuda_make_array(l.delta, l.batchout_hout_w*n);
if you have further question, you can send me an e-mail: gaoyang917528@163.com

@sicarioakki
Copy link

@wangnet Where did you find the pruned weights file for YOLO V2?

@AbanoubMamdouh
Copy link

Hello, I am working on a custom dataset using the tiny yolov3 architecture, I already used the AlexeyAB git repo, I got results but I need to embed prunning as well, shall I use the standard cfg file and weights file on your framework? Or there are extra steps I shall take before starting the data training?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants