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
97 stars 25 forks source link

Not working with pip install #8

Closed deeptft closed 9 months ago

deeptft commented 9 months ago

Hello brother shared code example is not working with pip install

The following error

File "/home/mrtan/ritvik/image_dehazer.py", line 15, in HazeCorrectedImg, HazeMap = image_dehazer.remove_haze(HazeImg) # Remove Haze AttributeError: partially initialized module 'image_dehazer' has no attribute 'remove_haze' (most likely due to a circular import)

Utkarsh-Deshmukh commented 9 months ago

i am unable to reproduce this. Can you give me some details about what procedures you are following? Be as verbose as possible, as this will help debug this issue

Utkarsh-Deshmukh commented 9 months ago

another tip: try installing this in a venv - you might already have some lib that may be causing the circular lib dependency. Also, try uninstalling opencv before installing image_dehazer. image_dehazer internally is dependent on opencv, and would be trying to install it

deeptft commented 9 months ago

Hi, @Utkarsh-Deshmukh. The Issue gets resolved when I create a new environment. Thanks for your support.