alexandru-dinu / cae Goto Github PK
View Code? Open in Web Editor NEWCompressive Autoencoder.
License: MIT License
Compressive Autoencoder.
License: MIT License
Hello. When I run the test.py, the only thing I can obtain is the decoded image. However, I am interested in knowing the compression ratio. Could you please provide instructions on how to obtain the image encoding? Thank you.
thanks for open sourcing your code. But I was wondering where is the part about entropy coding (as used in the paper). How were you able to achieve the low compression ratios without entropy coding?
thanks!
I trained it for about an hour, but the results are very poor. Can you provide the model dump files you have trained?
Easily store the latent representation of the image into a custom file format:
<HEADER | ?? bytes>: number of H patches, number of W patches, patch size
<flatten_patch_i_j>
Hi!
What is your loss function and what metric do you use to evaluate quality of decompressed images?
Thank you,
Anton.
Hello and thank you for sharing your good repository.
With attention, I can see a plaid pattern in reconstructed images which I believe is the result of patching the image (The border of reconstructed patches has a little less quality). Do you know any way to resolve that (maybe overlapping patches (which may increase the compression size))?
tensorboardX
pathlib
@alexandru-dinu
Can i ask you if the test result of your trained model reach PSNR of 37 ,SSIM of 0.96 , MS-SSIM of 0.98 at 2bpp as mentioned in the paper “LOSSY IMAGE COMPRESSION WITH COMPRESSIVE AUTOENCODERS”?
I can't find the training dataset refered in the paper .Could you tell me the dataset which you used to train this model? Thank you so much if you can help me .
cae/models/model_ae_conv_512_bin.py
Lines 140 to 149 in 6b53f45
It is easy to known
ec3 ∈ (-1,1)
r ∈ (0,1)
p ∈ (0,1)
Then ,(1 - ec3) ∈ (0,2) , (-ec3 - 1) ∈ (-2,0) . Thus , in my opinion,the range of values of the matrix eps should be (-2,2) and (ec3 + eps ) ∉(-1,1).Am I wrong?
Extracted from #29:
Hi, I am wondering how I can use the encoder and decoder separately? I managed to save the latent representations of the single patches. Now in a second step (in another file) I would like to reconstruct the patches again so that I get the complete image again. Using model.decode() worked fine on the single encoded patches. But I did not manage to reconstruct a complete image.
Is there a simple step how I can fix that?
I would very much appreciate your input on that :)
RuntimeError: invalid argument 1: must be strictly positive at /pytorch/torch/lib/TH/generic/THTensorMath.c:2247
Traceback (most recent call last):
File "train.py", line 94, in
train(args)
File "train.py", line 36, in train
for bi, (img, patches, _) in enumerate(dataloader):
File "/home/tq/anaconda3/envs/p3.6torch0.4.1/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 314, in next
batch = self.collate_fn([self.dataset[i] for i in indices])
File "/home/tq/anaconda3/envs/p3.6torch0.4.1/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 314, in
batch = self.collate_fn([self.dataset[i] for i in indices])
File "/home/tq/nets/cae/image_folder.py", line 20, in getitem
h, w, c = img.shape[:3] #delete [:3]
ValueError: not enough values to unpack (expected 3, got 2)
what version of this pytorch
Hi @alexandru-dinu
thank you for sharing your work on Lucas et. al. paper. I have the following questions:
thanks.
Thank you for sharing. I have a question, how to compute bit rate according to GSM. I cannot find in the provided code. @alexandru-dinu
Good luck.
I saw from ur readme doc that you take ~100k images for training. I would like to know more abt the training details, such as:
Thank you,
Alex
Thanks for sharing. But I believe the loss function used in the paper "Lossy Image Compression with Compressive Autoencoders" is supposed to be Rate-distortion, why is MSE loss used instead?
cae = CAE(
latent_size=(32, 32, 32),
padding=PADDING.zero,
)
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.