From 44efcbda0a31c5582644176e32dbe8bfdbd330c9 Mon Sep 17 00:00:00 2001 From: Ki <73854284+ki-arie@users.noreply.github.com> Date: Mon, 21 Nov 2022 06:56:57 +1300 Subject: [PATCH] Update README.md: IMAGIC example code snippet misspelling (#1346) Update README.md Minor spelling mistake. --- examples/community/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/community/README.md b/examples/community/README.md index dc35d36a95..6e0faf5746 100644 --- a/examples/community/README.md +++ b/examples/community/README.md @@ -370,7 +370,7 @@ def dummy(images, **kwargs): pipe.safety_checker = dummy images = [] -generator = th.Generator("cuda").manual_seed(0) +generator = torch.Generator("cuda").manual_seed(0) seed = 0 prompt = "a forest | a camel" @@ -652,4 +652,4 @@ prompt = "a cup" # the masked out region will be replaced with this with autocast("cuda"): image = pipe(image=image, text=text, prompt=prompt).images[0] -``` \ No newline at end of file +```