Functionrun(model, selected_path, task, custom_steps, resize_enabled=False, classifier_ckpt=None, global_step=None)
examples/stable-diffusion/notebook_helpers.py:131
Methodsample(self,
S,
batch_size,
shape,
conditioning=None,
examples/stable-diffusion/ldm/models/diffusion/plms.py:58
Methodsample(self,
S,
batch_size,
shape,
conditioning=None,
examples/stable-diffusion/ldm/models/diffusion/dpm_solver/sampler.py:23
Functiontensor2img Converts a torch Tensor into an image Numpy array of BGR channel order Input: 4D(B,(3/1),H,W), 3D(C,H,W), or 2D(H,W), any range, RGB channel
examples/stable-diffusion/ldm/modules/image_degradation/utils_image.py:342