Comments (6)
Hi @aupuzikov and @aswanthkrishna, thank you for noticing this bug! Now it is fixed
from musco-pytorch.
hi everybody! can anyone fix it? doesn't seem like a big issue more like a bug.
from musco-pytorch.
https://github.com/musco-ai/musco-pytorch/blob/master/musco/pytorch/compressor/decompositions/svd_layer.py#L168
looks like out_features/in_features should be considered too....
from musco-pytorch.
any fix?
from musco-pytorch.
thanks a lot :)
from musco-pytorch.
It seems not to be fixed if it gets installed with pip. I still have:
~/anaconda3/lib/python3.8/site-packages/musco/pytorch/compressor/decompositions/svd_layer.py in __init__(self, layer, layer_name, rank_selection, rank, pretrained, vbmf_weaken_factor, param_reduction_rate)
157
158 if rank_selection == 'vbmf':
--> 159 self.rank = estimate_vbmf_ranks(self.weight, vbmf_weaken_factor, min_rank = self.min_rank)
160 elif rank_selection == 'manual':
161 self.rank = rank
AttributeError: 'SVDDecomposedConvLayer' object has no attribute 'min_rank'
I used musco-pytorch 1.0.6. Solution:
pip uninstall musco-pytorch -y
git clone https://github.com/musco-ai/musco-pytorch
cd musco-pytorch
python setup.py install
This results in:
~/anaconda3/lib/python3.8/site-packages/numpy/linalg/linalg.py in _raise_linalgerror_svd_nonconvergence(err, flag)
104
105 def _raise_linalgerror_svd_nonconvergence(err, flag):
--> 106 raise LinAlgError("SVD did not converge")
107
108 def _raise_linalgerror_lstsq(err, flag):
LinAlgError: SVD did not converge
or
~/anaconda3/lib/python3.8/site-packages/numpy/lib/function_base.py in asarray_chkfinite(a, dtype, order)
495 a = asarray(a, dtype=dtype, order=order)
496 if a.dtype.char in typecodes['AllFloat'] and not np.isfinite(a).all():
--> 497 raise ValueError(
498 "array must not contain infs or NaNs")
499 return a
ValueError: array must not contain infs or NaNs
Which would be a new issue though, but I thought I at least mention it. The output seems random. Used code from Github readme.
from musco-pytorch.
Related Issues (9)
- copy.deepcopy does not work on Faster R-CNN models HOT 2
- Request for ResNet-18 model
- Running demo code results in "LinAlgError: SVD did not converge" or "ValueError: array must not contain infs or NaNs" HOT 1
- how to calculate the speedup in the paper
- Installation fails due to conflicting numpy version HOT 1
- How to restore the ideal accuracy(mAP) by fine-tuning HOT 2
- FPN
- Instalation problem HOT 1
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 musco-pytorch.