赞
踩
RuntimeError: CUDA out of memory. Tried to allocate 1.50 GiB (GPU 0; 8.00 GiB total capacity; 5.62 GiB already allocated; 109.75 MiB free; 5.74 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
python scripts/txt2img.py --prompt “a photograph of an astronaut riding a horse” --plms –n_samples 1
修改scripts/txt2img.py文件,在model.to(device)
后添加.half()
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。