negative-margin.few-shot icon indicating copy to clipboard operation
negative-margin.few-shot copied to clipboard

dataset

Open tailororrr opened this issue 2 years ago • 13 comments

The link to download the dataset is not available now, is there any way to download it?

tailororrr avatar Jul 27 '21 14:07 tailororrr

Hi, thanks a lot for your interest in our work. There are copyright issues and we cannot reshare the dataset. I suggest you follow the instruction on the official website to download the ImageNet dataset.

bl0 avatar Jul 27 '21 15:07 bl0

Dear authors, the checkpoints that you provide seem broken. Could you check them please? Thanks a lot!

JulieCarlon avatar Aug 24 '21 09:08 JulieCarlon

Hi, I checked the onedrive link and it works normally. image

bl0 avatar Aug 24 '21 09:08 bl0

Hi, I checked the onedrive link and it works normally. image

I mean that when I download these .tar files, I cannot unzip them. I tried different ways to unzip them but I failed. So I think these files may be broken. I hope you can try to download and unzip them to see if they can be used.

JulieCarlon avatar Aug 24 '21 09:08 JulieCarlon

Hi, the shared checkpoints are NOT tar files, but pre-trained weights. Sorry for the misleading postfix. We can load these pre-trained weights in this way: image

impiga avatar Aug 24 '21 12:08 impiga

Hi, the shared checkpoints are NOT tar files, but pre-trained weights. Sorry for the misleading postfix. We can load these pre-trained weights in this way: image

thank you so much!!

JulieCarlon avatar Aug 26 '21 03:08 JulieCarlon

Hello, thank you very much for sharing. I'm a beginner, and I encountered a problem when reproducing your code. usage: few-shot script [-h] --config CONFIG [--supp SUPP] few-shot script: error: the following arguments are required: --config I checked it for a long time but didn't solve it. If you can see it, can you tell me what the problem is?

gkgo avatar Nov 30 '21 04:11 gkgo

HI, @gkgo . Thanks for your interest in this work. Could you share the command you used with us to reproduce the error?

impiga avatar Dec 01 '21 09:12 impiga

I really appreciate your reply. The problem I encountered is: 屏幕截图 2021-12-01 182422

gkgo avatar Dec 01 '21 10:12 gkgo

I really appreciate your reply. The problem I encountered is: 屏幕截图 2021-12-01 182422

Do you use a command like this:

python main.py --config [CONFIGFILENAME] \
    --supp [SUPPLEMENTSTRING] \
    method.backbone [BACKBONE] \
    method.image_size [IMAGESIZE] \
    method.metric_params.margin [MARGIN] \
    [OPTIONARG]

impiga avatar Dec 01 '21 10:12 impiga

I used it in cmd under Windows, but there will be such an error: 屏幕截图 2021-12-01 183433

gkgo avatar Dec 01 '21 10:12 gkgo

We have not tested our code under Windows and you could have a try.

In addition, you need to replace "[CONFIGFILENAME]" "[SUPPLEMENTSTRING]" ... with specific values. This folder provides some examples.

As you are using Windows, you need to delete all "\" in the running command. For example, you can modify this script as

python main.py --config configs/miniImagenet/exp_neg-cosine.yml --supp 1-shot_resnet12 train.adam_params.weight_decay 1e-4 method.metric_params.margin -0.02 train.drop_rate 0.1 train.dropblock_size 5 method.backbone resnet12 method.image_size 84

impiga avatar Dec 01 '21 11:12 impiga

We have not tested our code under Windows and you could have a try.

In addition, you need to replace "[CONFIGFILENAME]" "[SUPPLEMENTSTRING]" ... with specific values. This folder provides some examples.

As you are using Windows, you need to delete all "" in the running command. For example, you can modify this script as

python main.py --config configs/miniImagenet/exp_neg-cosine.yml --supp 1-shot_resnet12 train.adam_params.weight_decay 1e-4 method.metric_params.margin -0.02 train.drop_rate 0.1 train.dropblock_size 5 method.backbone resnet12 method.image_size 84

Dear author, how can I use your checkpoints with the scripts ? your instructions is too concise to follow.

ContestantsD avatar Jun 11 '22 12:06 ContestantsD