-
-
Notifications
You must be signed in to change notification settings - Fork 14
How to ONNX
ForserX edited this page May 4, 2023
·
9 revisions
Before starting the generation, it is necessary to convert from the original model to ONNX format.
- Open convert wnd
- Drop your (.ckpt/.safetensors/diffusers) model into form.
- Check that the parameters are correct. 1 - the format of your model. 2. ONNX
- Click to convert.
- Wait while the program reports readiness
File/Folder | Useful information |
---|---|
cnet | unet for ControlNet |
feature_extractor | |
safety_checker | nsfw checker |
scheduler | |
text_encoder | |
tokenizer | |
unet | |
vae_decoder | Default model VAE |
vae_encoder | Default model VAE |
model_index.json | Base model info |
logo.(png/jpg) | Optional: Preview pic |
All models are forcibly optimized in float16 so that you have enough VRAM to use Textual Inversion/LoRA/LyCORIS/etc...
- Setup prompt
- Setup negative prompt
- (Optional) Set sampler, size, steps count, image count, etc...
- (Optional) Set upscaler type and up-value
- Click "Make!" button
- Execute from "Text to Image" items 1-4
- Click "From Image"
- Set denoising value
- Click "Make!" button
- Execute from "Text to Image" items 1-4
- Click "From Image"
- (Optional) Set denoising value
- Make mask (Paint, Paint.NET, Photoshop, Gimp, etc...)
- Drop mask to mask box (*.png file)
- Click "Make!" button
- Execute from "Text to Image" items 1-4
- Click "From Image"
- (Optional) Set denoising value
- Enable "Pix2Pix"
- Click "Make!" button
- Execute from "Text to Image" items 1-4
- Enable ControlNet
- Set mode
- Set input pictures
- Face: models/OpenFaces
- Pose: models/OpenPose
- Other: models/controlnet/gen/(mode name)
- Load image
- Set preset type
- Make preset
LoRA - Low-Rank Adaptation of Large Language Models LyCORIS - Lora beYond Conventional methods, Other Rank adaptation Implementations for Stable diffusion.
Name | Format |
---|---|
LoRA | 1x1 |
1x1 + int alpha | |
3x3 | |
3x3 + int alpha | |
LyCORIS | Conventional LoRA |
LoHA |
- Drop your .safetensors file to models/lora/
- (Optional) You can make subdirectory
- Select subdirectory
- Select LoRA model
- Set LoRA apply weight
- Click "Apply"
- Сoncept
- String2Token
- Embeddings Params
- Drop your .pt/.safetensors file to models/
- Select your file
- Set TI weight (1-200)
- Apply tag to prompt
- (Optional) Delete the tag if it is no longer needed.
- (Optional) Move tag to negative prompt if you need it