你好博主,我在验证的时候遇到这样的一个问题:
ModuleNotFoundError Traceback (most recent call last)
~/ResNet/pytorch_hand_classifier-master/classifier_test.py in <module>
1 from torch import nn
----> 2 from utils import Tester
3 from network import resnet34, resnet101
4
5 # Set Test parameters
~/ResNet/pytorch_hand_classifier-master/utils/__init__.py in <module>
----> 1 from .Trainer import Trainer
2 from .Tester import Tester
3 from .log import logger
~/ResNet/pytorch_hand_classifier-master/utils/Trainer.py in <module>
6 import torch as t
7 import torch.nn as nn
----> 8 from torch.optim.lr_scheduler import ReduceLROnPlateau
9 from torch.autograd import Variable
10 from torchnet import meter
ModuleNotFoundError: No module named 'torch.optim.lr_scheduler'
不知道你有思路提供?
使用PyTorch及ResNet构建简单手势分类器项目地址 我的github地址 目的 对手势数字数据集进行分类。数据采用./data/images/中的数据。其中,训练集4324张,测试集484张,手势数字类别:0-5,图...