slamp icon indicating copy to clipboard operation
slamp copied to clipboard

Update train.py

Open JunyaoHu opened this issue 1 year ago • 0 comments

solve problem when training.

Traceback (most recent call last):
  File ".../slamp/train.py", line 139, in <module>
    main(opt)
  File ".../slamp/train.py", line 68, in main
    v.train()
AttributeError: 'Namespace' object has no attribute 'train'

the model in origin code contains other dicts like optimizer and epoch, which cannot be set to train mode.

JunyaoHu avatar Apr 10 '23 01:04 JunyaoHu