GMvandeVen/brain-inspired-replay

xdg_prop attribute

benureau opened this issue · 1 comments

Perhaps related to 9afa20f, I get:

./compare_MNIST_hyperParams.py --scenario=task --seed=11                 #--> Fig. S1 (top)
Traceback (most recent call last):
  File "./compare_MNIST_hyperParams.py", line 62, in <module>
    args = handle_inputs()
  File "./compare_MNIST_hyperParams.py", line 37, in handle_inputs
    options.set_defaults(args, **kwargs)
  File "/home/fcyb/projects/brain-inspired-replay/options.py", line 350, in set_defaults
    args.xdg_prop = 0. if args.scenario=="task" and args.xdg_prop is None else args.xdg_prop
AttributeError: 'Namespace' object has no attribute 'xdg_prop'

Seems in hyper compare mode, xdg_prop is never defined?

if not compare_code in ('hyper'):
cl.add_argument('--xdg-prop', type=float, dest='xdg_prop', help="--> XdG: prop neurons per layer to gate")

Yes, you're right. Thanks a lot for letting me know!
I just corrected the error so hopefully it should work now, but please let me know if you encounter any other issues.