Semi-supervised-learning icon indicating copy to clipboard operation
Semi-supervised-learning copied to clipboard

Assertion on pseudolabel

Open mioam opened this issue 1 year ago • 1 comments

When I use "pseudolabel" which does not require a strong_transform, the assertion appears:

AssertionError: alg pseudolabel requires strong augmentation

I wonder if there is something wrong in https://github.com/microsoft/Semi-supervised-learning/blob/6cf697e6968f9f77040a9e0162306436a91a00dc/semilearn/datasets/cv_datasets/datasetbase.py#L59, which should be

assert self.alg in ['fullysupervised', 'supervised', 'pseudolabel', 'vat', 'pimodel', 'meanteacher', 'mixmatch',], f"alg {self.alg} requires strong augmentation"

Maybe "refixmatch" also requires a strong augmentation.

mioam avatar Apr 28 '24 08:04 mioam

Thanks for pointing that out. Would you like to open a PR for making this change?

Hhhhhhao avatar Jun 05 '24 20:06 Hhhhhhao

Stale issue message

github-actions[bot] avatar Aug 05 '24 08:08 github-actions[bot]