portu-sim / comfyui_bmab

BMAB for ComfyUI
GNU Affero General Public License v3.0
93 stars 7 forks source link

BMAB Detail Anything 노드의 dilation 항목을 짝수로 하면 오류가 발생합니다. #9

Closed Neytiri7 closed 6 months ago

Neytiri7 commented 6 months ago

Error occurred when executing BMAB Detail Anything:

bad filter size

File "A:\SynologyDrive\ComfyUI-webui\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "A:\SynologyDrive\ComfyUI-webui\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 "A:\SynologyDrive\ComfyUI-webui\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "A:\SynologyDrive\ComfyUI-webui\ComfyUI\custom_nodes\comfyui-bmab\bmab\nodes\detailers.py", line 677, in process pil_mask = pil_mask.filter(ImageFilter.MaxFilter(dilation)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "A:\SynologyDrive\ComfyUI-webui\python_embeded\Lib\site-packages\PIL\Image.py", line 1314, in filter return self._new(filter.filter(self.im)) ^^^^^^^^^^^^^^^^^^^^^^ File "A:\SynologyDrive\ComfyUI-webui\python_embeded\Lib\site-packages\PIL\ImageFilter.py", line 88, in filter return image.rankfilter(self.size, self.rank) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

portu-sim commented 6 months ago

수정되었습니다.