Zeyi-Lin / HivisionIDPhotos

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

HivisionIDPhotos DOCKER desktop運行時報出如下錯誤,請問怎麼解決? #186

Open holylandp opened 3 weeks ago

holylandp commented 3 weeks ago

2024-10-08 16:24:08 Traceback (most recent call last): 2024-10-08 16:24:08 File "/app/app.py", line 3, in 2024-10-08 16:24:08 from demo.processor import IDPhotoProcessor 2024-10-08 16:24:08 File "/app/demo/processor.py", line 2, in 2024-10-08 16:24:08 from hivision import IDCreator 2024-10-08 16:24:08 File "/app/hivision/init.py", line 1, in 2024-10-08 16:24:08 from .creator import IDCreator, Params as IDParams, Result as IDResult 2024-10-08 16:24:08 File "/app/hivision/creator/init.py", line 12, in 2024-10-08 16:24:08 import hivision.creator.utils as U 2024-10-08 16:24:08 File "/app/hivision/creator/utils.py", line 45, in 2024-10-08 16:24:08 image: np.ndarray, 2024-10-08 16:24:08 AttributeError: module 'numpy' has no attribute 'ndarray' 2024-10-08 16:24:22 Traceback (most recent call last): 2024-10-08 16:24:22 File "/app/app.py", line 3, in 2024-10-08 16:24:22 from demo.processor import IDPhotoProcessor 2024-10-08 16:24:22 File "/app/demo/processor.py", line 2, in 2024-10-08 16:24:22 from hivision import IDCreator 2024-10-08 16:24:22 File "/app/hivision/init.py", line 1, in 2024-10-08 16:24:22 from .creator import IDCreator, Params as IDParams, Result as IDResult 2024-10-08 16:24:22 File "/app/hivision/creator/init.py", line 12, in 2024-10-08 16:24:22 import hivision.creator.utils as U 2024-10-08 16:24:22 File "/app/hivision/creator/utils.py", line 45, in 2024-10-08 16:24:22 image: np.ndarray, 2024-10-08 16:24:22 AttributeError: module 'numpy' has no attribute 'ndarray' 2024-10-08 16:24:23 Traceback (most recent call last): 2024-10-08 16:24:23 File "/app/app.py", line 3, in 2024-10-08 16:24:23 from demo.processor import IDPhotoProcessor 2024-10-08 16:24:23 File "/app/demo/processor.py", line 2, in 2024-10-08 16:24:23 from hivision import IDCreator 2024-10-08 16:24:23 File "/app/hivision/init.py", line 1, in 2024-10-08 16:24:23 from .creator import IDCreator, Params as IDParams, Result as IDResult 2024-10-08 16:24:23 File "/app/hivision/creator/init.py", line 12, in 2024-10-08 16:24:23 import hivision.creator.utils as U 2024-10-08 16:24:23 File "/app/hivision/creator/utils.py", line 45, in 2024-10-08 16:24:23 image: np.ndarray, 2024-10-08 16:24:23 AttributeError: module 'numpy' has no attribute 'ndarray' 2024-10-08 16:26:00 Traceback (most recent call last): 2024-10-08 16:26:00 File "/app/app.py", line 3, in 2024-10-08 16:26:00 from demo.processor import IDPhotoProcessor 2024-10-08 16:26:00 File "/app/demo/processor.py", line 2, in 2024-10-08 16:26:00 from hivision import IDCreator 2024-10-08 16:26:00 File "/app/hivision/init.py", line 1, in 2024-10-08 16:26:00 from .creator import IDCreator, Params as IDParams, Result as IDResult 2024-10-08 16:26:00 File "/app/hivision/creator/init.py", line 12, in 2024-10-08 16:26:00 import hivision.creator.utils as U 2024-10-08 16:26:00 File "/app/hivision/creator/utils.py", line 45, in 2024-10-08 16:26:00 image: np.ndarray, 2024-10-08 16:26:00 AttributeError: module 'numpy' has no attribute 'ndarray' 2024-10-08 16:26:44 Traceback (most recent call last): 2024-10-08 16:26:44 File "/app/app.py", line 3, in 2024-10-08 16:26:44 from demo.processor import IDPhotoProcessor 2024-10-08 16:26:44 File "/app/demo/processor.py", line 2, in 2024-10-08 16:26:44 from hivision import IDCreator 2024-10-08 16:26:44 File "/app/hivision/init.py", line 1, in 2024-10-08 16:26:44 from .creator import IDCreator, Params as IDParams, Result as IDResult 2024-10-08 16:26:44 File "/app/hivision/creator/init.py", line 12, in 2024-10-08 16:26:44 import hivision.creator.utils as U 2024-10-08 16:26:44 File "/app/hivision/creator/utils.py", line 45, in 2024-10-08 16:26:44 image: np.ndarray, 2024-10-08 16:26:44 AttributeError: module 'numpy' has no attribute 'ndarray' 2024-10-08 16:26:46 Traceback (most recent call last): 2024-10-08 16:26:46 File "/app/app.py", line 3, in 2024-10-08 16:26:46 from demo.processor import IDPhotoProcessor 2024-10-08 16:26:46 File "/app/demo/processor.py", line 2, in 2024-10-08 16:26:46 from hivision import IDCreator 2024-10-08 16:26:46 File "/app/hivision/init.py", line 1, in 2024-10-08 16:26:46 from .creator import IDCreator, Params as IDParams, Result as IDResult 2024-10-08 16:26:46 File "/app/hivision/creator/init.py", line 12, in 2024-10-08 16:26:46 import hivision.creator.utils as U 2024-10-08 16:26:46 File "/app/hivision/creator/utils.py", line 45, in 2024-10-08 16:26:46 image: np.ndarray, 2024-10-08 16:26:46 AttributeError: module 'numpy' has no attribute 'ndarray'

