ml-cvnets icon indicating copy to clipboard operation
ml-cvnets copied to clipboard

there is a code defect need to fix

Open Light-Reflection opened this issue 2 years ago • 1 comments

In RANAGEAUGMENT mode, if i set ml-cvnets\examples\range_augment\classificationresnet_50.yaml --->learn_augmentation.mode to 'none' because i want to do some ablation experiment for RANAGEAUGMENT, then, line 33 in cross_entropy_with_neural_aug.py will be error, because line 240 in base_cls.py set return data into 'x', and 'x' is a tensor, you need to add x into 'out_dict ' just like:

out_dict = {
"augmented_tensor": None, "logits": x}

return out_dict.

then, it works

Light-Reflection avatar Jan 20 '23 09:01 Light-Reflection

Yes, if you disable learn_augmentation, you should also change both the loss to cross_entropy and stats.checkpoint_metric to top1 (instead of top1.logits).

farzadab avatar Jan 26 '23 18:01 farzadab