Skip to content

Commit

Permalink
fix(scripts): correct model paths in test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Apr 17, 2023
1 parent 64ea060 commit e12f3c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions api/scripts/test-diffusers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
height = 512
width = 512

model = path.join('..', '..', 'models', 'stable-diffusion-onnx-v1-5')
model = path.join('..', 'models', 'stable-diffusion-onnx-v1-5')
prompt = 'an astronaut eating a hamburger'
output = path.join('..', '..', 'outputs', 'test.png')
output = path.join('..', 'outputs', 'test.png')

print('generating test image...')
pipe = OnnxStableDiffusionPipeline.from_pretrained(model, provider='DmlExecutionProvider', safety_checker=None)
Expand Down
6 changes: 3 additions & 3 deletions api/scripts/test-resrgan.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
height = 512
width = 512

esrgan = path.join('..', '..', 'models', 'RealESRGAN_x4plus.onnx')
output = path.join('..', '..', 'outputs', 'test.png')
upscale = path.join('..', '..', 'outputs', 'test-large.png')
esrgan = path.join('..', 'models', 'RealESRGAN_x4plus.onnx')
output = path.join('..', 'outputs', 'test.png')
upscale = path.join('..', 'outputs', 'test-large.png')

print('upscaling test image...')
session = ort.InferenceSession(esrgan, providers=['DmlExecutionProvider'])
Expand Down

0 comments on commit e12f3c2

Please sign in to comment.