surokpro2 commited on
Commit
b8deff7
1 Parent(s): a9c88d0

Update SDLens/hooked_sd_pipeline.py

Browse files
Files changed (1) hide show
  1. SDLens/hooked_sd_pipeline.py +1 -3
SDLens/hooked_sd_pipeline.py CHANGED
@@ -31,7 +31,6 @@ class HookedDiffusionAbstractPipeline:
31
  def from_pretrained(cls, *args, **kwargs):
32
  return cls(cls.parent_cls.from_pretrained(*args, **kwargs))
33
 
34
- @spaces.GPU
35
  def run_with_hooks(self,
36
  *args,
37
  position_hook_dict: Dict[str, Union[Callable, List[Callable]]],
@@ -71,7 +70,6 @@ class HookedDiffusionAbstractPipeline:
71
  return output
72
 
73
 
74
- @spaces.GPU
75
  def run_with_cache(self,
76
  *args,
77
  positions_to_cache: List[str],
@@ -127,7 +125,6 @@ class HookedDiffusionAbstractPipeline:
127
  return output, cache_dict
128
 
129
 
130
- @spaces.GPU
131
  def run_with_hooks_and_cache(self,
132
  *args,
133
  position_hook_dict: Dict[str, Union[Callable, List[Callable]]],
@@ -312,6 +309,7 @@ class HookedDiffusionAbstractPipeline:
312
  def __setattr__(self, name, value):
313
  return setattr(self.pipe, name, value)
314
 
 
315
  def __call__(self, *args, **kwargs):
316
  return self.pipe(*args, **kwargs)
317
 
 
31
  def from_pretrained(cls, *args, **kwargs):
32
  return cls(cls.parent_cls.from_pretrained(*args, **kwargs))
33
 
 
34
  def run_with_hooks(self,
35
  *args,
36
  position_hook_dict: Dict[str, Union[Callable, List[Callable]]],
 
70
  return output
71
 
72
 
 
73
  def run_with_cache(self,
74
  *args,
75
  positions_to_cache: List[str],
 
125
  return output, cache_dict
126
 
127
 
 
128
  def run_with_hooks_and_cache(self,
129
  *args,
130
  position_hook_dict: Dict[str, Union[Callable, List[Callable]]],
 
309
  def __setattr__(self, name, value):
310
  return setattr(self.pipe, name, value)
311
 
312
+ @spaces.GPU
313
  def __call__(self, *args, **kwargs):
314
  return self.pipe(*args, **kwargs)
315