Skip to content

usage snippet #16

@yossilevii100

Description

@yossilevii100

Hi, thanks for the provided code.
The usage code snippet yields errors if I ran it as is. The corrections are easy, you can add the following three lines.

from PIL import Image
import torch
device = "cuda" if torch.cuda.is_available() else "cpu"

Hope it helps and help others.

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