1
0
Fork 0
onnx-web/api/onnx_web/__init__.py

78 lines
1.8 KiB
Python
Raw Normal View History

2023-01-28 23:15:42 +00:00
from . import logging
from .chain import (
correct_codeformer,
correct_gfpgan,
upscale_resrgan,
upscale_stable_diffusion,
)
from .convert.diffusion.lora import blend_loras
from .convert.diffusion.textual_inversion import blend_textual_inversions
from .diffusers.load import load_pipeline, optimize_pipeline
from .diffusers.utils import get_tile_latents, get_latents_from_seed
2023-03-05 04:25:49 +00:00
from .diffusers.run import (
2023-02-19 00:55:42 +00:00
run_blend_pipeline,
2023-02-05 13:53:26 +00:00
run_img2img_pipeline,
run_inpaint_pipeline,
run_txt2img_pipeline,
2023-02-19 00:55:42 +00:00
run_upscale_pipeline,
)
2023-03-05 04:25:49 +00:00
from .diffusers.stub_scheduler import StubScheduler
2023-04-01 16:26:10 +00:00
from .diffusers.upscale import run_upscale_correction
from .image.utils import (
2023-02-05 13:53:26 +00:00
expand_image,
valid_image,
)
from .image.mask_filter import (
2023-02-05 13:53:26 +00:00
mask_filter_gaussian_multiply,
mask_filter_gaussian_screen,
mask_filter_none,
)
from .image.noise_source import (
2023-02-05 13:53:26 +00:00
noise_source_fill_edge,
noise_source_fill_mask,
noise_source_gaussian,
noise_source_histogram,
noise_source_normal,
noise_source_uniform,
)
from .image.source_filter import (
source_filter_canny,
source_filter_depth,
source_filter_hed,
source_filter_mlsd,
source_filter_normal,
source_filter_openpose,
source_filter_scribble,
source_filter_segment,
2023-02-19 00:55:42 +00:00
)
from .onnx import OnnxRRDBNet, OnnxTensor
2023-02-19 00:55:42 +00:00
from .params import (
Border,
2023-02-26 05:49:39 +00:00
DeviceParams,
2023-02-19 00:55:42 +00:00
ImageParams,
Param,
Point,
Size,
StageParams,
UpscaleParams,
)
from .server import (
ModelCache,
2023-02-19 02:28:21 +00:00
ServerContext,
2023-02-19 00:55:42 +00:00
apply_patch_basicsr,
apply_patch_codeformer,
apply_patch_facexlib,
apply_patches,
)
2023-01-16 01:34:51 +00:00
from .utils import (
2023-02-05 13:53:26 +00:00
base_join,
get_and_clamp_float,
get_and_clamp_int,
get_from_list,
get_from_map,
get_not_empty,
)
2023-02-26 05:49:39 +00:00
from .worker import (
DevicePoolExecutor,
2023-02-26 20:15:30 +00:00
)