This is Filter code
This is not my code: https://github.com/jaigarg/Image-Dehazing-using-Steering-Kernel-Weighted-Guided-Image-Filtering/tree/main
You check this link above
Implementation is only in google colab, if you run any other , you need to modify this code
Run this command in colab code : !git clone https://github.com/pythonpro16/weighted-guided-image-filtering.git
Redirect the cmd to main file: %cd /content/Image-Dehazing-using-Steering-Kernel-Weighted-Guided-Image-Filtering
Run the file which one you want, use the below commad
%run filename.py
or
!python filename.py