Skip to content

Commit

Permalink
🐛 fix bug introduced in 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nateraw committed Dec 5, 2022
1 parent c1871c1 commit 031f603
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stable_diffusion_videos/image_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import json
from pathlib import Path
from huggingface_hub import CommitOperationAdd, create_repo, create_commit
from diffusers import __version__ as diffusers_version
import torch

from .upsampling import RealESRGANModel
Expand Down Expand Up @@ -170,7 +171,7 @@ def generate_images(
width=width,
scheduler=dict(pipeline.scheduler.config),
tiled=pipeline.tiled,
diffusers_version=pipeline.config._diffusers_version,
diffusers_version=diffusers_version,
device_name=torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'unknown',
)
prompt_config_path.write_text(json.dumps(cfg, indent=2, sort_keys=False))
Expand Down

0 comments on commit 031f603

Please sign in to comment.