set fallback sampler

This commit is contained in:
Vladimir Mandic
2023-06-02 07:56:51 -04:00
parent 87986a6f85
commit 22f63c42f1
7 changed files with 20 additions and 7 deletions
+11
View File
@@ -48,3 +48,14 @@ Tech that can be integrated as part of the core workflow...
- Bunch of stuff: <https://pharmapsychotic.com/tools.html>
- <https://towardsdatascience.com/mastering-memoization-in-python-dcdd8b435189>
- <https://github.com/AUTOMATIC1111/stable-diffusion-webui/compare/89f9faa...20ae71f>
- <https://github.com/vladmandic/automatic/issues/1056>
- kubernetes dnsname
- rife
- add sd-webui-agent-scheduler: <https://github.com/vladmandic/automatic/issues/559> <https://github.com/ArtVentureX/sd-webui-agent-scheduler/issues/2>
- remove sd-webui-model-converter
- update training to use interrogator
- update training to use rembg
- <https://github.com/vladmandic/automatic/discussions/1246>
- shared.info
- hints
- import-hooks
+1 -1
View File
@@ -42,7 +42,7 @@ div.gradio-container.dark > div.w-full.flex.flex-col.min-h-screen > div { backgr
.extra-networks .tab-nav .search { max-height: 2em; }
.extra-network-cards .card .actions .name { font-weight: 400; font-size: 1.2rem; }
.extra-network-cards .card { width: 18em; height: 12em; box-shadow: none; }
.extra-network-cards .card:hover { transform: scale(1.5); transition: all 0.3s ease; z-index: 99; box-shadow: none; }
.extra-network-cards .card:hover { transform: scale(1.15); transition: all 0.2s ease; z-index: 99; box-shadow: none; }
svg.feather.feather-image, .feather .feather-image { display: none }
.gap-2 { padding-top: 8px; }
.gr-box > div > div > input.gr-text-input { right: 0; width: 4em; padding: 0; top: -12px; border: none; max-height: 20px; }
+4 -2
View File
@@ -18,7 +18,7 @@ samplers_map = {}
def find_sampler_config(name):
if name is not None:
if name is not None and name != 'None':
config = all_samplers_map.get(name, None)
else:
config = all_samplers[0]
@@ -27,7 +27,9 @@ def find_sampler_config(name):
def create_sampler(name, model):
config = find_sampler_config(name)
assert config is not None, f'bad sampler name: {name}'
if config is None:
shared.log.error(f'Attempting to use unknown sampler: {name}')
config = all_samplers[0]
if backend == Backend.ORIGINAL:
sampler = config.constructor(model)
sampler.config = config