- import os
- import sys
- firstarg=sys.argv[1]
- os.chdir('C:\\Users\\bigd\\Downloads\\stable-diffusion-main\\stable-diffusion-main')
- os.system('conda activate ldm && python optimizedSD/optimized_txt2img.py --prompt "' + firstarg + '" --H 512 --W 512 --seed 28 --n_iter 1 --n_samples 1 --ddim_steps 20')
|