CrossDomainFewShot icon indicating copy to clipboard operation
CrossDomainFewShot copied to clipboard

GG! best accuracy 0.000000 in Feature encoder pre-training stage

Open e96031413 opened this issue 5 years ago • 3 comments

command:

CUDA_VISIBLE_DEVICES=0 python3 train_baseline.py --method baseline++ --dataset cars --name baseline++ --train_aug

output:

Epoch 399 | Batch 75/257 | Loss 0.226424
Epoch 399 | Batch 100/257 | Loss 0.233635
Epoch 399 | Batch 125/257 | Loss 0.232594
Epoch 399 | Batch 150/257 | Loss 0.234371
Epoch 399 | Batch 175/257 | Loss 0.231336
Epoch 399 | Batch 200/257 | Loss 0.230566
Epoch 399 | Batch 225/257 | Loss 0.225214
Epoch 399 | Batch 250/257 | Loss 0.222642
GG! best accuracy 0.000000

No matter use PyTorch 1.4 or the latest version(PyTorch 1.7), I got the same problem.

e96031413 avatar Jan 26 '21 00:01 e96031413

Have you solved it? I have same problem.

Wystan0608 avatar May 15 '21 05:05 Wystan0608

@Almostlover0608 Hi, I found that the train_baseline code did not calculate the best accuracy during training Thus, the output GG! best accuracy 0.000000 appears in the output.

e96031413 avatar May 15 '21 05:05 e96031413