ford442 commited on
Commit
7385bb5
·
verified ·
1 Parent(s): 582a982

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -32
app.py CHANGED
@@ -38,37 +38,6 @@ FTP_USER = "ford442"
38
  FTP_PASS = "GoogleBez12!"
39
  FTP_DIR = "1ink.us/stable_diff/" # Remote directory on FTP server
40
 
41
-
42
-
43
- import subprocess
44
-
45
- def get_cuda_version():
46
- """
47
- Gets the CUDA version using the nvidia-smi command.
48
-
49
- Returns:
50
- str: The CUDA version as a string (e.g., "11.4").
51
- Returns None if nvidia-smi is not found or fails.
52
- """
53
- try:
54
- result = subprocess.run(['nvidia-smi'], capture_output=True, text=True)
55
- output = result.stdout
56
- # Find the line containing "CUDA Version"
57
- for line in output.splitlines():
58
- if "CUDA Version" in line:
59
- # Extract the version number
60
- return line.split(":")[-1].strip()
61
- return None
62
- except FileNotFoundError:
63
- return None
64
-
65
- cuda_version = get_cuda_version()
66
- if cuda_version:
67
- print(f"CUDA Version: {cuda_version}")
68
- else:
69
- print("CUDA not found or nvidia-smi command failed.")
70
-
71
-
72
 
73
  DESCRIPTIONXX = """
74
  ## ⚡⚡⚡⚡ REALVISXL V5.0 BF16 (Tester A) ⚡⚡⚡⚡
@@ -236,7 +205,7 @@ def load_and_prepare_model():
236
  pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/skin_texture_style_v4.safetensors", adapter_name="skin")
237
  #pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/epicNewPhoto.safetensors", adapter_name="photo")
238
  #pipe.set_adapters(["skin", "photo", "fantasy"], adapter_weights=[0.75, 0.25, 0.5])
239
- #pipe.set_adapters(["skin"], adapter_weights=[0.75])
240
 
241
  #sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="dpmsolver++")
242
  #sched = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, beta_schedule="linear", algorithm_type="dpmsolver++")
 
38
  FTP_PASS = "GoogleBez12!"
39
  FTP_DIR = "1ink.us/stable_diff/" # Remote directory on FTP server
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
 
42
  DESCRIPTIONXX = """
43
  ## ⚡⚡⚡⚡ REALVISXL V5.0 BF16 (Tester A) ⚡⚡⚡⚡
 
205
  pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/skin_texture_style_v4.safetensors", adapter_name="skin")
206
  #pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/epicNewPhoto.safetensors", adapter_name="photo")
207
  #pipe.set_adapters(["skin", "photo", "fantasy"], adapter_weights=[0.75, 0.25, 0.5])
208
+ pipe.set_adapters(["skin"], adapter_weights=[0.5])
209
 
210
  #sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="dpmsolver++")
211
  #sched = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, beta_schedule="linear", algorithm_type="dpmsolver++")