Utkarsh-Deshmukh / Single-Image-Dehazing-Python

python implementation of the paper: "Efficient Image Dehazing with Boundary Constraint and Contextual Regularization"
BSD 2-Clause "Simplified" License
99 stars 25 forks source link

How to reduce run time per image? #3

Closed darsw closed 2 years ago

darsw commented 2 years ago

This is awesome work, do you know how to reduce runtime for image? Right now it takes about 3-4 seconds for 1280p

Utkarsh-Deshmukh commented 2 years ago

Here are a few ways to reduce the compute time: 1) resize the image to a lower resolution 2) reduce the beta_max parameter in the CalTransmission.py file 3) increase the parameter beta_rate in the CalTransmission.py file

Hope this helps.