Code Monkey home page Code Monkey logo

u-net-fixed-point-quantization-for-medical-image-segmentation's Issues

The Parameter Size obtained under all quantization settings is 18.48MB

Hi,
Thanks for your good work. I have some questions when running the code:

The Parameter Size I obtained under all quantization settings is 18.48MB based on the EM dataset. According to your paper, The Parameter Size should be smaller than Full Precision. Could you please help me analyze the possible reasons? Thanks a lot!

For example, when I want to run UNET_EM_DATASET_a8_0_w0_8, the config.yaml is set to:
UNET:
dataset: 'emdataset'
lr: 0.001
num_epochs: 200
model_type: "unet"
init_type: glorot
quantization: "FIXED" # "INT", "BNN", "Normal", "FIXED"
activation_f_width: 0
activation_i_width: 6
weight_f_width: 4
weight_i_width: 0
gpu_core_num: 1
activation: "tanh"
trained_model: "./em_tanh_a6_0_w0_4/em_tanh_a6_0_w0_4.pkl"
experiment_name: "em_tanh_a6_0_w0_4"
log_output_dir: "./results/"
operation_mode: "normal" # normal, visualize, retrain, inference

Then, I run the code:
python em_unet.py -f config.yaml -t UNET

The environment I use:
Linux
Python 3.5.2
Nvidia 2080Ti GPU

Inference time speedup estimate

Hi,
Thanks for the great work. I'm working on quantization for inference time speedup, but didn't seem to find any speed(up) reported in the paper. Is there any estimated value how much speedup (for inference) I can expect with an x memory reduction?

Thank you.

plz help

hi,i appreciate the code you provided,but could you tell me what the method you did to show the model size after the quantification?i could't find the corresponding part in your code,thanks

How do you quantize the float part?

Hi, I read your paper titled "U-Net Fixed-Point Quantization for Medical Image Segmentation" and find it very interesting. But I cannot figure out how you quantize the fractional part. Concretely, from equation (3), which is x_f = abs(x) โˆ’ floor(abs(x)); x_i = floor(abs(x)), we know that x_f is always in [0, 1) and strictly smaller than 1.0. Thus, the quantization of x_f, i.e., quantize(x_f, n) = (round(clamp(x_f, n) << n)) >> n, will always be zero since you right-shift an integer smaller than 2^n by n bits. Hence, will the float part of Eq. (4) (the "to_float_point" function) always be zero? Am I misunderstanding your equation? Can you help me to figure it out?

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.