Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Unconditional Diffusion
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Diffusion Project
Unconditional Diffusion
Commits
04d7a206
Commit
04d7a206
authored
1 year ago
by
Gonzalo Martin Garcia
Browse files
Options
Downloads
Patches
Plain Diff
solved minor bugs, added images to README
parent
056a9793
Branches
Branches containing commit
Tags
v2.2.0
Tags containing commit
No related merge requests found
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
trainer/train.py
+1
-0
1 addition, 0 deletions
trainer/train.py
with
1 addition
and
0 deletions
trainer/train.py
+
1
−
0
View file @
04d7a206
...
@@ -163,6 +163,7 @@ def ddpm_trainer(model,
...
@@ -163,6 +163,7 @@ def ddpm_trainer(model,
ema
.
module
.
load_state_dict
(
checkpoint
[
'
ema
'
])
ema
.
module
.
load_state_dict
(
checkpoint
[
'
ema
'
])
except
Exception
as
e
:
except
Exception
as
e
:
print
(
"
Error loading checkpoint. Exception:
"
,
e
)
print
(
"
Error loading checkpoint. Exception:
"
,
e
)
raise
# pick kl loss function
# pick kl loss function
if
model
.
kl_loss
==
'
weighted
'
:
if
model
.
kl_loss
==
'
weighted
'
:
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment