vislearn / ib-inn Goto Github PK
View Code? Open in Web Editor NEWCode for the paper "Training Normalizing Flows with the Information Bottleneck for Competitive Generative Classification" (2020)
Code for the paper "Training Normalizing Flows with the Information Bottleneck for Competitive Generative Classification" (2020)
Hi - thanks for sharing your code! Quick conceptual question: I believe the architectures in this work do split off their latent codes using intermediate output nodes (unlike what's recommend in the FrEIA repo). I'm wondering why this was not done? Is it not really necessary?
https://github.com/VLL-HD/IB-INN/blob/440b75d5fbafec75842b18c9e7b6f03a8d76d16d/dct_transform.py#L117
It should be
transf = dct_layer([x])
Hi, thanks for a very appreciated code base.
It seems, that some code is missing from the repo.
In particular, the generate
argument in main.py doesn't work due to an import of a not existing evaluation.generation
function.
Is that, by chance, something that you forgot to commit?
Thank you in advance!
Since FrEIA went through few major updates, this repository do not work with the latest FrEIA.
Are there any quick fix for forward compatibility?
For the time being, I am using the version of FrEIA with framework.py in the root directory (i.e. https://github.com/VLL-HD/FrEIA/tree/550257b10af7d8772b08d4aa9b18772e2c0225f9)
Hi,
There may be a mistake in the reported bits per dimension for your CIFAR10 experiments.
In particular, it seems like they are computed by this code, which either accounts for normalization (dividing by 256) or adding "sigma
noise".
Code copy-pasted here:
bpd = output['L_x_val'].item()
if eval(args['data']['dequantize_uniform']):
bpd += np.log(256)
else:
bpd += np.log(data.sigma) + 0.5 * np.log(2 * np.pi)
bpd -= 0.5 * np.log(2*np.pi)
bpd /= np.log(2)
However, it seems from the config files that both cfg['data']['dequantize_uniform']
and cfg['data']['sigma_noise']
are turned on at once.
Please correct me if I am wrong.
Once again, thanks for a very well done code base.
Hi,
This paper is a great work. Thanks for the codes.
I would like to enquire about the line 193 in VIB.py.
Why is the variable ‘‘statistics’’ subtract 5 ?
Thanks
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.