File "main.py", line 4, in
train()
File "/data/Dassl.pytorch/tools/train.py", line 179, in train
trainer = build_trainer(cfg)
File "/data/Dassl.pytorch/dassl/engine/build.py", line 11, in build_trainer
return TRAINER_REGISTRY.get(cfg.TRAINER.NAME)(cfg)
File "/data/Dassl.pytorch/dassl/engine/dg/drt_dg.py", line 23, in init
super().init(cfg)
File "/data/Dassl.pytorch/dassl/engine/trainer.py", line 324, in init
self.build_data_loader()
File "/data/Dassl.pytorch/dassl/engine/trainer.py", line 350, in build_data_loader
self.dm = DataManager(self.cfg)
File "/data/Dassl.pytorch/dassl/data/data_manager.py", line 66, in init
dataset = build_dataset(cfg)
File "/data/Dassl.pytorch/dassl/data/datasets/build.py", line 11, in build_dataset
return DATASET_REGISTRY.get(cfg.DATASET.NAME)(cfg)
File "/data/Dassl.pytorch/dassl/data/datasets/da/domainnet.py", line 45, in init
super().init(train_x=train_x, train_u=train_u, val=val, test=test)
File "/mnt/csip-091/Dassl.pytorch/dassl/data/datasets/base_dataset.py", line 66, in init
self._num_classes = self.get_num_classes(train_x)
File "/data/Dassl.pytorch/dassl/data/datasets/base_dataset.py", line 105, in get_num_classes
label_set.add(item.label)
AttributeError: 'list' object has no attribute 'label'
File "main.py", line 4, in
train()
File "/data/Dassl.pytorch/tools/train.py", line 179, in train
trainer = build_trainer(cfg)
File "/data/Dassl.pytorch/dassl/engine/build.py", line 11, in build_trainer
return TRAINER_REGISTRY.get(cfg.TRAINER.NAME)(cfg)
File "/data/Dassl.pytorch/dassl/engine/dg/drt_dg.py", line 23, in init
super().init(cfg)
File "/data/Dassl.pytorch/dassl/engine/trainer.py", line 324, in init
self.build_data_loader()
File "/data/Dassl.pytorch/dassl/engine/trainer.py", line 350, in build_data_loader
self.dm = DataManager(self.cfg)
File "/data/Dassl.pytorch/dassl/data/data_manager.py", line 66, in init
dataset = build_dataset(cfg)
File "/data/Dassl.pytorch/dassl/data/datasets/build.py", line 11, in build_dataset
return DATASET_REGISTRY.get(cfg.DATASET.NAME)(cfg)
File "/data/Dassl.pytorch/dassl/data/datasets/da/domainnet.py", line 45, in init
super().init(train_x=train_x, train_u=train_u, val=val, test=test)
File "/mnt/csip-091/Dassl.pytorch/dassl/data/datasets/base_dataset.py", line 66, in init
self._num_classes = self.get_num_classes(train_x)
File "/data/Dassl.pytorch/dassl/data/datasets/base_dataset.py", line 105, in get_num_classes
label_set.add(item.label)
AttributeError: 'list' object has no attribute 'label'
Signed-off-by: siaimes 34199488+siaimes@users.noreply.github.com