You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from dassl.engine import build_trainer
...
trainer = build_trainer(cfg)
if args.eval_only:
trainer.load_model(args.model_dir, epoch=args.load_epoch)
trainer.test() # I can't find the relevant code
return
if not args.no_train:
trainer.train() # I can't find the relevant code
build_trainer is import from Dassl.pytorch/dassl/engine/build.py :
There is output accuracy during and before the end, and I know that the final output accuracy is a different part of the function.
I think the first continuous output is the valid score in the process (from the coop.py:forward_backward function).
And the final process with a progress bar( similar to Zero-Shot.sh ) may be the test of eval automatically. I can't find the code using the PyCharm and github.searching, so I can't know.
The text was updated successfully, but these errors were encountered:
When I run
/scripts/coop/main.sh
to train prompt,file CoOp/train.py :
build_trainer is import from Dassl.pytorch/dassl/engine/build.py :
There is output
accuracy
during and before the end, and I know that the final output accuracy is a different part of the function.I think the first continuous output is the
valid score
in the process (from the coop.py:forward_backward
function).And the final process with a progress bar( similar to Zero-Shot.sh ) may be the test of eval automatically. I can't find the code using the PyCharm and github.searching, so I can't know.
The text was updated successfully, but these errors were encountered: