Open mohammad-ali-dastgheib opened 3 years ago
Anaconda finds the appropriate packages for you automatically.
1- conda create --name pb_moma_env python=2.7
2- conda install -c conda-forge opencv
(for more info, check out: https://anaconda.org/conda-forge/opencv)
3- conda install scipy
4- pip install perceptual
(you need to install it using pip
)
the __init__.py
file for the "perceptual" package seems to be blank. if that is the case for you, and you get error for not finding the module, edit the file yourself:
# __init__.py
from .filterbank import *
from .metric import *
#
#
Name, Version, Build, Channel;
blas 1.0 mkl ca-certificates 2021.9.30 haa95532_1 certifi 2020.6.20 pyhd3eb1b0_3 icc_rt 2019.0.0 h0cc432a_1 icu 58.2 vc9_0 conda-forge intel-openmp 2021.4.0 h57928b3_3556 conda-forge jpeg 9c h0c8e037_1001 conda-forge libblas 3.9.0 8_mkl conda-forge libcblas 3.9.0 8_mkl conda-forge liblapack 3.9.0 8_mkl conda-forge libpng 1.6.37 h7a46e7a_0 conda-forge libtiff 4.0.9 he490001_1002 conda-forge libwebp 0.5.2 vc9_7 conda-forge mkl 2020.4 hb70f87d_311 conda-forge numpy 1.11.3 py27hab51878_1207 conda-forge opencv 3.2.0 np111py27_204 conda-forge openssl 1.0.2u h0c8e037_0 perceptual 0.1 pypi_0 pypi pip 19.3.1 py27_0 python 2.7.18 hfb89ab9_0 python_abi 2.7 1_cp27m conda-forge qt 5.6.2 vc9hc26998b_12 scipy 1.2.1 py27h4c3ab11_0 setuptools 44.0.0 py27_0 sqlite 3.30.1 h0c8e037_0 vc 9 h7299396_1 vs2008_runtime 9.00.30729.1 hfaea7d5_1 wheel 0.37.0 pyhd3eb1b0_1 wincertstore 0.2 py27hf04cefb_0 zlib 1.2.11 h3cc03e0_1006 conda-forge