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

'path_to_image' from 'utils' #20

Open
Kimthanh27 opened this issue Sep 10, 2024 · 7 comments
Open

'path_to_image' from 'utils' #20

Kimthanh27 opened this issue Sep 10, 2024 · 7 comments

Comments

@Kimthanh27
Copy link

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
Copy link
Author

thank you Andy.

@cjc999
Copy link

cjc999 commented Sep 11, 2024

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

@Pythonpa
Copy link

The same +1

@EasyComfyui
Copy link

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

@cuongloveit
Copy link

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

@Kimthanh27
Copy link
Author

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

@liangmou825
Copy link

图像 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

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

6 participants