ModelScope这行报的错怎么办?
报错
File "E:\Anaconda3\envs\modelscope_model\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'MsDataset._to_torch_dataset_with_processors..MsMapDataset'
windows上小问题稍微多一些。
cfg.train.dataloader.workers_per_gpu = 0
cfg.evaluation.dataloader.workers_per_gpu = 0 ,此回答整理自钉群“魔搭ModelScope开发者联盟群 ①”