Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to run hand classification #40

Open
ardeal opened this issue May 24, 2023 · 1 comment
Open

how to run hand classification #40

ardeal opened this issue May 24, 2023 · 1 comment

Comments

@ardeal
Copy link

ardeal commented May 24, 2023

Hi,

In your readme, you mentioned:
We provide some pre-trained models as the baseline with the classic backbone architectures and two output heads - for gesture classification and leading hand classification.

I am trying to run resnet18 for hand classification, how to config the yaml file?
is the ResNet18 pth model file trained by you for hand classification?

I tried to modify the yaml file, and use ResNet18 for hand classification, but the code report error.

@MagicXiaoBai1
Copy link

下面这是用MobileNetV3_large.pth的过程,和ResNet18 的过程基本一样

1、新建环境、安装requirements.txt中的所有包
2、下载MobileNetV3_large.pth 放在项目目录下(与demo_ff.py同目录)
3、进入configs文件夹并打开MobileNetV3_large.yaml
4、在该文件中找到

model:
name: MobileNetV3_large
pretrained: False
pretrained_backbone: False
checkpoint: null
5、将其修改为:

model:
name: MobileNetV3_large
pretrained: False
pretrained_backbone: False
checkpoint: MobileNetV3_large.pth
6、执行命令:python demo_ff.py -p configs/MobileNetV3_large.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants