Skip to content

TypeError: pic should be PIL Image or ndarray. Got <class 'torch.Tensor'> #74

@kandeldeepak46

Description

@kandeldeepak46

Hi Contributors,

I am trying to reproduce the results of SSRE and FeTrIL on tiny-imagenet-200 datasets. But getting the following TypeError.

python main.py --config=./exps/fetril.json 

These are my parameters

{
    "prefix": "train",
    "dataset": "imagenet1000",
    "memory_size": 0,
    "shuffle": true,
    "init_cls": 10,
    "increment": 20,
    "model_name": "fetril",
    "convnet_type": "resnet18",
    "device": ["2"],
    "seed": [1993],
    "init_epochs": 200,
    "init_lr" : 0.1,
    "init_weight_decay" : 5e-4,
    "epochs" : 50,
    "lr" : 0.05,
    "batch_size" : 128,
    "weight_decay" : 5e-4,
    "num_workers" : 8,
    "T" : 10
}

image

Can somebody please help to resolve this issue.

Thank you!

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