shen774411223d commented 2 weeks ago

依赖应该没有安装好,重新执行 pip install 还不行的话借助下其他源试试?

holylandp commented 2 weeks ago

fat tiger @.***>于2024年10月12日 周六17:23写道:

依赖应该没有安装好,重新执行 pip install 还不行的话借助下其他源试试?

— Reply to this email directly, view it on GitHub https://github.com/Zeyi-Lin/HivisionIDPhotos/issues/186#issuecomment-2408473171, or unsubscribe https://github.com/notifications/unsubscribe-auth/BL5ODT5K6NHMGMQQHVQCKBLZ3DTBNAVCNFSM6AAAAABPRXKMYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBYGQ3TGMJXGE . You are receiving this because you authored the thread.Message ID: @.***>

感谢,换了其他源好了。

shen774411223d commented 2 weeks ago

fat tiger @.>于2024年10月12日 周六17:23写道: 依赖应该没有安装好,重新执行 pip install 还不行的话借助下其他源试试? — Reply to this email directly, view it on GitHub <#186 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/BL5ODT5K6NHMGMQQHVQCKBLZ3DTBNAVCNFSM6AAAAABPRXKMYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBYGQ3TGMJXGE . You are receiving this because you authored the thread.Message ID: @.> 感谢,换了其他源好了。

好的,国内安装pip 依赖可能会不顺利。但是看你繁体字应该是香港或者其他地区。。也会有安装不顺利的情况吗?

holylandp commented 2 weeks ago

沒有不順暢,港澳地區OK的,我換了上一個版本依賴就沒有問題,比較奇怪。

fat tiger @.***>于2024年10月12日 周六21:14写道:

fat tiger @. >于2024年10月12日 周六17:23写道: 依赖应该没有安装好,重新执行 pip install 还不行的话借助下其他源试试? — Reply to this email directly, view it on GitHub <#186 (comment) https://github.com/Zeyi-Lin/HivisionIDPhotos/issues/186#issuecomment-2408473171>, or unsubscribe https://github.com/notifications/unsubscribe-auth/BL5ODT5K6NHMGMQQHVQCKBLZ3DTBNAVCNFSM6AAAAABPRXKMYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBYGQ3TGMJXGE https://github.com/notifications/unsubscribe-auth/BL5ODT5K6NHMGMQQHVQCKBLZ3DTBNAVCNFSM6AAAAABPRXKMYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBYGQ3TGMJXGE . You are receiving this because you authored the thread.Message ID: @.> 感谢,换了其他源好了。

好的,国内安装pip 依赖可能会不顺利。但是看你繁体字应该是香港或者其他地区。。也会有安装不顺利的情况吗?

— Reply to this email directly, view it on GitHub https://github.com/Zeyi-Lin/HivisionIDPhotos/issues/186#issuecomment-2408561423, or unsubscribe https://github.com/notifications/unsubscribe-auth/BL5ODT7QYNZ77EHIBYJVVC3Z3EOC3AVCNFSM6AAAAABPRXKMYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBYGU3DCNBSGM . You are receiving this because you authored the thread.Message ID: @.***>