Comments (5)
Random sparse neural networks with crs sparse computation are slow. Please use structured sparsity and conv_mode: LOWERED_CCNMM
in our deploy protobuf. More details in tutorials.
from caffe.
Thanks for you reply. The model in this case is the "caffenet_SSL_0.4469.caffemodel", which should be trained with structured sparsity.
I can see cpu speed up (by setting caffe.set_mode_cpu()) using "conv_mode: LOWERED_CCNMM". But I couldn't see speed up on GPU (by setting caffe.set_mode_gpu()) when applying "conv_mode: LOWERED_CSRMM".
Could you help me see the speed up on GPU? Thanks in advance.
from caffe.
@wenwei202 @liaocs2008
I would like to know whether the command ‘’./build/tools/caffe time -model=xx/xx.protoxtx -weights=xx/xx.caffemodel‘’ can get test time and compute speeded-up.
from caffe.
@jiaqun123 Using "caffe time" command measures the end to end time of a layer. But I think in this implementation, @wenwei202 measures the time only for matrix multiplication. You can check the python script "examples/caffenet_classifier.py" to measure speedup.
from caffe.
@liaocs2008
Thanks for your reply。I tried to use examples/cifar10_classifier.py
python examples/cifar10_classifier.py models/cifar10/cifar10_full.prototxt cifar10_full_iter_200000.caffemodel. But I get the the following result and didn't get the time for each conv layer.
from caffe.
Related Issues (20)
- Training on ImageNet using ResNet-18 and not convergence. HOT 8
- One trivial modification, save my training HOT 3
- Improve efficiency for group lasso HOT 1
- how to get speedup on GPU using conv_mode: LOWERED_CCNMM HOT 2
- How to make ? HOT 1
- hi, what 'convq_layer' means in net_pruner.py and net_skipper.py? HOT 4
- I have a problem about make runtest HOT 1
- I have some problem about code HOT 3
- where to get lenet_0.9917.caffemodel.h5? bvlc_alexnet.caffemodel.h5? HOT 1
- where cifar10_full_train_test_kernel_shape.prototxt ? HOT 1
- File "python/resnet_generator.py", line 21, in add_conv_layer conv_layer.bottom._values.append(bottom) AttributeError: 'google.protobuf.pyext._message.RepeatedScalarConta' object has no attribute '_values' HOT 3
- additional details on ResNet20 (low rank) HOT 4
- Getting Error While trying to convert to sparse Matrix HOT 1
- How to prune the zero-weights
- CSRMM Not Implemented yet HOT 3
- Error while converting caffemodel to HDF5 HOT 1
- using any regularization causes ever increasing loss HOT 5
- SCNN can't run for the errors of compute_shape
- A pytorch re-implementation of Structured Sparsity Learning HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caffe.