Zeyi-Lin / HivisionIDPhotos

⚡️HivisionIDPhotos: a lightweight and efficient AI ID photos tools. 一个轻量级的AI证件照制作算法。
https://swanhub.co/ZeYiLin/HivisionIDPhotos/demo
Apache License 2.0
12.93k stars 1.33k forks source link

运行app.py时出现TypeError: 'NoneType' object is not subscriptable #184

Open Smart-ab opened 1 month ago

Smart-ab commented 1 month ago

hivision\plugin\beauty\lut/lut_origin.png'): can't open/read file: check file path/integrity Traceback (most recent call last): File "app.py", line 3, in from demo.processor import IDPhotoProcessor File "C:\Users\stone\Desktop\HivisionIDPhotos\demo\processor.py", line 2, in from hivision import IDCreator File "C:\Users\stone\Desktop\HivisionIDPhotos\hivision__init.py", line 1, in from .creator import IDCreator, Params as IDParams, Result as IDResult File "C:\Users\stone\Desktop\HivisionIDPhotos\hivision\creator__init__.py", line 16, in from hivision.plugin.beauty.handler import beauty_face File "C:\Users\stone\Desktop\HivisionIDPhotos\hivision\plugin\beauty\init.py", line 1, in from .beauty_tools import BeautyTools File "C:\Users\stone\Desktop\HivisionIDPhotos\hivision\plugin\beauty\beauty_tools.py", line 10, in from .whitening import MakeWhiter File "C:\Users\stone\Desktop\HivisionIDPhotos\hivision\plugin\beauty\whitening.py", line 50, in make_whiter = MakeWhiter(default_lut) File "C:\Users\stone\Desktop\HivisionIDPhotos\hivision\plugin\beauty\whitening.py", line 38, in init self.lut_white = LutWhite(lut_image) File "C:\Users\stone\Desktop\HivisionIDPhotos\hivision\plugin\beauty\whitening.py", line 14, in init__ self.lut = self._create_lut(lut_image) File "C:\Users\stone\Desktop\HivisionIDPhotos\hivision\plugin\beauty\whitening.py", line 24, in _create_lut cube64 = lut_image[cy : cy + self.CUBE64_SIZE, cx : cx + self.CUBE64_SIZE] TypeError: 'NoneType' object is not subscriptable

lmf112358 commented 3 days ago

同问为什么打不开lugimage [ WARN:0@5.239] global loadsave.cpp:241 cv::findDecoder imread('F:\工具\github_clone\HivisionIDPhotos\hivision\plugin\beauty\lut/lut_origin.png'): can't open/read file: check file path/integrity