mirror of
https://github.com/nod-ai/AMD-SHARK-Studio.git
synced 2026-04-03 03:00:17 -04:00
[WEB] Fix the mlir location of stable-diffusion model (#367)
Update the location of stable-diffusion mlir file since there is some problem with iree-compile. Signed-Off-by: Gaurav Shukla <gaurav@nod-labs.com> Signed-off-by: Gaurav Shukla <gaurav@nod-labs.com>
This commit is contained in:
@@ -5,7 +5,9 @@ IMPORTER=1 ./setup_venv.sh
|
||||
source shark.venv/bin/activate
|
||||
pip install diffusers scipy
|
||||
cd web
|
||||
wget -O models_mlir/stable_diffusion.mlir https://storage.googleapis.com/shark_tank/prashant_nod/stable_diff/stable_diff_torch.mlir
|
||||
wget -O stable_diffusion.mlir https://storage.googleapis.com/shark_tank/prashant_nod/stable_diff/stable_diff_torch.mlir
|
||||
python index.py
|
||||
```
|
||||
This will launch a gradio server with a public URL.
|
||||
|
||||
This will launch a gradio server with a public URL like:
|
||||
Running on public URL: https://xxxxx.gradio.app
|
||||
|
||||
@@ -84,7 +84,7 @@ with gr.Blocks() as shark_web:
|
||||
iters = gr.Number(label="Steps", value=2)
|
||||
mlir_loc = gr.Textbox(
|
||||
label="Location of MLIR(Relative to SHARK/web/)",
|
||||
value="./models_mlir/stable_diffusion.mlir",
|
||||
value="./stable_diffusion.mlir",
|
||||
)
|
||||
device = gr.Textbox(label="Device", value="vulkan")
|
||||
stable_diffusion = gr.Button("Generate image from prompt")
|
||||
|
||||
Reference in New Issue
Block a user