You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python: 3.10 and followed installation directions for SD
Branch: [if git status says anything other than "On branch main" paste it here]
Commit: [run git show and paste the line that starts with "Merge" here]
commit 751283a (HEAD -> main, origin/main, origin/HEAD)
Author: Kevin Gibbons bakkot@gmail.com
Date: Sat Sep 3 23:34:20 2022 -0700
diff --git a/ldm/simplet2i.py b/ldm/simplet2i.py
index c32f57c..3b4cf6c 100644
--- a/ldm/simplet2i.py
+++ b/ldm/simplet2i.py
@@ -286,7 +286,7 @@ class T2I:
0.0 <= variation_amount <= 1.0
), '-v --variation_amount must be in [0.0, 1.0]'
if len(with_variations) > 0 or variation_amount > 1.0:
if len(with_variations) > 0 or variation_amount > 0.0:
assert seed is not None,\
'seed must be specified when using with_variations'
if variation_amount == 0.0:
@@ -336,6 +336,7 @@ class T2I:
callback=step_callback,
)
else:
@@ -351,11 +352,11 @@ class T2I:
if variation_amount > 0 or len(with_variations) > 0:
:
Describe the bug
i load dream.py successfully,
i enter a prompt
dream> a fantastic alien octopus, ornate, in space -W1024 -H960 -s100 -n12
terminal returns
Generating: 0%| | 0/12 [00:00<?, ?it/s] DEBUG: seed at make_image() invocation time =3084786643
/Users/oneiga/stable-diffusion/ldm/modules/embedding_manager.py:152: UserWarning: The operator 'aten::nonzero' is not currently supported on the MPS backend and will fall back to run on the CPU. This may have performance implications. (Triggered internally at /Users/runner/work/_temp/anaconda/conda-bld/pytorch_1662275773783/work/aten/src/ATen/mps/MPSFallback.mm:11.)
placeholder_idx = torch.where(
/AppleInternal/Library/BuildRoots/8d3bda53-8d9c-11ec-abd7-fa6a1964e34e/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSCore/Types/MPSNDArray.mm:705: failed assertion `[MPSNDArray initWithDevice:descriptor:] Error: product of dimension sizes > 2**31'
zsh: abort python scripts/dream.py --full_precision
(ldm) oneiga@Adriens-MacBook-Pro stable-diffusion % /Users/oneiga/miniconda3/envs/ldm/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
Describe your environment
GPU: mps
VRAM: 32GB (m1 max
CPU arch: Arm M1 Max 32GB
OS: MacOS latest
Python: 3.10 and followed installation directions for SD
Branch: [if
git statussays anything other than "On branch main" paste it here]Commit: [run
git showand paste the line that starts with "Merge" here]commit 751283a (HEAD -> main, origin/main, origin/HEAD)
Author: Kevin Gibbons bakkot@gmail.com
Date: Sat Sep 3 23:34:20 2022 -0700
fix img2img variations/MPS (fix img2img variations/MPS #353)
fix img2img variations
fix assert for variation_amount
diff --git a/ldm/simplet2i.py b/ldm/simplet2i.py
index c32f57c..3b4cf6c 100644
--- a/ldm/simplet2i.py
+++ b/ldm/simplet2i.py
@@ -286,7 +286,7 @@ class T2I:
0.0 <= variation_amount <= 1.0
), '-v --variation_amount must be in [0.0, 1.0]'
@@ -336,6 +336,7 @@ class T2I:
callback=step_callback,
)
else:
@@ -351,11 +352,11 @@ class T2I:
if variation_amount > 0 or len(with_variations) > 0:
:
Describe the bug
i load dream.py successfully,
i enter a prompt
dream> a fantastic alien octopus, ornate, in space -W1024 -H960 -s100 -n12
terminal returns
Generating: 0%| | 0/12 [00:00<?, ?it/s] DEBUG: seed at make_image() invocation time =3084786643
/Users/oneiga/stable-diffusion/ldm/modules/embedding_manager.py:152: UserWarning: The operator 'aten::nonzero' is not currently supported on the MPS backend and will fall back to run on the CPU. This may have performance implications. (Triggered internally at /Users/runner/work/_temp/anaconda/conda-bld/pytorch_1662275773783/work/aten/src/ATen/mps/MPSFallback.mm:11.)
placeholder_idx = torch.where(
/AppleInternal/Library/BuildRoots/8d3bda53-8d9c-11ec-abd7-fa6a1964e34e/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSCore/Types/MPSNDArray.mm:705: failed assertion `[MPSNDArray initWithDevice:descriptor:] Error: product of dimension sizes > 2**31'
zsh: abort python scripts/dream.py --full_precision
(ldm) oneiga@Adriens-MacBook-Pro stable-diffusion % /Users/oneiga/miniconda3/envs/ldm/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '