Skip to content

[Bug]: vram not released after unable to create image due to lack of vram #12511

@hungtooc

Description

@hungtooc

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

everything worked fine until i created an image with a high configuration that my machine couldn't handle, of course the image wouldn't be able to create but then the vram wasn't freed.

Steps to reproduce the problem

use --api and create txt2img via api
created an image with a high configuration that my machine couldn't handle, usually create very high resolution images

What should have happened?

image cannot be created, then release the vram

Version or Commit where the problem happens

version: v1.5.1  •  python: 3.11.3  •  torch: 2.1.0.dev20230727+cu121  •  xformers: N/A  •  gradio: 3.32.0  •  checkpoint: ed989d673d

What Python version are you running on ?

Python 3.11.x (above, no supported yet)

What platforms do you use to access the UI ?

Linux

What device are you running WebUI on?

Other GPUs

Cross attention optimization

None

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--api

List of extensions

Console logs

out of vram

Additional information

none

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-reportReport of a bug, yet to be confirmed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions