Yaron Koresh commited on
Commit
775426e
·
verified ·
1 Parent(s): f0cb575

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -47,7 +47,7 @@ else:
47
  device = "cpu"
48
  dtype = torch.float16
49
 
50
- base = "SG161222/Realistic_Vision_V6.0_B1_noVAE"
51
  adapter = MotionAdapter.from_pretrained("guoyww/animatediff-motion-adapter-v1-5-3", torch_dtype=dtype, device=device, safety_checker=None)
52
 
53
  # variable data
@@ -59,8 +59,8 @@ last_motion=""
59
  seq=512
60
  fast=False
61
  fps=30
62
- width=896
63
- height=896
64
  step=50
65
  accu=7
66
 
@@ -118,7 +118,10 @@ pipe.scheduler = DDIMScheduler(
118
  timestep_spacing="trailing",
119
  steps_offset=1
120
  )
 
121
  pipe.load_ip_adapter("h94/IP-Adapter", subfolder="sdxl_models", weight_name="ip-adapter-plus_sdxl_vit-h.bin", low_cpu_mem_usage=False, ignore_mismatched_sizes=True)
 
 
122
  pipe.enable_free_init(method="butterworth", use_fast_sampling=fast)
123
 
124
  # functionality
 
47
  device = "cpu"
48
  dtype = torch.float16
49
 
50
+ base = "emilianJR/epiCRealism"
51
  adapter = MotionAdapter.from_pretrained("guoyww/animatediff-motion-adapter-v1-5-3", torch_dtype=dtype, device=device, safety_checker=None)
52
 
53
  # variable data
 
59
  seq=512
60
  fast=False
61
  fps=30
62
+ width=1024
63
+ height=1024
64
  step=50
65
  accu=7
66
 
 
118
  timestep_spacing="trailing",
119
  steps_offset=1
120
  )
121
+ pipe.enable_vae_slicing()
122
  pipe.load_ip_adapter("h94/IP-Adapter", subfolder="sdxl_models", weight_name="ip-adapter-plus_sdxl_vit-h.bin", low_cpu_mem_usage=False, ignore_mismatched_sizes=True)
123
+ pipe.enable_model_cpu_offload()
124
+ pipe.set_ip_adapter_scale(0.6)
125
  pipe.enable_free_init(method="butterworth", use_fast_sampling=fast)
126
 
127
  # functionality