You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello :)
I have issue with error saying
enabled must be a bool (got str).
I commanded with command below python scripts/txt2img.py --prompt "a professional photograph of an astronaut riding a horse" --ckpt C:\Users\pedro\Downloads\512-base-ema.ckpt --H 512 --W 512 --steps 30 --seed -1 --n_samples 1 --n_iter 1 --precision=autocast
on scripts/txt2img.py,
I changed
from torch import autocast
to
from torch.cuda.amp import autocast
on below,
opt.device is 'cpu'
and error caused
enabled must be a bool (got str)
on precison_scope(opt.device),\
what may be the problem?
precision_scope = autocast if opt.precision=="autocast" or opt.bf16 else nullcontext
with torch.no_grad(), \
precision_scope(opt.device), \
model.ema_scope():
all_samples = list()
for n in trange(opt.n_iter, desc="Sampling"):
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello :)
I have issue with error saying
enabled must be a bool (got str).
I commanded with command below
python scripts/txt2img.py --prompt "a professional photograph of an astronaut riding a horse" --ckpt C:\Users\pedro\Downloads\512-base-ema.ckpt --H 512 --W 512 --steps 30 --seed -1 --n_samples 1 --n_iter 1 --precision=autocast
on scripts/txt2img.py,
I changed
from torch import autocast
to
from torch.cuda.amp import autocast
on below,
opt.device is 'cpu'
and error caused
enabled must be a bool (got str)
on precison_scope(opt.device),\
what may be the problem?
Beta Was this translation helpful? Give feedback.
All reactions