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
ModelZoo
ImageGenerate_paddle
Commits
9a05adca
Commit
9a05adca
authored
Nov 02, 2023
by
dengjb
Browse files
fixed readme
parent
3b78e547
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
.gitignore
.gitignore
+1
-0
detect.py
detect.py
+31
-0
No files found.
.gitignore
View file @
9a05adca
...
...
@@ -9,4 +9,5 @@ dist/
*.tar.gz
*.zip
docs/site
.idea/
__pycache__
\ No newline at end of file
detect.py
0 → 100644
View file @
9a05adca
def
start_end
(
name
,
func
):
print
(
f
'------- test
{
name
}
start -------'
)
func
.
on_run_button_click
(
'test'
)
print
(
f
'------- test
{
name
}
finished -------'
)
if
__name__
==
'__main__'
:
from
ui
import
StableDiffusionUI_text_inversion
from
ui.config
import
config
from
ui.StableDiffusionUI_txt2img
import
StableDiffusionUI_txt2img
from
ui.StableDiffusionUI_img2img
import
StableDiffusionUI_img2img
from
ui.SuperResolutionUI
import
SuperResolutionUI
gui_txt2img
=
StableDiffusionUI_txt2img
(
**
config
[
'txt2img'
]
)
gui_img2img
=
StableDiffusionUI_img2img
(
**
config
[
'img2img'
]
)
gui_train_text_inversion
=
StableDiffusionUI_text_inversion
(
**
config
[
'train_text_inversion'
]
)
start_end
(
'txt2img'
,
gui_txt2img
)
start_end
(
'img2img'
,
gui_img2img
)
start_end
(
'txt2img train'
,
gui_train_text_inversion
)
\ No newline at end of file
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