I am interested in modifying the transfer learning tutorial such that it can learn from the combination of both imagenet and another dataset that is mainly scenes (like places2,places, SUN, etc). For example, can I combine pre-trained resnet50 with pre-trained vgg16 in transfer learning tutorial?
We have access to vgg16 = models.vgg16(pretrained=True) and resnet50 = models.resnet50(pretrained=True) in PyTorch and I know how to use each separately but I don’t know how to combine the pre-trained model.
I actually noticed that vgg16 is also pre-trained on ImageNet 5. Basically I am looking for a model pretrained for object detection and a model pretrained for scene classification.