MMT icon indicating copy to clipboard operation
MMT copied to clipboard

你好,在训练过程中出现如下问题,可以帮助解答一下吗?

Open zhangshilong2000 opened this issue 2 years ago • 5 comments

Traceback (most recent call last): File "D:/研究生/图像修复/文献代码/Unbiased Multi-Modality Guidance for Image Inpainting/MMT-main/train.py", line 53, in run() File "D:/研究生/图像修复/文献代码/Unbiased Multi-Modality Guidance for Image Inpainting/MMT-main/train.py", line 40, in run dataloader = DataLoader(dataset, batch_size = args.batch_size, shuffle = True, num_workers = args.n_threads) File "D:\Tools\Anaconda\envs\magic\lib\site-packages\torch\utils\data\dataloader.py", line 262, in init sampler = RandomSampler(dataset, generator=generator) # type: ignore File "D:\Tools\Anaconda\envs\magic\lib\site-packages\torch\utils\data\sampler.py", line 103, in init raise ValueError("num_samples should be a positive integer " ValueError: num_samples should be a positive integer value, but got num_samples=0

Process finished with exit code 1

zhangshilong2000 avatar Sep 13 '23 09:09 zhangshilong2000

路径问题

SHIJILIANG01 avatar Sep 14 '23 01:09 SHIJILIANG01

非常感谢您的回答, Starting training from iteration:0 0%| | 0/40000 [00:00<?, ?it/s] 训练的时候,一直停滞,这个也是路径的问题吗

zhangshilong2000 avatar Sep 14 '23 13:09 zhangshilong2000

非常感谢您的回答, Starting training from iteration:0 0%| | 0/40000 [00:00<?, ?it/s] 训练的时候,一直停滞,这个也是路径的问题吗

能否看看你的路径

SHIJILIANG01 avatar Sep 14 '23 14:09 SHIJILIANG01

张世龙 @.***

 

------------------ 原始邮件 ------------------ 发件人: "yeates/MMT" @.>; 发送时间: 2023年9月14日(星期四) 晚上10:56 @.>; @.@.>; 主题: Re: [yeates/MMT] 你好,在训练过程中出现如下问题,可以帮助解答一下吗? (Issue #3)

非常感谢您的回答, Starting training from iteration:0 0%| | 0/40000 [00:00<?, ?it/s] 训练的时候,一直停滞,这个也是路径的问题吗

能否看看你的路径

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

zhangshilong2000 avatar Sep 15 '23 02:09 zhangshilong2000

image image 训练的时候停滞不前

zhangshilong2000 avatar Sep 17 '23 11:09 zhangshilong2000