Compare commits
3 Commits
87f34cf369
...
e5fdcff973
Author | SHA1 | Date |
---|---|---|
Sean Sube | e5fdcff973 | |
Sean Sube | f80a7bbb83 | |
Sean Sube | cdf6f46f04 |
|
@ -1,6 +1,14 @@
|
|||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Python Debugger: Current File",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"args": ["--name", "outpaint"],
|
||||
"console": "integratedTerminal"
|
||||
},
|
||||
{
|
||||
"name": "Python: Remote Attach",
|
||||
"type": "python",
|
||||
|
@ -16,6 +24,16 @@
|
|||
}
|
||||
],
|
||||
"justMyCode": false
|
||||
},
|
||||
{
|
||||
"name": "Python: Local Attach",
|
||||
"type": "python",
|
||||
"request": "attach",
|
||||
"connect": {
|
||||
"host": "127.0.0.1",
|
||||
"port": 5679
|
||||
},
|
||||
"justMyCode": false
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
#! /bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
if [ -n "${VIRTUAL_ENV+set}" ]; then
|
||||
echo "Using current virtual env..."
|
||||
else
|
||||
if [ -d "onnx_env" ]; then
|
||||
echo "Loading existing virtual env..."
|
||||
. onnx_env/bin/activate
|
||||
else
|
||||
echo "Creating new virtual env..."
|
||||
python -m venv onnx_env
|
||||
. onnx_env/bin/activate
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Downloading and converting models to ONNX format..."
|
||||
python3 -m onnx_web.convert \
|
||||
--correction \
|
||||
--diffusion \
|
||||
--networks \
|
||||
--sources \
|
||||
--upscaling \
|
||||
--extras=${ONNX_WEB_EXTRA_MODELS:-../models/extras.json} \
|
||||
--token=${HF_TOKEN:-} \
|
||||
${ONNX_WEB_EXTRA_ARGS:-}
|
||||
|
|
@ -328,6 +328,7 @@ class TestInpaintPipeline(unittest.TestCase):
|
|||
1,
|
||||
unet_tile=64,
|
||||
),
|
||||
border=Border.even(0),
|
||||
size=Size(*source.size),
|
||||
upscale=UpscaleParams("test"),
|
||||
highres=HighresParams(False, 1, 0, 0),
|
||||
|
@ -339,7 +340,6 @@ class TestInpaintPipeline(unittest.TestCase):
|
|||
params,
|
||||
source,
|
||||
mask,
|
||||
Border.even(0),
|
||||
noise_source_uniform,
|
||||
mask_filter_none,
|
||||
"white",
|
||||
|
@ -373,6 +373,7 @@ class TestInpaintPipeline(unittest.TestCase):
|
|||
1,
|
||||
unet_tile=64,
|
||||
),
|
||||
border=Border.even(0),
|
||||
size=Size(*source.size),
|
||||
upscale=UpscaleParams("test"),
|
||||
highres=HighresParams(False, 1, 0, 0),
|
||||
|
@ -384,7 +385,6 @@ class TestInpaintPipeline(unittest.TestCase):
|
|||
params,
|
||||
source,
|
||||
mask,
|
||||
Border.even(0),
|
||||
noise_source_uniform,
|
||||
mask_filter_none,
|
||||
"black",
|
||||
|
|
Loading…
Reference in New Issue