Skip to content

Commit 9af9c7f

Browse files
committed
remove unused functions
1 parent ca8e4c0 commit 9af9c7f

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

examples/community/imagic_stable_diffusion.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,6 @@
2525

2626
logger = logging.get_logger(__name__) # pylint: disable=invalid-name
2727

28-
29-
def freeze_params(params):
30-
for param in params:
31-
param.requires_grad = False
32-
33-
34-
def unfreeze_params(params):
35-
for param in params:
36-
param.requires_grad = True
37-
38-
3928
def preprocess(image):
4029
w, h = image.size
4130
w, h = map(lambda x: x - x % 32, (w, h)) # resize to integer multiple of 32

0 commit comments

Comments
 (0)