mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-03-13 09:10:26 +00:00
Fix import failure on some webui forks
In this case, caused by forge neo removing sd_hijack Fixes #337
This commit is contained in:
@@ -14,7 +14,7 @@ import gradio as gr
|
||||
import yaml
|
||||
from fastapi import FastAPI
|
||||
from fastapi.responses import FileResponse, JSONResponse, Response
|
||||
from modules import hashes, script_callbacks, sd_hijack, sd_models, shared
|
||||
from modules import hashes, script_callbacks, sd_models, shared
|
||||
from pydantic import BaseModel
|
||||
|
||||
from scripts.model_keyword_support import (get_lora_simple_hash,
|
||||
@@ -22,6 +22,11 @@ from scripts.model_keyword_support import (get_lora_simple_hash,
|
||||
write_model_keyword_path)
|
||||
from scripts.shared_paths import *
|
||||
|
||||
try:
|
||||
from modules import sd_hijack
|
||||
except (ImportError, ModuleNotFoundError):
|
||||
sd_hijack = None
|
||||
|
||||
try:
|
||||
try:
|
||||
from scripts import tag_frequency_db as tdb
|
||||
|
||||
Reference in New Issue
Block a user