2023-02-04 23:16:36 +00:00
|
|
|
# Development and Testing
|
|
|
|
|
|
|
|
## Contents
|
|
|
|
|
|
|
|
- [Development and Testing](#development-and-testing)
|
|
|
|
- [Contents](#contents)
|
|
|
|
- [Development](#development)
|
|
|
|
- [API](#api)
|
|
|
|
- [GUI](#gui)
|
|
|
|
- [Updating Github Pages](#updating-github-pages)
|
|
|
|
- [Testing](#testing)
|
|
|
|
- [Pre-Release Test Plan](#pre-release-test-plan)
|
2023-02-05 23:40:23 +00:00
|
|
|
- [Known Issues](#known-issues)
|
2023-02-04 23:16:36 +00:00
|
|
|
|
|
|
|
## Development
|
|
|
|
|
|
|
|
### API
|
|
|
|
|
|
|
|
- TODO: testing
|
|
|
|
- TODO: lint/style
|
|
|
|
|
|
|
|
### GUI
|
|
|
|
|
|
|
|
Run `make ci` to build the bundle.
|
|
|
|
|
|
|
|
#### Updating Github Pages
|
|
|
|
|
|
|
|
Checkout the `gh-pages` branch and run the `copy-bundle.sh` script, assuming you have the project
|
|
|
|
checked out to a directory named `onnx-web`.
|
|
|
|
|
|
|
|
You can also clone the GH pages branch into its own directory to avoid switching between them.
|
|
|
|
|
|
|
|
## Testing
|
|
|
|
|
|
|
|
### Pre-Release Test Plan
|
|
|
|
|
|
|
|
This is the test plan for manual pre-release testing and should exercise all of the major features.
|
|
|
|
|
|
|
|
- txt2img
|
|
|
|
- 256x256 with SD v1.5
|
2023-02-06 00:12:48 +00:00
|
|
|
- should fail: neon blobs
|
2023-02-04 23:16:36 +00:00
|
|
|
- 512x512 with SD v1.5
|
|
|
|
- DPM Multi
|
2023-02-06 00:12:48 +00:00
|
|
|
- should work
|
2023-02-04 23:16:36 +00:00
|
|
|
- Euler A
|
2023-02-06 00:12:48 +00:00
|
|
|
- should work
|
|
|
|
- 512x512 with SD v1.5
|
2023-02-04 23:16:36 +00:00
|
|
|
- 768x768 with SD v2.1
|
2023-02-06 00:12:48 +00:00
|
|
|
- should work, given sufficient memory
|
|
|
|
- extra models
|
|
|
|
- Knollingcase
|
|
|
|
- should work
|
|
|
|
- OpenJourney
|
|
|
|
- should work
|
2023-02-04 23:16:36 +00:00
|
|
|
- img2img
|
|
|
|
- 256x256 input
|
2023-02-06 00:12:48 +00:00
|
|
|
- TODO
|
2023-02-04 23:16:36 +00:00
|
|
|
- 512x512 input
|
2023-02-06 00:12:48 +00:00
|
|
|
- should work
|
2023-02-04 23:16:36 +00:00
|
|
|
- 1024x768 input
|
2023-02-06 00:12:48 +00:00
|
|
|
- should work
|
2023-02-04 23:16:36 +00:00
|
|
|
- inpaint
|
|
|
|
- outpaint
|
2023-02-06 00:12:48 +00:00
|
|
|
- 0 all sides
|
|
|
|
- should work
|
2023-02-04 23:16:36 +00:00
|
|
|
- 256 all sides
|
2023-02-06 00:12:48 +00:00
|
|
|
- should work
|
2023-02-04 23:16:36 +00:00
|
|
|
- 512 top and bottom, 0 left and right
|
2023-02-06 00:12:48 +00:00
|
|
|
- should work
|
2023-02-04 23:16:36 +00:00
|
|
|
- 512 left and right, 0 top and bottom
|
2023-02-06 00:12:48 +00:00
|
|
|
- should work
|
2023-02-04 23:16:36 +00:00
|
|
|
- upscale
|
|
|
|
- Real ESRGAN
|
2023-02-06 00:12:48 +00:00
|
|
|
- with CodeFormer
|
|
|
|
- should work
|
|
|
|
- with GFPGAN
|
|
|
|
- should work
|
2023-02-04 23:16:36 +00:00
|
|
|
- without face correction
|
2023-02-06 00:12:48 +00:00
|
|
|
- should work
|
|
|
|
- using x2 model and x4 scale
|
|
|
|
- should fail: tiles
|
|
|
|
- using x4 model and x2 scale
|
|
|
|
- should fail: tiles
|
|
|
|
- using v3 model and x2 scale
|
|
|
|
- using v3 model and x4 scale
|
2023-02-04 23:16:36 +00:00
|
|
|
- Stable Diffusion
|
2023-02-06 00:12:48 +00:00
|
|
|
- using x2 scale
|
|
|
|
- should fail: tiles
|
|
|
|
- using x4 scale
|
|
|
|
- should work
|
|
|
|
- with CodeFormer
|
|
|
|
- should work
|
|
|
|
- with GFPGAN
|
|
|
|
- should work but doesn't: https://github.com/ssube/onnx-web/issues/87
|
2023-02-04 23:16:36 +00:00
|
|
|
- without face correction
|
2023-02-06 00:12:48 +00:00
|
|
|
- should work
|
2023-02-04 23:16:36 +00:00
|
|
|
- interactions
|
2023-02-06 00:12:48 +00:00
|
|
|
- generate a new image
|
|
|
|
- should request and then load an image from the server
|
|
|
|
- delete a pending image
|
|
|
|
- should remove a single image and leave the rest
|
|
|
|
- delete a finished image
|
|
|
|
- should remove a single image and leave the rest
|
|
|
|
- copy an image to img2img
|
|
|
|
- should switch to the img2img tab
|
|
|
|
- should populate the image source
|
|
|
|
- the generate button should be enabled
|
|
|
|
- copy an image to inpaint
|
|
|
|
- should switch to the inpaint tab
|
|
|
|
- should populate the image source
|
|
|
|
- the generate button should be enabled
|
|
|
|
|
|
|
|
Repeat with and without LPW enabled. Feature combinations marked `should work` must produce a valid image for the
|
|
|
|
prompt, within a reasonable margin of creative freedom. Feature combinations marked `should fail` are known to produce
|
|
|
|
neon blobs, out of place tiles, and errors.
|
2023-02-05 23:40:23 +00:00
|
|
|
|
|
|
|
### Known Issues
|
|
|
|
|
2023-02-06 00:12:48 +00:00
|
|
|
- images of 256x256 or smaller will produce neon blobs
|
2023-02-05 23:40:23 +00:00
|
|
|
- inpaint does not work with LPW
|