Closed wangbingo closed 4 years ago
fixed, please use the latest code.
It works! Thx, Doc.
so the parameter num_splits in init can be removed
@L1aoXingyu 最新代码 agw_s50 自己的数据训练, 加载提供的预训练模型 error ModuleAttributeError embeddinghead object has no attribute weight
@sky186 加载的 imagenet pretrain model?
@L1aoXingyu imagenet 和 您训练的模型,都加载过,是一样的错误
可以正常训练吗
Dr: When I tried an everything default training with a ResNest backbone, it goes wrong. And both M and D are the same. Any suggestion? Thanks.
cd fast-reid && python ./tools/train_net.py --config-file ./configs/DukeMTMC/bagtricks_S50.yml MODEL.DEVICE "cuda:0"
Traceback (most recent call last): File "./tools/train_net.py", line 58, in
args=(args,),
File "./fastreid/engine/launch.py", line 71, in launch
main_func(args)
File "./tools/train_net.py", line 42, in main
trainer = DefaultTrainer(cfg)
File "./fastreid/engine/defaults.py", line 211, in init
model = self.build_model(cfg)
File "./fastreid/engine/defaults.py", line 377, in build_model
model = build_model(cfg)
File "./fastreid/modeling/meta_arch/build.py", line 24, in build_model
model = META_ARCH_REGISTRY.get(meta_arch)(cfg)
File "./fastreid/modeling/meta_arch/baseline.py", line 26, in init
self.backbone = build_backbone(cfg)
File "./fastreid/modeling/backbones/build.py", line 27, in build_backbone
backbone = BACKBONE_REGISTRY.get(backbone_name)(cfg)
File "./fastreid/modeling/backbones/resnest.py", line 401, in build_resnest_backbone
avd=True, avd_first=False)
File "./fastreid/modeling/backbones/resnest.py", line 209, in init
self.layer1 = self._make_layer(block, 64, layers[0], 1, bn_norm, with_ibn=with_ibn, is_first=False)
File "./fastreid/modeling/backbones/resnest.py", line 269, in _make_layer
last_gamma=self.last_gamma))
File "./fastreid/modeling/backbones/resnest.py", line 78, in init
dropblock_prob=dropblock_prob)
File "./fastreid/layers/splat.py", line 42, in init
self.bn0 = get_norm(norm_layer, channels radix, num_splits)
TypeError: get_norm() takes 2 positional arguments but 3 were given
-----------------------full config------------------------------------------
[10/07 17:07:41 fastreid]: Contents of args.config_file=./configs/DukeMTMC/bagtricks_S50.yml:
BASE: "../Base-bagtricks.yml"
MODEL: BACKBONE: NAME: "build_resnest_backbone"
DATASETS: NAMES: ("DukeMTMC",) TESTS: ("DukeMTMC",)
OUTPUT_DIR: "logs/dukemtmc/bagtricks_S50"
[10/07 17:07:42 fastreid.engine.defaults]: Auto-scaling the config to num_classes=702, max_Iter=30960, wamrup_Iter=2580, freeze_Iter=0, delay_Iter=0, step_Iter=[10320, 23220], ckpt_Iter=15600, eval_Iter=7800. Traceback (most recent call last): File "./tools/train_net.py", line 58, in
args=(args,),
File "./fastreid/engine/launch.py", line 71, in launch
main_func(args)
File "./tools/train_net.py", line 42, in main
trainer = DefaultTrainer(cfg)
File "./fastreid/engine/defaults.py", line 211, in init
model = self.build_model(cfg)
File "./fastreid/engine/defaults.py", line 377, in build_model
model = build_model(cfg)
File "./fastreid/modeling/meta_arch/build.py", line 24, in build_model
model = META_ARCH_REGISTRY.get(meta_arch)(cfg)
File "./fastreid/modeling/meta_arch/baseline.py", line 26, in init
self.backbone = build_backbone(cfg)
File "./fastreid/modeling/backbones/build.py", line 27, in build_backbone
backbone = BACKBONE_REGISTRY.get(backbone_name)(cfg)
File "./fastreid/modeling/backbones/resnest.py", line 401, in build_resnest_backbone
avd=True, avd_first=False)
File "./fastreid/modeling/backbones/resnest.py", line 209, in init
self.layer1 = self._make_layer(block, 64, layers[0], 1, bn_norm, with_ibn=with_ibn, is_first=False)
File "./fastreid/modeling/backbones/resnest.py", line 269, in _make_layer
last_gamma=self.last_gamma))
File "./fastreid/modeling/backbones/resnest.py", line 78, in init
dropblock_prob=dropblock_prob)
File "./fastreid/layers/splat.py", line 42, in init
self.bn0 = get_norm(norm_layer, channels radix, num_splits)
TypeError: get_norm() takes 2 positional arguments but 3 were given