mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
fix remote vae for flux
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
+2
-1
@@ -46,7 +46,8 @@
|
||||
- fix **RunPod** memory limit reporting
|
||||
- fix flux ipadapter with start/stop values
|
||||
- fix progress api `eta_relative`
|
||||
- fix `insightface` loader
|
||||
- fix `insightface` loader
|
||||
- fix remove vae for flux.1
|
||||
- **IPEX**
|
||||
- add `--upgrade` to torch_command when using `--use-nightly` for *ipex* and *rocm*
|
||||
- add xpu to profiler
|
||||
|
||||
@@ -42,7 +42,9 @@ def remote_decode(latents: torch.Tensor, width: int = 0, height: int = 0, model_
|
||||
|
||||
for i in range(latents.shape[0]):
|
||||
try:
|
||||
latent = latents[i].detach().clone().to(device=devices.cpu, dtype=devices.dtype).unsqueeze(0)
|
||||
latent = latents[i].detach().clone().to(device=devices.cpu, dtype=devices.dtype)
|
||||
if model_type != 'f1':
|
||||
latent = latent.unsqueeze(0)
|
||||
params = {
|
||||
"input_tensor_type": "binary",
|
||||
"shape": list(latent.shape),
|
||||
@@ -76,7 +78,7 @@ def remote_decode(latents: torch.Tensor, width: int = 0, height: int = 0, model_
|
||||
timeout=300,
|
||||
)
|
||||
if not response.ok:
|
||||
shared.log.error(f'Decode: type="remote" model={model_type} code={response.status_code} headers={response.headers} {response.json()}')
|
||||
shared.log.error(f'Decode: type="remote" model={model_type} code={response.status_code} shape={latent.shape} url="{url}" args={params} headers={response.headers} response={response.json()}')
|
||||
else:
|
||||
content += len(response.content)
|
||||
if shared.opts.remote_vae_type == 'raw':
|
||||
|
||||
Reference in New Issue
Block a user