Spaces:
Running
Running
File size: 457 Bytes
e25cfe0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
from collections import OrderedDict
import numpy as np
import torch
import torch.nn as nn
import torchvision
from .normalizer import Normalizer
class RGBSwav(nn.Sequential):
def __init__(self):
super(RGBSwav, self).__init__()
self.swav = torch.hub.load('facebookresearch/swav', 'resnet50', pretrained=True)
self.normalizer = Normalizer()
super(RGBSwav, self).__init__(self.normalizer, self.swav)
|