avatar-graph-comfyui icon indicating copy to clipboard operation
avatar-graph-comfyui copied to clipboard

max() arg is an empty sequence

Open alexbofa opened this issue 2 years ago • 2 comments

Hello, I have problem: image

Error occurred when executing Object_CreateMeshLayer:

max() arg is an empty sequence

File "/notebooks/ComfyUI/execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/notebooks/ComfyUI/execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "/notebooks/ComfyUI/execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/notebooks/ComfyUI/custom_nodes/avatar-graph-comfyui/blender/blender_node.py", line 106, in process
results = self.blender_process(bpy, **props)
File "/notebooks/ComfyUI/custom_nodes/avatar-graph-comfyui/blender/ops_create_mesh_layer.py", line 26, in blender_process
image, BPY_OBJ = genreate_mesh_from_texture(bpy, image)
File "/notebooks/ComfyUI/custom_nodes/avatar-graph-comfyui/blender/mesh_utils.py", line 20, in genreate_mesh_from_texture
max_area_index = areas.index(max(areas))

alexbofa avatar Nov 11 '23 23:11 alexbofa

Hey, can you check if the embedding is generated correctly by clicking into the Edit Prompt button? Also what is the workflow you are using? CleanShot 2023-11-12 at 01 41 27@2x

BennyKok avatar Nov 12 '23 09:11 BennyKok

I tried it on these two workflows. On 3 different computers, the same error is everywhere. This workflow Simple Shape Flow image it still does not work out to put a point normally, the mouse is in another place, the point is put in another. Photo for Example Screen-3036

image image image I don't know what's going on, but every time something becomes more difficult to highlight the eyes and lips

it worked out with this photo, but not very well https://editor.avatech.ai/viewer?objectId=45cac649-8d2f-4c86-bd4f-dab917bd62e3

alexbofa avatar Nov 14 '23 19:11 alexbofa