-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
跟着步骤,自己做了数据集,但是更改类别后,模型训练中报错 #11
Comments
一样的错误 |
估计是你没有严格按照样例数据集的格式去整理 |
数据集的格式是一样的,使用你在视频中演示的配置文件可以训练,但是换到你提供的其他配置文件以及我自己写的配置文件就会出现以上问题,所以应该是配置文件的事情,数据及的类别、地址相关信息都是一样的 |
请问如何解决的 |
这个问题我也遇到了,以下是我采取的解决步骤 |
after_test_epoch:
(VERY_HIGH ) RuntimeInfoHook
(NORMAL ) IterTimerHook
(BELOW_NORMAL) LoggerHook
after_test:
(VERY_HIGH ) RuntimeInfoHook
after_run:
(BELOW_NORMAL) LoggerHook
#上面都是正常的,下面就开始报错了
Traceback (most recent call last):
File "tools/train.py", line 104, in
main()
File "tools/train.py", line 100, in main
runner.train()
File "/environment/miniconda3/lib/python3.7/site-packages/mmengine/runner/runner.py", line 1704, in train
self._train_loop) # type: ignore
File "/environment/miniconda3/lib/python3.7/site-packages/mmengine/runner/runner.py", line 1498, in build_train_loop
runner=self, dataloader=self._train_dataloader))
File "/environment/miniconda3/lib/python3.7/site-packages/mmengine/registry/registry.py", line 570, in build
return self.build_func(cfg, *args, **kwargs, registry=self)
File "/environment/miniconda3/lib/python3.7/site-packages/mmengine/registry/build_functions.py", line 121, in build_from_cfg
obj = obj_cls(**args) # type: ignore
File "/environment/miniconda3/lib/python3.7/site-packages/mmengine/runner/loops.py", line 219, in init
super().init(runner, dataloader)
File "/environment/miniconda3/lib/python3.7/site-packages/mmengine/runner/base_loop.py", line 27, in init
dataloader, seed=runner.seed, diff_rank_seed=diff_rank_seed)
File "/environment/miniconda3/lib/python3.7/site-packages/mmengine/runner/runner.py", line 1353, in build_dataloader
dataset = DATASETS.build(dataset_cfg)
File "/environment/miniconda3/lib/python3.7/site-packages/mmengine/registry/registry.py", line 570, in build
return self.build_func(cfg, *args, **kwargs, registry=self)
File "/environment/miniconda3/lib/python3.7/site-packages/mmengine/registry/build_functions.py", line 121, in build_from_cfg
obj = obj_cls(**args) # type: ignore
File "/home/featurize/mmsegmentation/mmseg/datasets/ZihaoDataset.py", line 21, in init
**kwargs)
File "/home/featurize/mmsegmentation/mmseg/datasets/basesegdataset.py", line 142, in init
self.full_init()
File "/environment/miniconda3/lib/python3.7/site-packages/mmengine/dataset/base_dataset.py", line 305, in full_init
self.data_bytes, self.data_address = self._serialize_data()
File "/environment/miniconda3/lib/python3.7/site-packages/mmengine/dataset/base_dataset.py", line 765, in _serialize_data
data_bytes = np.concatenate(data_list)
File "<array_function internals>", line 6, in concatenate
ValueError: need at least one array to concatenate
重新跟着步骤改了好几遍,发现还是不行,但是子豪兄的数据集可以,是我做的数据集有问题吗
The text was updated successfully, but these errors were encountered: