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

HashNet on CUB200 #38

Open
zhouxiaohang opened this issue Apr 17, 2020 · 1 comment
Open

HashNet on CUB200 #38

zhouxiaohang opened this issue Apr 17, 2020 · 1 comment

Comments

@zhouxiaohang
Copy link

Hi, I've tried to use HashNet to Fine-grained recognition, so I adopted the PyTorch code to CUB200 dataset with finetuned ResNet50, but I can't make the loss converge. I've tried different optimizers like SGD, Adam, RMSprop, and different class_num values like 1.0 and 200.0, different lr values from 1e-5 to 1e-3.

Here is a set of parameters which I tried:

python train.py \
    --dataset cub200 \
    --prefix resnet50_hashnet \
    --hash_bit 64 \
    --net ResNet50 \
    --lr 1e-5 \
    --class_num 1.0

{'l_weight': 1.0, 'q_weight': 0, 'l_threshold': 15.0, 'sigmoid_param': 0.15625, 'class_num': 1.0}{'type': 'RMSprop', 'optim_params': {'lr': 1.0, 'weight_decay': 1e-05}, 'lr_type': 'step', 'lr_param': {'init_lr': 1e-05, 'gamma': 0.5, 'step': 2000}}

But the training loss is always around 0.69, and mAP is extremely as low as 0.04.

No matter what parameters are used, mAP is always lower than 0.05. Intuitively, this's not reasonable.

Have you ever apply HashNet on CUB200? Do you have any ideas on it? Thanks.

@633NuLL
Copy link

633NuLL commented Jan 29, 2021

Hi,did you solve the problem yet?I also met same problem on my dataset.

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