mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-01-31 05:19:45 +00:00
10 lines
188 B
Python
10 lines
188 B
Python
import os
|
|
import json
|
|
|
|
dir_path = os.path.dirname(__file__)
|
|
|
|
|
|
def guess_vae_config(state_dict):
|
|
p = os.path.join(dir_path, 'sd15.json')
|
|
return json.load(open(p, encoding='utf-8'))
|