alfo5123 / variational-sparse-coding Goto Github PK
View Code? Open in Web Editor NEWReproducing the paper "Variational Sparse Coding" for the ICLR 2019 Reproducibility Challenge
License: MIT License
Reproducing the paper "Variational Sparse Coding" for the ICLR 2019 Reproducibility Challenge
License: MIT License
You said in VSC paper that
log(gamma) = - ReLu (-v_out) ・・・(1) ,
but if the activation function in hidden layer is "sigmoid" or "ReLu",
I think that (1) out the 0s in all dimensions.
So the model can't carry any information.
(But your experiments show good results!)
Would you teach me why this reparameterization trick works?
(I think log(gamma) = - ReLu (+v_out) will work well than (1))
In addition, how did you decide the range c-annealing from 50 to 200?
Hi guys,
I'm trying to train vsc with the command you given in readme:
python train-vsc.py --dataset mnist --epochs 20 --report-interval 4 --lr 0.001 --alpha 0.2 --hidden-size 2000,2000 --latent-size 800
But it looks some mismatch exists:
VSC Baseline Experiments
Using cuda device...
Loading mnist dataset...
Done!
Traceback (most recent call last):
File "train-vsc.py", line 31, in <module>
args.normalize)
TypeError: __init__() missing 1 required positional argument: 'flatten'
For vae I got mismatch again:
python train-vae.py --dataset mnist --epochs 500 --report-interval 50 --lr 0.01
VAE Baseline Experiments
Using cuda device...
Loading mnist dataset...
Done!
Traceback (most recent call last):
File "train-vae.py", line 30, in <module>
normalize=args.normalize)
File "/home/xd/project/Variational-Sparse-Coding/src/models/vae.py", line 58, in __init__
self.model = VAE(self.input_sz, self.hidden_sz, latent_sz).to(device)
File "/home/xd/project/Variational-Sparse-Coding/src/models/vae.py", line 15, in __init__
self.fc1 = nn.Linear(input_sz, hidden_szs[0])
File "/home/xd/anaconda3/envs/vsc/lib/python3.7/site-packages/torch/nn/modules/linear.py", line 72, in __init__
self.weight = Parameter(torch.Tensor(out_features, in_features))
TypeError: new(): argument 'size' must be tuple of ints, but found element of type tuple at pos 2
I'm using master branch and I know that I could fix these problems by myself since this is an open source project. Just let you guys be awared of that... And could you kindly push the updated model if it's possible.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.