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
Modify /extensions/sd-webui-diffpure/scripts/diffpure.py
At the first from modules.shared import devices
to from modules import devices
Then at the end for pic in tqdm(pics, 'Processing pics'): # PIL -> Tensor img = transform((pic)).unsqueeze(0)
add img = transform((pic)).unsqueeze(0) img = img[:, :3, :, :] # Keep only the first three channels and discard the fourth channel
Modify /models/DiffPure/imagenet.yml
diffusion_steps and timestep_respacing to 10000
to get better pur img quality
The text was updated successfully, but these errors were encountered:
Modify /extensions/sd-webui-diffpure/scripts/diffpure.py
At the first
from modules.shared import devices
to
from modules import devices
Then at the end
for pic in tqdm(pics, 'Processing pics'):
# PIL -> Tensor
img = transform((pic)).unsqueeze(0)
add
img = transform((pic)).unsqueeze(0)
img = img[:, :3, :, :] # Keep only the first three channels and discard the fourth channel
Modify /models/DiffPure/imagenet.yml
diffusion_steps and timestep_respacing to 10000
to get better pur img quality
The text was updated successfully, but these errors were encountered: