Skip to content

IndexError: tensors used as indices must be long, byte or bool tensors #4

@williamlzw

Description

@williamlzw

File "E:\minimal-diffusion-main\main_single.py", line 38, in
/ unsqueeze3x(scalars.alpha_bar[t].sqrt())
IndexError: tensors used as indices must be long, byte or bool tensors

self.get_x0_from_xt_eps = lambda xt, eps, t, scalars: (
self.clamp_x0(
1
/ unsqueeze3x(scalars.alpha_bar[t].sqrt())
* (xt - unsqueeze3x((1 - scalars.alpha_bar[t]).sqrt()) * eps)
)
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions