raise valueError
rambo-coder opened this issue · comments
raise ValueError(
ValueError: The requested one is expected to belong to ['SE', 'MCD', 'MME', 'ADDA', 'CDAC', 'DAEL', 'DANN', 'AdaBN', 'M3SDA', 'SourceOnly', 'DDAIG', 'DAELDG', 'Vanilla', 'CrossGrad', 'DomainMix', 'EntMin', 'FixMatch', 'MixMatch', 'Mean
Teacher', 'SupBaseline'], but got [CoOp] (do you mean [CrossGrad]?)
looks like a mis-registration error
if you're building a new trainer, please do like this https://github.com/KaiyangZhou/CoOp/blob/main/trainers/coop.py#L211 to register the trainer
Thank you so much for your great job and kind reply. I have solved this problem, It is a stupid mistake, My bad!
Hi, I have the same problem. Could you help me how to register the trainer?
Thank you very much!
Hi My solution is to put the CoOp under Dassl.pytorch direction.
Hi, I have the same problem. Could you help me how to register the trainer? Thank you very much!
@ZiyueWu59 , Sir. Did you solve the problem, I have the same error.
It woule be appreciated if you can provide your tips.
looks like a mis-registration error
if you're building a new trainer, please do like this https://github.com/KaiyangZhou/CoOp/blob/main/trainers/coop.py#L211 to register the trainer
Hi, @KaiyangZhou , author, I register my new trainer as CoOp does, but the error still exists. Can you provide some suggestions?
looks like a mis-registration error
if you're building a new trainer, please do like this https://github.com/KaiyangZhou/CoOp/blob/main/trainers/coop.py#L211 to register the trainerHi, @KaiyangZhou , author, I register my new trainer as CoOp does, but the error still exists. Can you provide some suggestions?
hello, I guess you did not import your newly created trainer class in train.py
import trainers.coop
import trainers.cocoop
import trainers.zsclip