Skip to content

Commit 44efcbd

Browse files
authored
Update README.md: IMAGIC example code snippet misspelling (huggingface#1346)
Update README.md Minor spelling mistake.
1 parent 7bbbfbf commit 44efcbd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/community/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def dummy(images, **kwargs):
370370
pipe.safety_checker = dummy
371371

372372
images = []
373-
generator = th.Generator("cuda").manual_seed(0)
373+
generator = torch.Generator("cuda").manual_seed(0)
374374

375375
seed = 0
376376
prompt = "a forest | a camel"
@@ -652,4 +652,4 @@ prompt = "a cup" # the masked out region will be replaced with this
652652

653653
with autocast("cuda"):
654654
image = pipe(image=image, text=text, prompt=prompt).images[0]
655-
```
655+
```

0 commit comments

Comments
 (0)