当前位置:   article > 正文

tagger这个插件无法加载的修改点_importerror: cannot import name 'wrap_gradio_gpu_c

importerror: cannot import name 'wrap_gradio_gpu_call' from 'webui

tagger这个插件无法加载的修改点

stable-diffusion-webui-1.7.0\extensions\stable-diffusion-webui-wd14-tagger\preload.py

#from modules.shared import models_path  # pylint: disable=import-error

from modules import paths  # pylint: disable=import-error

#default_ddp_path = Path(models_path, 'deepdanbooru')

default_ddp_path = Path(paths.models_path, 'deepdanbooru')

#default_onnx_path = Path(models_path, 'TaggerOnnx')

default_onnx_path = Path(paths.models_path, 'TaggerOnnx')
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

stable-diffusion-webui-1.7.0\extensions\stable-diffusion-webui-wd14-tagger\tagger\ui.py

#from webui import wrap_gradio_gpu_call  # pylint: disable=import-error

from modules.call_queue import wrap_gradio_gpu_call  # pylint: disable=import-error
  • 1
  • 2
  • 3
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号