myniu commited on
Commit
6d12ad6
1 Parent(s): 903bfce
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -22,7 +22,9 @@ from packaging import version
22
 
23
  from accelerate.utils import set_seed
24
  from transformers import CLIPImageProcessor, CLIPVisionModelWithProjection
25
-
 
 
26
  from diffusers import AutoencoderKLTemporalDecoder, EulerDiscreteScheduler
27
  from diffusers.utils import check_min_version
28
  from diffusers.utils.import_utils import is_xformers_available
@@ -153,10 +155,6 @@ class Drag:
153
  @spaces.GPU(duration=100)
154
  def init_models(self, pretrained_model_name_or_path, resume_from_checkpoint, weight_dtype, device='cuda', enable_xformers_memory_efficient_attention=False, allow_tf32=False):
155
 
156
- from models.unet_spatio_temporal_condition_controlnet import UNetSpatioTemporalConditionControlNetModel
157
- from pipeline.pipeline import FlowControlNetPipeline
158
- from models.svdxt_featureflow_forward_controlnet_s2d_fixcmp_norefine import FlowControlNet, CMP_demo
159
-
160
  print('start loading models...')
161
  # Load scheduler, tokenizer and models.
162
  image_encoder = CLIPVisionModelWithProjection.from_pretrained(
 
22
 
23
  from accelerate.utils import set_seed
24
  from transformers import CLIPImageProcessor, CLIPVisionModelWithProjection
25
+ from models.unet_spatio_temporal_condition_controlnet import UNetSpatioTemporalConditionControlNetModel
26
+ from pipeline.pipeline import FlowControlNetPipeline
27
+ from models.svdxt_featureflow_forward_controlnet_s2d_fixcmp_norefine import FlowControlNet, CMP_demo
28
  from diffusers import AutoencoderKLTemporalDecoder, EulerDiscreteScheduler
29
  from diffusers.utils import check_min_version
30
  from diffusers.utils.import_utils import is_xformers_available
 
155
  @spaces.GPU(duration=100)
156
  def init_models(self, pretrained_model_name_or_path, resume_from_checkpoint, weight_dtype, device='cuda', enable_xformers_memory_efficient_attention=False, allow_tf32=False):
157
 
 
 
 
 
158
  print('start loading models...')
159
  # Load scheduler, tokenizer and models.
160
  image_encoder = CLIPVisionModelWithProjection.from_pretrained(