【实验必用】使用ResNet50作为主干网络进行深度学习的Pytorch实现

一、ResNet50的Python复现

  下述代码(resnet50.py)源于ICCV2022的EAC论文,全名为“Learn From All: Erasing Attention Consistency for Noisy Label Facial Expression Recognition”。

  如果你只是想用ResNet50网络作为自己的主干网络,那么直接将下述代码存入一个 resnet50.py 文件即可,完全不需要修改。

import torch
import math
import torch.nn as nn


class Flatten

猜你喜欢

转载自blog.csdn.net/qq_40968179/article/details/129585822
今日推荐