This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"LoRA_type": "Standard", | |
"adaptive_noise_scale": 0.006, | |
"additional_parameters": "", | |
"block_alphas": "", | |
"block_dims": "", | |
"block_lr_zero_threshold": "", | |
"bucket_no_upscale": true, | |
"bucket_reso_steps": 64, | |
"cache_latents": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import cv2 | |
import os | |
import argparse | |
from pathlib import Path | |
from cv2.ximgproc import guidedFilter | |
def main(args): | |
input = Path(args.input_file_or_dir) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from collections import defaultdict | |
import torch | |
import numpy as np | |
from PIL import Image | |
import library.model_util as model_util | |
from torchvision import transforms | |
DEVICE_CUDA = torch.device("cuda:0") |