few-shot-ssl-public icon indicating copy to clipboard operation
few-shot-ssl-public copied to clipboard

Cannot reshape array of size 0 into shape (0,newaxis)

Open 1585231086 opened this issue 3 years ago • 0 comments

When I run the baseline file, it shows an error : cannot reshape array of size 0 into shape (0,newaxis) in the File "/home/xxx/few-shot/run_baselines_exp.py", line 413, in get_nn_fit x_test_ = x_test.reshape([x_test[ii].shape[0], -1]). Is the flags I set not wrong? My settings are as following, flags.DEFINE_integer("nclasses_eval", default=5, help="Number of classes for testing") flags.DEFINE_integer("nclasses_train", default=5, help="Number of classes for training") flags.DEFINE_integer("nshot", default=1, help="1 nshot") flags.DEFINE_integer("num_eval_episode", default=600, help="Number of evaluation episodes") flags.DEFINE_integer("num_test", default=-1, help="-1 Number of test images per episode") flags.DEFINE_integer("num_unlabel", default=5, help="5 Number of unlabeled for training") flags.DEFINE_integer("seed", default=0, help="Random seed")

1585231086 avatar Sep 14 '21 08:09 1585231086