Skip to content
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

RuntimeError: DataLoader worker (pid 11056) is killed by signal: Aborted. #117

Open
shui-tian-ju-shi opened this issue Oct 28, 2024 · 5 comments

Comments

@shui-tian-ju-shi
Copy link

image
image
image
image
image
image

开始训练后,运行到下面这行代码,出现了大量图片中的问题,我无法找出原因。
for iteration, data_dict in tqdm(enumerate(train_data_loader),total=len(train_data_loader)):

衷心希望能得到您的帮助!

@shui-tian-ju-shi
Copy link
Author

我仔细排查了一下错误,发现是def load_rgb(self, file_path):里
if not file_path[0] == '.':
file_path = f'./{self.config["rgb_dir"]}\'+file_path
if语句的判断条件有点问题,我将'.'改为'/'以跳过这条判断语句。训练得以正常进行。不过训练到第十遍的时候,进程依旧被杀死,我的worker设置为4,。我将继续解决这个问题。

@shui-tian-ju-shi
Copy link
Author

image
此外, 我发现图片中的问题,是由于某些视频文件夹中的视频帧数,没有32张导致的,我认为这不足以导致严重的后果。

@gooldenboom
Copy link

您好,我也遇到了同样的问题不知道怎么解决,请问大师您解决了吗?

@shui-tian-ju-shi
Copy link
Author

shui-tian-ju-shi commented Dec 13, 2024 via email

@gooldenboom
Copy link

非常感谢大师的回答,我去尝试一下

我当时遇到这个问题,也不是个大问题。我debug检查了一下,是数据集加载的代码部分,我发现有一条逻辑判断的错误,导致数据无法加载,我修改之后,数据加载正常,问题就解决了。反正我的解决办法也没别的,你可以debug检查一下你使用的检测器对应的dataset.py文件。看看是哪一条语句的执行出了问题,解决就好了。

------------------ Original ------------------ From: gooldenboom @.> Date: Fri,Dec 13,2024 10:12 PM To: SCLBD/DeepfakeBench @.> Cc: shui-tian-ju-shi @.>, Author @.> Subject: Re: [SCLBD/DeepfakeBench] RuntimeError: DataLoader worker (pid 11056)is killed by signal: Aborted. (Issue #117) 您好,我也遇到了同样的问题不知道怎么解决,请问大师您解决了吗? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants