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
gaoqiong
MIGraphX
Commits
6090ad68
Commit
6090ad68
authored
Dec 05, 2023
by
Attila Dusnoki
Browse files
fix wrong exit call in examples
parent
0fdb72ac
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
examples/diffusion/python_stable_diffusion_21/sd21.ipynb
examples/diffusion/python_stable_diffusion_21/sd21.ipynb
+1
-1
examples/diffusion/python_stable_diffusion_21/txt2img.py
examples/diffusion/python_stable_diffusion_21/txt2img.py
+2
-1
examples/transformers/python_whisper/asr.py
examples/transformers/python_whisper/asr.py
+2
-1
examples/transformers/python_whisper/whisper.ipynb
examples/transformers/python_whisper/whisper.ipynb
+1
-1
No files found.
examples/diffusion/python_stable_diffusion_21/sd21.ipynb
View file @
6090ad68
...
...
@@ -125,7 +125,7 @@
" mgx.save(model, f\"{file}.mxr\", format=\"msgpack\")\n",
" else:\n",
" print(f\"No {name} model found. Please verify the path is correct and re-try, or re-download model.\")\n",
"
o
s.exit(1)\n",
"
sy
s.exit(1)\n",
" return model"
]
},
...
...
examples/diffusion/python_stable_diffusion_21/txt2img.py
View file @
6090ad68
...
...
@@ -28,6 +28,7 @@ from PIL import Image
import
migraphx
as
mgx
import
numpy
as
np
import
os
import
sys
import
torch
import
time
from
functools
import
wraps
...
...
@@ -177,7 +178,7 @@ class StableDiffusionMGX():
mgx
.
save
(
model
,
f
"
{
file
}
.mxr"
,
format
=
"msgpack"
)
else
:
print
(
f
"No
{
name
}
model found. Please download it and re-try."
)
o
s
.
exit
(
1
)
sy
s
.
exit
(
1
)
return
model
@
measure
...
...
examples/transformers/python_whisper/asr.py
View file @
6090ad68
...
...
@@ -30,6 +30,7 @@ from pydub import AudioSegment
import
migraphx
as
mgx
import
os
import
numpy
as
np
import
sys
import
time
from
functools
import
wraps
...
...
@@ -118,7 +119,7 @@ class WhisperMGX():
mgx
.
save
(
model
,
f
"
{
file
}
.mxr"
,
format
=
"msgpack"
)
else
:
print
(
f
"No
{
name
}
model found. Please download it and re-try."
)
o
s
.
exit
(
1
)
sy
s
.
exit
(
1
)
return
model
@
property
...
...
examples/transformers/python_whisper/whisper.ipynb
View file @
6090ad68
...
...
@@ -125,7 +125,7 @@
" mgx.save(model, f\"{file}.mxr\", format=\"msgpack\")\n",
" else:\n",
" print(f\"No {name} model found. Please download it and re-try.\")\n",
"
o
s.exit(1)\n",
"
sy
s.exit(1)\n",
" return model"
]
},
...
...
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