Giter Club home page Giter Club logo

Comments (10)

chamain avatar chamain commented on June 4, 2024

For the exact BW calculation, you may have to build JPEG2000 and change the quantization step sizes you leaned in the codec. Use this repo: https://github.com/uclouvain/openjpeg. The hardest part is to locate the step sizes in C codes. Thanks.

from quannet.

nikhil1008 avatar nikhil1008 commented on June 4, 2024

Thanks a lot for your response!

Couple more questions :

  1. When you compare performance with standard JPEG2000, for benchmarking JPEG2000 bandwidth , do you specify quantization step as well or do you use standard quantization step given in OpenJpeg ? I see in the paper you use dLL1 = 4.0156 (section 4) and so on. Is it for Y channel ? If so, what about C channel ?

  2. Do you incorporate truncation as well when calculating QuanNet Bandwidth ? If so , any pointers on how you do that using openJpeg. Do you also incorporate similar truncation in standard Jpeg DCT coefficients for fair comparison?

from quannet.

chamain avatar chamain commented on June 4, 2024
  1. To produce the baseline for this paper, I didn't use the openJPEG codec. (But we observed similar claimed accuracy improvements and BW savings when we used the codec, results not published yet.). And for the baseline in this paper, I used same quantization for all 3 channels.

  2. I didn't include truncation (mentioned in the paper as an experiment) for QuanNet Bandwidth. But if you use JPEG2000, it has its own bit stream truncation (EBCOT) algorithm.

from quannet.

nikhil1008 avatar nikhil1008 commented on June 4, 2024

Thank you ! I'm trying to reproduce results from the paper.

So, for fair bandwidth comparison , do you recommend to implement post-DWT quantization lossless compression like arithmetic coding or do you recommend to use OpenJPeg. Again, I'm trying to exactly replicate the results from the paper.
If you recommend to implement post-DWT quantization lossless techniques, could you please list exactly which techniques you used ?

Thanks,

from quannet.

chamain avatar chamain commented on June 4, 2024

I recommend using OpenJPeg for fairer comparison since it has rate distortion optimizations inbuilt. To replicate the results of the paper, you can use post DWT arithmetic coding. I can provide you a script that I used. But may take sometime to locate it.

from quannet.

nikhil1008 avatar nikhil1008 commented on June 4, 2024

sure, I can wait. Thank you so much !

from quannet.

nikhil1008 avatar nikhil1008 commented on June 4, 2024

Could you also provide quantization steps used in fig.5 for baseline ? Because some of the points are different from fig.2 baseline . (e.g. acc=90 b = 750 in fig.5) , I'm trying to get Fig.5 plot.

specifically, dLL, dLH, dHL and dHH for 3 baseline points in fig.5 from the paper.

Thanks,

from quannet.

nikhil1008 avatar nikhil1008 commented on June 4, 2024

After training Quannet, following coefficients are obtained for quantization step size for lambdaQ = 0.07.
0.34277198, -0. , 0.33719128, -0., 0.35755655, -0. , -0, -0, 0.3939665 , -0. , -0. , -0.
Couple of questions :

  1. How do you quantize for Qstep of 0 ?
  2. How is Bandwidth of Quannet smaller than baseline if quantization coefficients are approaching 0 ? Maybe I'm missing something.
    Thanks,

from quannet.

chamain avatar chamain commented on June 4, 2024

Hi @nikhil1008,
The weights are the reciprocals of of step sizes Q, for instance the step size for w_i = 0.34277198 is Q_i = 5*(1/(0.34277198)). Here 5 is the pre-scaling factor. See

yield temp/5 , batch[1]

Now w_i = 0 means Q_i goes to infinity hence we don't have to transmit those channels.

from quannet.

chamain avatar chamain commented on June 4, 2024

Could you also provide quantization steps used in fig.5 for baseline ? Because some of the points are different from fig.2 baseline . (e.g. acc=90 b = 750 in fig.5) , I'm trying to get Fig.5 plot.

specifically, dLL, dLH, dHL and dHH for 3 baseline points in fig.5 from the paper.

Thanks,

So to get different points on the baseline (Fig. 5) you have to scale* step sizes mentioned in the paper. (dLL1= 4.0156,dLH1=dHL1= 8.031, dHH1= 16.0625.) For instance you can get the BW=738, scale=4. Other points are (BW=593, scale=8), (BW=464, scale=16).

from quannet.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.