lukasruff / Deep-SVDD-PyTorch

A PyTorch implementation of the Deep SVDD anomaly detection method
MIT License
698 stars 197 forks source link

Training error - ValueError: 'default' must be a list when 'multiple' is true. #40

Open tribeband opened 10 months ago

tribeband commented 10 months ago

Traceback (most recent call last): File "d:\gitdownload\TS\Anomaly_detection\Deep-SVDD-PyTorch\src\main.py", line 56, in def main(dataset_name, net_name, xp_path, data_path, load_config, load_model, objective, nu, device, seed, File "C:\Users\PC.conda\envs\TS\lib\site-packages\click\decorators.py", line 373, in decorator _param_memo(f, cls(param_decls, attrs)) File "C:\Users\PC.conda\envs\TS\lib\site-packages\click\core.py", line 2536, in init super().init(param_decls, type=type, multiple=multiple, attrs) File "C:\Users\PC.conda\envs\TS\lib\site-packages\click\core.py", line 2151, in init raise ValueError( ValueError: 'default' must be a list when 'multiple' is true.

will you please help on this?

AlejandraM97 commented 8 months ago

I have the same error! Do you know why it appears? It would be very helpful!

saharlynds commented 5 months ago

instead of default=0 you should use default = [0], the error will be fixed!