Unverified Commit 44efcbda authored by Ki's avatar Ki Committed by GitHub
Browse files

Update README.md: IMAGIC example code snippet misspelling (#1346)

Update README.md

Minor spelling mistake.
parent 7bbbfbfd
...@@ -370,7 +370,7 @@ def dummy(images, **kwargs): ...@@ -370,7 +370,7 @@ def dummy(images, **kwargs):
pipe.safety_checker = dummy pipe.safety_checker = dummy
images = [] images = []
generator = th.Generator("cuda").manual_seed(0) generator = torch.Generator("cuda").manual_seed(0)
seed = 0 seed = 0
prompt = "a forest | a camel" prompt = "a forest | a camel"
...@@ -652,4 +652,4 @@ prompt = "a cup" # the masked out region will be replaced with this ...@@ -652,4 +652,4 @@ prompt = "a cup" # the masked out region will be replaced with this
with autocast("cuda"): with autocast("cuda"):
image = pipe(image=image, text=text, prompt=prompt).images[0] image = pipe(image=image, text=text, prompt=prompt).images[0]
``` ```
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment