Skip to content

AttributeError: Can't pickle local object 'get_transform_for_test_simple.<locals>.<lambda>' #5

@LLY6321

Description

@LLY6321

Could you answer a small question,when I run the code:

for i, (data, target, paths) in enumerate(val_loader): ←←←←←←←←there
if args.gpu is not None:
data = Variable(data.cuda())
target = Variable(target.cuda())

always show→→→"AttributeError: Can't pickle local object 'get_transform_for_test_simple..'",How to solve this problem?Thanks a lot.

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