Skip to content

Chapter 05 - age_gender_torch_snippets #95

Description

@Br4dski

The following imports and declarations needed to be added to run the example code:

from torch.utils.data import Dataset, DataLoader
import torchvision
from torchvision import transforms, models, datasets
import torch
device = 'cuda' if torch.cuda.is_available() else 'cpu'
from torch.utils.data import DataLoader

But still stalled when I got to this line of code:
inspect(ims, gens, ages)

The book calls out the 'inspet() function as part of torch_snippets and I thought inspect was a function imported with:
from torch_snippets import *

But getting the error:

Image

TypeError: 'module' object is not callable

Snip of error attached...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions