Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
1a099e5e
".github/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "03e51269782bd79e453232d1d3417c77e5412819"
Commit
1a099e5e
authored
Jun 21, 2022
by
anton-l
Browse files
make einops optional for RL
parent
b09b152f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/diffusers/models/unet_rl.py
src/diffusers/models/unet_rl.py
+6
-2
No files found.
src/diffusers/models/unet_rl.py
View file @
1a099e5e
...
@@ -5,8 +5,12 @@ import math
...
@@ -5,8 +5,12 @@ import math
import
torch
import
torch
import
torch.nn
as
nn
import
torch.nn
as
nn
import
einops
try
:
from
einops.layers.torch
import
Rearrange
import
einops
from
einops.layers.torch
import
Rearrange
except
:
print
(
"Einops is not installed"
)
pass
from
..configuration_utils
import
ConfigMixin
from
..configuration_utils
import
ConfigMixin
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment