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
chenpangpang
PhotoMaker-V2
Commits
e9040775
Commit
e9040775
authored
Nov 21, 2024
by
chenpangpang
Browse files
feat: 删除spaces依赖
parent
1df1993a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
PhotoMaker-V2/app.py
PhotoMaker-V2/app.py
+0
-3
No files found.
PhotoMaker-V2/app.py
View file @
e9040775
import
spaces
import
torch
import
torch
import
torchvision.transforms.functional
as
TF
import
torchvision.transforms.functional
as
TF
import
numpy
as
np
import
numpy
as
np
...
@@ -79,7 +77,6 @@ pipe.fuse_lora()
...
@@ -79,7 +77,6 @@ pipe.fuse_lora()
pipe
.
to
(
device
)
pipe
.
to
(
device
)
@
spaces
.
GPU
()
def
generate_image
(
def
generate_image
(
upload_images
,
upload_images
,
prompt
,
prompt
,
...
...
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