stable-diffusion-webui-promptgen icon indicating copy to clipboard operation
stable-diffusion-webui-promptgen copied to clipboard

[Bug]: Generate button throws error about RuntimeError: tensors must be 2-D

Open thesobercoder opened this issue 2 years ago • 3 comments

When I click on the generate button, it shows me an error saying RuntimeError: tensors must be 2-D. I'm running it on an Apple Mac Studio with M1 Max 32C GPU and 32 GB RAM. I cloned the repository and enabled the plugin just today.

thesobercoder avatar Mar 04 '23 18:03 thesobercoder

Same issue. Tried just now.

legendPerceptor avatar Mar 11 '23 17:03 legendPerceptor

mac launch script ships torch 1.12. i see the same behaviour on my macbook. i've tried updating torch to 1.13.1 and the error was resolved try it to see of it helps

in your webui folder activate the virtual environment and install newer torch

source venv/bin/activate
pip install -U "torch>=1.13,<2"

piiq avatar Mar 19 '23 15:03 piiq

Please select the device for text generation as "cpu" in the settings of Promptgen. @thesobercoder @legendPerceptor

abdllhbyrktr avatar Apr 24 '23 23:04 abdllhbyrktr