Fix: Force VRAM cleanup when switching from image to text model
- Add garbage collection and torch.cuda.empty_cache() after unloading image models - Add a small delay to allow VRAM to be freed before loading new model - This should help prevent OOM errors when switching between image and text models
Showing
Please
register
or
sign in
to comment