Skip to content

Commit

Permalink
STYLE
Browse files Browse the repository at this point in the history
  • Loading branch information
Landanjs committed Aug 29, 2023
1 parent a66f97e commit acc0195
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion diffusion/inference/inference_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ class StableDiffusionInference():
Default: ``None``.
"""

def __init__(self, model_name: str = 'stabilityai/stable-diffusion-2-base', pretrained: bool = False, prediction_type: str = 'epsilon'):
def __init__(self,
model_name: str = 'stabilityai/stable-diffusion-2-base',
pretrained: bool = False,
prediction_type: str = 'epsilon'):
self.device = torch.cuda.current_device()

model = stable_diffusion_2(
Expand Down

0 comments on commit acc0195

Please sign in to comment.