Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KaihuaTang/ResNet50-Pytorch-Face-Recognition
/ functions
Functions
17 in github.com/KaihuaTang/ResNet50-Pytorch-Face-Recognition
⨍
Functions
17
◇
Types & classes
5
↓ 4 callers
Method
make_stack
(self, planes, blocks, stride = 1)
ResNet.py:61
↓ 1 callers
Method
__init__
(self, layers, num_classes=1000, model_path="model.pkl")
ResNet.py:29
↓ 1 callers
Method
init_param
(self)
VGG.py:39
↓ 1 callers
Method
init_param
(self)
ResNet.py:47
↓ 1 callers
Function
resnet50
Constructs a ResNet-50 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
ResNet.py:5
↓ 1 callers
Method
start_train
Detail of training
train.py:39
↓ 1 callers
Function
vgg16
(pretrained = False, **kwargs)
VGG.py:5
Method
__getitem__
Get the image item by index
data.py:44
Method
__init__
Init Dataset, Model and others
train.py:17
Method
__init__
(self, number_classes = 2000, model_path="model.pkl")
VGG.py:12
Method
__init__
Initialize some variables Load labels & names define transform
data.py:13
Method
__init__
(self, inplanes, planes, stride=1, downsample=None)
ResNet.py:99
Method
__len__
Get the length of the entire dataset
data.py:37
Method
forward
(self, x)
VGG.py:54
Method
forward
(self, x)
ResNet.py:79
Method
forward
(self, x)
ResNet.py:111
Function
resnet101
Constructs a ResNet-101 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
ResNet.py:15