yeq6x commited on
Commit
79cb9f3
Β·
1 Parent(s): f0ac51d

@spaces.GPU

Browse files
Files changed (2) hide show
  1. app.py +1 -4
  2. scripts/process_utils.py +1 -0
app.py CHANGED
@@ -8,11 +8,8 @@ from scripts.process_utils import initialize, process_image_as_base64
8
  from scripts.anime import init_model
9
  from scripts.generate_prompt import load_wd14_tagger_model
10
 
11
- # from dotenv import load_dotenv
12
- # load_dotenv()
13
-
14
  # εˆζœŸεŒ–
15
- initialize(_use_local=False, use_gpu=True)
16
  init_model(use_local=False)
17
  load_wd14_tagger_model()
18
 
 
8
  from scripts.anime import init_model
9
  from scripts.generate_prompt import load_wd14_tagger_model
10
 
 
 
 
11
  # εˆζœŸεŒ–
12
+ initialize(_use_local=False, use_gpu=True, use_dotenv=False)
13
  init_model(use_local=False)
14
  load_wd14_tagger_model()
15
 
scripts/process_utils.py CHANGED
@@ -54,6 +54,7 @@ def load_lora(pipeline, lora_path, alpha=0.75):
54
 
55
  def initialize_sotai_model():
56
  global device, torch_dtype
 
57
 
58
  sotai_sd_model_path = get_file_path(os.environ["sotai_sd_model_name"], subfolder=os.environ["sd_models_dir"])
59
  controlnet_path1 = get_file_path(os.environ["controlnet_name1"], subfolder=os.environ["controlnet_dir2"])
 
54
 
55
  def initialize_sotai_model():
56
  global device, torch_dtype
57
+ print(f"Device: {device}, torch_dtype: {torch_dtype}")
58
 
59
  sotai_sd_model_path = get_file_path(os.environ["sotai_sd_model_name"], subfolder=os.environ["sd_models_dir"])
60
  controlnet_path1 = get_file_path(os.environ["controlnet_name1"], subfolder=os.environ["controlnet_dir2"])