chaofengc / IQA-PyTorch

👁️ 🖼️ 🔥PyTorch Toolbox for Image Quality Assessment, including LPIPS, FID, NIQE, NRQM(Ma), MUSIQ, TOPIQ, NIMA, DBCNN, BRISQUE, PI and more...
https://iqa-pytorch.readthedocs.io/
Other
1.84k stars 165 forks source link

about pyinstaller package #102

Closed cwjjun closed 1 year ago

cwjjun commented 1 year ago

I tried to use pyinstaller to package the code containing your library, and I got a FileNotFoundError at runtime in File "pyiqa\utils\misc.py", line 76, in _scandir. How should I solve this problem? thank you!

chaofengc commented 1 year ago

Thanks for interest. The current codes are not tested with pyinstaller. Please follow instructions in readme to install the package.

# Install with pip
pip install pyiqa

# Install latest github version
pip uninstall pyiqa # if have older version installed already 
pip install git+https://github.com/chaofengc/IQA-PyTorch.git

# Install with git clone
git clone https://github.com/chaofengc/IQA-PyTorch.git
cd IQA-PyTorch
pip install -r requirements.txt
python setup.py develop