yanxp / MetaR-CNN

Meta R-CNN : Towards General Solver for Instance-level Low-shot Learning
https://yanxp.github.io/metarcnn.html
177 stars 23 forks source link

Some problem about testing parameters #7

Closed lzhnb closed 4 years ago

lzhnb commented 4 years ago

The first problem is the spelling mistake in example command which is 'fisrt' , I put it in pull requests.

And the other is the lack of parameter --phase

when i run your example, it calls:

Traceback (most recent call last):
  File "test_metarcnn.py", line 187, in <module>
    mean_class_attentions = pickle.load(open(os.path.join('attentions',str(args.phase) + '_shots_' + str(args.shots) + '_mean_class_attentions.pkl'), 'rb'))
FileNotFoundError: [Errno 2] No such file or directory: 'attentions/1_shots_10_mean_class_attentions.pkl'

And it should be 'attentions/2_shots_10_mean_class_attentions.pkl', the first number depends on --phase ,now i add --phase 2 and it works.

yanxp commented 4 years ago

Thanks, i wll update it.