cbh123 / charl-e

Run Stable Diffusion on your M1 Mac
MIT License
543 stars 19 forks source link

Doesn't generate image #3

Closed reckter closed 2 years ago

reckter commented 2 years ago

Prerequisites

Using the release 0.0.5 (which still shows as v0.0.3 in the logs btw)

Expected Behavior

Should generate an Image

Current Behavior

Displays Error Detected! Please check the logs.

Logs:


0
Logs
\
Options
?
CHARL-E v0.0.3

19:57:34

usage: txt2img [-h] [--prompt [PROMPT]] [--outdir [OUTDIR]] [--skip_grid] [--skip_save] [--ddim_steps DDIM_STEPS] [--plms] [--laion400m] [--fixed_code] [--ddim_eta DDIM_ETA] [--n_iter N_ITER] [--H H] [--W W] [--C C] [--f F] [--n_samples N_SAMPLES] [--n_rows N_ROWS] [--scale SCALE] [--from-file FROM_FILE] [--config CONFIG] [--ckpt CKPT] [--seed SEED] [--precision {full,autocast}] txt2img: error: unrecognized arguments: -B -S -E -s -c from multiprocessing.resource_tracker import main;main(11)
transformers/models/clip/feature_extraction_clip.py:67: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead. transformers/models/clip/feature_extraction_clip.py:204: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead.
transformers/image_utils.py:188: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
torch/_jit_internal.py:751: UserWarning: Unable to retrieve source for @torch.jit._overload function: <function _DenseLayer.forward at 0x29386b6d0>. warnings.warn(f"Unable to retrieve source for @torch.jit._overload function: {func}.")
torch/_jit_internal.py:751: UserWarning: Unable to retrieve source for @torch.jit._overload function: <function _DenseLayer.forward at 0x29386b520>. warnings.warn(f"Unable to retrieve source for @torch.jit._overload function: {func}.")
torchvision/io/image.py:13: UserWarning: Failed to load image Python extension:
Failed to execute script 'txt2img' due to unhandled exception!
[83539]
Traceback (most recent call last): File "PIL/Image.py", line 2298, in save KeyError: '' The above exception was the direct cause of the following exception: Traceback (most recent call last):
data: 100%|██████████| 1/1 [00:04<00:00, 4.96s/it] data: 100%|██████████| 1/1 [00:04<00:00, 4.96s/it] Sampling: 100%|██████████| 1/1 [00:04<00:00, 4.96s/it] Sampling: 100%|██████████| 1/1 [00:04<00:00, 4.96s/it]
PLMS Sampler: 100%|██████████| 5/5 [00:04<00:00, 1.41it/s] PLMS Sampler: 100%|██████████| 5/5 [00:04<00:00, 1.17it/s]
PLMS Sampler: 80%|████████ | 4/5 [00:03<00:00, 1.26it/s]
PLMS Sampler: 60%|██████ | 3/5 [00:03<00:01, 1.15it/s]
[83580] WARNING: file already exists but should not: /var/folders/d9/yx7f4q2j4wj3z6ld97kpssnc0000gn/T/_MEIHLbnro/torch/_dl.cpython-310-darwin.so
[83580] WARNING: file already exists but should not: /var/folders/d9/yx7f4q2j4wj3z6ld97kpssnc0000gn/T/_MEIHLbnro/torch/_C_flatbuffer.cpython-310-darwin.so
[83580] WARNING: file already exists but should not: /var/folders/d9/yx7f4q2j4wj3z6ld97kpssnc0000gn/T/_MEIHLbnro/torch/_C.cpython-310-darwin.so
PLMS Sampler: 40%|████ | 2/5 [00:02<00:03, 1.12s/it]
PLMS Sampler: 20%|██ | 1/5 [00:01<00:07, 1.86s/it]
[83580] WARNING: file already exists but should not: /var/folders/d9/yx7f4q2j4wj3z6ld97kpssnc0000gn/T/_MEIHLbnro/pyarrow/lib.cpython-310-darwin.so
PLMS Sampler: 0%| | 0/5 [00:00<?, ?it/s]
transformers/models/clip/modeling_clip.py:657: UserWarning: The operator 'aten::index.Tensor' 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/pytorch/pytorch/pytorch/aten/src/ATen/mps/MPSFallback.mm:11.)
data: 0%| | 0/1 [00:00<?, ?it/s]
Sampling: 0%| | 0/1 [00:00<?, ?it/s]
``m
## Steps to Reproduce

<!-- Add relevant code and/or a live example -->
<!-- Add stack traces -->

1. Download v0.0.5

2. click Generate

## Your Environment

- M1 Max MacBook Pro 16" 64GB Ram.
- MacOS Montery v12.5.1
reckter commented 2 years ago

Ok. Nvm. You can click the "Generate" button without actually typing in any prompt. It will try to generate an Image then, but apparently just crash.

Should probably not work, but closing this issue for now 😅