Skip to content

Commit

Permalink
fix hires steps 0 and docstring directory images
Browse files Browse the repository at this point in the history
  • Loading branch information
R3gm authored Nov 20, 2023
1 parent 7249d6a commit 40ac96e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stablepy/diffusers_vanilla/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1586,6 +1586,8 @@ def __call__(
If you use a notebook, you will be able to display the images generated with this parameter.
save_generated_images (bool, optional, defaults to True):
By default, the generated images are saved in the current location within the 'images' folder. You can disable this with this parameter.
image_storage_location (str , optional, defaults to "./images"):
The directory where the generated images are saved.
generator_in_cpu (bool, optional, defaults to False):
The generator by default is specified on the GPU. To obtain more consistent results across various environments,
it is preferable to use the generator on the CPU.
Expand Down Expand Up @@ -2376,6 +2378,9 @@ def __call__(
hires_pipe.to(self.device)
torch.cuda.empty_cache()
gc.collect()
else:
hires_params_config = {}
hires_pipe = None

# Debug info
try:
Expand Down

0 comments on commit 40ac96e

Please sign in to comment.