Error during sampling
See original GitHub issueHi, I installed the app from https://www.charl-e.com/ on my macbook pro with the M1 chip, and downloaded the weights. When trying to generate an image for the first time, I got the following error during sampling. Seems like there are some unrecognized arguments to txt2img
. There are also other warnings whcih look harmless. Any suggestions as to how this could be resolved?
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(8)
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. 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.
torch/_jit_internal.py:751: UserWarning: Unable to retrieve source for @torch.jit._overload function: <function _DenseLayer.forward at 0x17fb6f6d0>. 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 0x17fb6f520>. 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:
[6726] WARNING: file already exists but should not: /var/folders/7w/0kc1g1ls7433kzx857kfhzfw0000gn/T/_MEISbBy9u/torch/_dl.cpython-310-darwin.so
[6726] WARNING: file already exists but should not: /var/folders/7w/0kc1g1ls7433kzx857kfhzfw0000gn/T/_MEISbBy9u/torch/_C_flatbuffer.cpython-310-darwin.so
[6726] WARNING: file already exists but should not: /var/folders/7w/0kc1g1ls7433kzx857kfhzfw0000gn/T/_MEISbBy9u/torch/_C.cpython-310-darwin.so
[6726] WARNING: file already exists but should not: /var/folders/7w/0kc1g1ls7433kzx857kfhzfw0000gn/T/_MEISbBy9u/pyarrow/lib.cpython-310-darwin.so
Sampling: 0%| | 0/1 [00:00<?, ?it/s] data: 0%| | 0/1 [00:00<?, ?it/s][A
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Sampling Errors - Overview, Example, and Categories
Sampling errors are statistical errors that arise when a sample does not represent the whole population. They are the difference between the ...
Read more >Sampling & Non-Sampling Errors in 2023 - Qualtrics
Sampling error, on the other hand, means the difference between the mean values of the sample and the mean values of the entire...
Read more >Sampling error - Wikipedia
In statistics, sampling errors are incurred when the statistical characteristics of a population are estimated from a subset, or sample, of that population....
Read more >Sampling Error - Voxco
Sampling error can be defined as a statistical error that occurs when a researcher fails to select a sample that is representative of...
Read more >Sampling Error in Research - Sampling Bias - Explorable
Sampling error is the deviation of the selected sample from the true characteristics, traits, behaviours, qualities or figures of the entire population.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@cbh123 that was my issue I was on macOS 12.0.1 upgraded to macOS 12.6 and it started working! Thank you!
Okay, so the warnings in @hyunjik11’s original post are indeed harmless. The real problem in my case was a broken transformers cache. Deleting the
/Users/<user>/.cache/huggingface/transformers
directory fixed the issue.