Skip to content

Commit 89931de

Browse files
authored
Update valid_code_release.py
1 parent 7811bf1 commit 89931de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

valid_code_release.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ def main(
9898

9999
state_dict2 = {}
100100
for key in state_dict:
101+
if 'pe' in key:
102+
continue
101103
state_dict2[key.split('module.')[1]] = state_dict[key]
102104

103105
m, u = unet.load_state_dict(state_dict2, strict=False)

0 commit comments

Comments
 (0)