mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
add missing js files
Co-authored-by: Copilot <copilot@github.com> Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
- **Internal**
|
||||
- refactor `pip` installer, thanks @awsr
|
||||
- **Fixes**
|
||||
- add missing `jquery` and `sparkline` js scripts
|
||||
- save handle already decoded images
|
||||
- ernie-image preview
|
||||
- lora false deactivate
|
||||
|
||||
Vendored
+2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -5,10 +5,12 @@ async function timer(name, elapsed) {
|
||||
}
|
||||
|
||||
async function logTimers() {
|
||||
allTimers.sort((a, b) => b[1] - a[1]);
|
||||
const filteredTimers = allTimers.filter((t) => t[1] > 50);
|
||||
debug('startupTimers', filteredTimers);
|
||||
// xhrPost(`${window.api}/log`, { debug: JSON.stringify(filteredTimers) });
|
||||
// allTimers.sort((a, b) => b[1] - a[1]);
|
||||
const filteredTimers = allTimers.filter((t) => t[1] > 100);
|
||||
const objTimers = {};
|
||||
for (const [name, elapsed] of filteredTimers) objTimers[name] = elapsed;
|
||||
debug('startupTimers', objTimers);
|
||||
// xhrPost(`${window.api}/log`, { debug: JSON.stringify(objTimers) });
|
||||
}
|
||||
|
||||
window.timer = timer;
|
||||
|
||||
@@ -369,7 +369,7 @@ class PromptEnhanceScript(scripts_manager.Script):
|
||||
sd_models.move_model(self.llm, devices.cpu, force=True)
|
||||
self.llm = None
|
||||
self.tokenizer = None
|
||||
devices.torch_gc(force=True, reason='prompt enhance model switch')
|
||||
devices.torch_gc(force=True, reason='prompt-enhance:load')
|
||||
log.debug(f'Prompt enhance: name="{self.model}" unload')
|
||||
self.model = None
|
||||
load_args = { 'pretrained_model_name_or_path': model_repo if not gguf_args else model_gguf }
|
||||
@@ -439,7 +439,7 @@ class PromptEnhanceScript(scripts_manager.Script):
|
||||
self.model = None
|
||||
self.llm = None
|
||||
self.tokenizer = None
|
||||
devices.torch_gc(force=True, reason='prompt enhance unload')
|
||||
devices.torch_gc(force=True, reason='prompt-enhance:unload')
|
||||
log.debug(f'Prompt enhance: model="{model_name}" unloaded')
|
||||
else:
|
||||
log.debug('Prompt enhance: no model loaded')
|
||||
@@ -801,7 +801,7 @@ class PromptEnhanceScript(scripts_manager.Script):
|
||||
response = f'Error: {str(e)}'
|
||||
finally:
|
||||
offload_aux('prompt_enhance')
|
||||
devices.torch_gc(force=True, reason='prompt enhance offload')
|
||||
devices.torch_gc(force=False, reason='prompt-enhance')
|
||||
t1 = time.time()
|
||||
|
||||
if isinstance(response, list):
|
||||
|
||||
Reference in New Issue
Block a user