Closed khawar-islam closed 1 year ago
Hello, Khawar!
This is because our model in CIFAR experiments takes an image and a target as inputs. (see models folder)
If you want to use only an image as input, then you can refer ImageNet training code in imagenet/train.py. (you may adjust hyperparameters in imagenet/train.py for CIFAR experiments):
https://github.com/snu-mllab/PuzzleMix/blob/e2dbf3a2371026411d5741d129f46bf3eb3d3465/imagenet/train.py#L412
Hello @Janghyun1230
I am training PuzzleMix with ResNet18 and I imported resnet model from
torchvision
class. I made very simple chanegd net =models.__dict__[args.arch]().cuda()`` import torchvision.models as models
Unfortunately, it gives an error