Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files219 unmodified lines220221222223224225219 unmodified linesalpha=float(alpha), feather=float(feather), hr_steps=int(hr_steps),latent_t=latent_t, switch_upscale="crop", final="pixel",)if "lr" in info: # render()'s guard: the merge inputs exist only on the two-track pathpixels = pixel_compose(UPSCALE.vae, latent, info["lr"], info["weight"])else:219 unmodified lines220221222223224225226227228229230231219 unmodified linesalpha=float(alpha), feather=float(feather), hr_steps=int(hr_steps),latent_t=latent_t, switch_upscale="crop", final="pixel",)# The sampler's dual-resolution activations are freed on return, but the caching allocator# still holds their segments (~20 GB): hand them back before the merge or the VAE decode# starts with ~0 bytes free and dies on PyTorch's NVML assert (it OOM'd the first live run# here even at the port's measured 22-frame size). The vendored code uses this same# empty_cache() idiom at its own stage boundaries.torch.cuda.empty_cache()if "lr" in info: # render()'s guard: the merge inputs exist only on the two-track pathpixels = pixel_compose(UPSCALE.vae, latent, info["lr"], info["weight"])else:
app.py+6