AisingioroHao0 commited on
Commit
09bbc11
1 Parent(s): f38c281
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import huggingface_hub
2
  import gradio as gr
3
- # from stable_diffusion_reference_only.pipelines.stable_diffusion_reference_only_pipeline import (
4
- # StableDiffusionReferenceOnlyPipeline,
5
- # )
6
  from anime_segmentation import get_model as get_anime_segmentation_model
7
  from anime_segmentation import character_segment as anime_character_segment
8
  from diffusers.schedulers import UniPCMultistepScheduler
@@ -15,7 +15,6 @@ import torch
15
  if __name__ == "__main__":
16
 
17
  print(f"Is CUDA available: {torch.cuda.is_available()}")
18
- print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
19
  if torch.cuda.is_available():
20
  device = "cuda"
21
  else:
 
1
  import huggingface_hub
2
  import gradio as gr
3
+ from stable_diffusion_reference_only.pipelines.stable_diffusion_reference_only_pipeline import (
4
+ StableDiffusionReferenceOnlyPipeline,
5
+ )
6
  from anime_segmentation import get_model as get_anime_segmentation_model
7
  from anime_segmentation import character_segment as anime_character_segment
8
  from diffusers.schedulers import UniPCMultistepScheduler
 
15
  if __name__ == "__main__":
16
 
17
  print(f"Is CUDA available: {torch.cuda.is_available()}")
 
18
  if torch.cuda.is_available():
19
  device = "cuda"
20
  else: