Skip to content

Chapter 05 - age_gender_torch_snippets #95

@Br4dski

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions