ComfyUI-BiRefNet-ZHO icon indicating copy to clipboard operation
ComfyUI-BiRefNet-ZHO copied to clipboard

'path_to_image' from 'utils'

Open Kimthanh27 opened this issue 1 year ago • 9 comments

File "D:\test\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-BiRefNet-ZHO\dataset.py", line 10, in from utils import path_to_image ImportError: cannot import name 'path_to_image' from 'utils' (D:\test\ComfyUI_windows_portable\ComfyUI\utils_init_.py)

tried : update comfy, update node, download model already, pull 1000800 times. still red. can you help me , thank you and xie xie merci beaucoup.

Kimthanh27 avatar Sep 10 '24 12:09 Kimthanh27

thank you Andy.

Kimthanh27 avatar Sep 11 '24 03:09 Kimthanh27

Unable to load, prompt: from utils import check_download_model ImportError: cannot import name 'check_download_model' from 'utils' (D:\ComfyUI\utils_init_.py)

cjc999 avatar Sep 11 '24 04:09 cjc999

The same +1

Pythonpa avatar Sep 11 '24 08:09 Pythonpa

image 1.rename utils -> myutils 2. open file dataset.py, line 10: from utils import path_to_image 3. edit to: from myutils import path_to_image image

EasyComfyui avatar Sep 11 '24 08:09 EasyComfyui

image 1.rename utils -> myutils 2. open file dataset.py, line 10: from utils import path_to_image 3. edit to: from myutils import path_to_image image

tks. it's worked

cuongloveit avatar Sep 11 '24 09:09 cuongloveit

tư lương ngọc 10 điểm không có nhưng. ^^

Kimthanh27 avatar Sep 11 '24 11:09 Kimthanh27

图像 1.重命名 utils -> myutils 2. 打开文件 dataset.py,第 10 行:from utils import path_to_image 3. 编辑为:from myutils import path_to_image 图像

Thank you for solving my problem

liangmou825 avatar Sep 15 '24 08:09 liangmou825

image 1.rename utils -> myutils 2. open file dataset.py, line 10: from utils import path_to_image 3. edit to: from myutils import path_to_image image

thanks

gxhcyzl avatar Apr 03 '25 06:04 gxhcyzl

File "/home/ubuntu/project/ComfyUI/custom_nodes/ComfyUI-BiRefNet-ZHO/dataset.py", line 10, in from myutils import path_to_image ModuleNotFoundError: No module named 'myutils'

chenggangqcg avatar Oct 21 '25 10:10 chenggangqcg