iamaaditya / pixel-deflection

Deflecting Adversarial Attacks with Pixel Deflection
70 stars 21 forks source link

ImportError: cannot import name denoise_wavelet #4

Open hanwei0912 opened 6 years ago

hanwei0912 commented 6 years ago

Hello,

I have some strange issues. I installed the package scikit-image for skimage, however, I can import denoise_te_chambolle, denoise_bilateral but I cannot import denoise_wavelet.

I did not find any useful answer from the internet. And when I try to install skimage package, it always asks me to install the scikit-image package instead.

Do you know how to tackle this problem?

Thank you in advance.

iamaaditya commented 6 years ago
  1. skimage and scikit-image are same libraries.
  2. Looks like you have very old version of skimage. What is the output of this command:
    python -c 'import skimage; print(skimage.__version__)'
  3. Try upgrading scikit-image and test again.
    pip install --upgrade scikit-image
hanwei0912 commented 6 years ago

Thank you for your reply. I have tried it. My version of skimage package is 0.12.3 and I try upgrading but it does not work. It still cannot import denoise_wavelet. My python version is 2.7, could it be the problem?

Thank you in advance.