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
af3e110d
Commit
af3e110d
authored
2 years ago
by
Tobias Seibel
Browse files
Options
Downloads
Patches
Plain Diff
storing imagetensor and normalized images
parent
1b7f595b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/all_unets.py
+3
-1
3 additions, 1 deletion
models/all_unets.py
with
3 additions
and
1 deletion
models/all_unets.py
+
3
−
1
View file @
af3e110d
...
...
@@ -69,7 +69,7 @@ class UNet_Res(nn.Module):
# first two conv layers
x
=
self
.
first_conv
(
input
)
+
t_emb0
[:,:,
None
,
None
]
#timemb
skip1
=
x
skip1
,
x
=
self
.
down1
(
x
,
t_emb1
)
skip2
,
x
=
self
.
down2
(
x
,
t_emb2
)
skip3
,
x
=
self
.
down3
(
x
,
t_emb3
)
...
...
@@ -238,3 +238,5 @@ class MidBlock_Res(nn.Module):
x
=
self
.
convblock1
(
x
,
t
)
return
self
.
convblock2
(
x
,
t
)
This diff is collapsed.
Click to expand it.
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