Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LayerMask: PersonMaskUltra和LayerMask: PersonMaskUltra V2 #52

Open
liulsg opened this issue Mar 26, 2024 · 14 comments
Open

LayerMask: PersonMaskUltra和LayerMask: PersonMaskUltra V2 #52

liulsg opened this issue Mar 26, 2024 · 14 comments

Comments

@liulsg
Copy link

liulsg commented Mar 26, 2024

问题:不能正常运行。
已经运行过repair_dependency.bat
这两个命令在我测试的过程中一直不能运行。下面是错误日志

Error occurred when executing LayerMask: PersonMaskUltra:

[Errno 13] Permission denied: 'G:\AI\ComfyUI_M\ComfyUI\models\mediapipe\selfie_multiclass_256x256.tflite'

File "G:\AI\ComfyUI_M\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_M\ComfyUI\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_M\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\AI\ComfyUI_M\ComfyUI\custom_nodes\ComfyUI_LayerStyle\py\person_mask_Ultra.py", line 63, in person_mask_ultra
with open(a_person_mask_generator_model_path, "rb") as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

@chflame163
Copy link
Owner

没用repair_dependency.bat修复之前也是这样吗?错误信息显示是文件权限问题不能打开,请查看你的protobuf依赖包版本

@liulsg
Copy link
Author

liulsg commented Mar 26, 2024

已经安装到了最新版本,protobuf==5.26.0 我用你的.bat安装试过不可以。我自己手动安装仍然不能成功运行。
修复之前也是不可以运行的,

@kakachiex2
Copy link

I have the same error I install dependencies and the errors keep pop

Error occurred when executing LayerMask: PersonMaskUltra V2:

[Errno 13] Permission denied: 'K:\ComfyUI\ComfyUI\models\mediapipe\selfie_multiclass_256x256.tflite'

File "K:\ComfyUI\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\ComfyUI\ComfyUI\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\ComfyUI\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\ComfyUI\ComfyUI\custom_nodes\ComfyUI_LayerStyle\py\person_mask_ultra_v2.py", line 69, in person_mask_ultra_v2
with open(a_person_mask_generator_model_path, "rb") as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

@kakachiex2
Copy link

@liulsg Try this [ pip install protobuf==4.25.3 ] it will uninstall the current version and install this one work for me but dont fix the errors.

@kakachiex2
Copy link

Deleting the folder mediapipe and running the node will create a new one and download the model this fix the problem for me.

@liulsg
Copy link
Author

liulsg commented Mar 27, 2024

经过测试,出现此问题的原因是:自动下载的模型锁了权限
解决办法:删除 mediapipe 文件,手动创建mediapipe 文件并到官网下载模型放入这个文件夹内(与protobuf版本关系不大,我测试升降版本都没有问题),下面是原网址解决办法和模型下载地址。
djbielejeski/a-person-mask-generator#28
https://developers.google.com/mediapipe/solutions/vision/image_segmenter#multiclass-model


After testing, the reason for this problem is: the automatically downloaded model locks permissions Solution: delete the mediapipe file, manually create the mediapipe file and download the model to the official website and put it in this folder (with protobuf version has little to do with it, I tested the upgrade version without problems), the following is the original URL solution and model download address.

@liulsg
Copy link
Author

liulsg commented Mar 27, 2024

不过这个节点的判断逻辑应该还有优化的空间。
检测不到对应信息直接报错(比如开启检测衣服,未检测到直接报错)

@laidingq
Copy link

laidingq commented Apr 3, 2024

求整合或替代
image

@the2ndface
Copy link

这是哪个节点,求链接

@dabiaog
Copy link

dabiaog commented Apr 13, 2024

这个节点的判断逻辑应该还有优化的空间。 检测不到对应信息直接报错(比如开启检测衣服,未检测到直接报错)

微信截图_20240413184715

@T1987125630
Copy link

这个问题非常好解决,selfie_multiclass_256x256.tflite这个文件下载时生成了一个同名文件夹,把这个文件从文件夹里拿出来就OK了。
This problem is very easy to solve, selfie_multiclass_256x256.tflite this file download generated a folder with the same name, the file out of the folder is OK.

@yxf551
Copy link

yxf551 commented May 20, 2024

Error occurred when executing LayerMask: PersonMaskUltra V2:

We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like hustvl/vitmatte-small-composition-1k is not the path to a directory containing a file named config.json.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
屏幕截图 2024-05-21 024704

@3105083684
Copy link

执行 LayerMask 时出错:PersonMaskUltra V2:

我们无法连接到“https://huggingface.co”来加载此文件,在缓存文件中找不到它,并且看起来 hustvl/vitmatte-small-composition-1k 不是包含名为 config.json 的文件的目录的路径。在“https://huggingface.co/docs/transformers/installation#offline-mode”中签出您的互联网连接或查看如何在离线模式下运行库。 屏幕截图 2024-05-21 024704

+1
4fbe7da41025b08bf946341426f74c4

@xjtuwolf
Copy link

Error occurred when executing LayerMask: SegmentAnythingUltra V2:

('Connection broken: IncompleteRead(149015986 bytes read, 175360628 more expected)', IncompleteRead(149015986 bytes read, 175360628 more expected))

File "D:\ai\ComfyUI\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants