-
Notifications
You must be signed in to change notification settings - Fork 111
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
Unusing frames hang in memory #6
Comments
The pytorch model use Vram, of course some parts of the core require some ram. I'm still looking for a way to fix this leak. |
Confirmed. Getting this leak too. |
I was able to keep it running, despite this huge leak. Here`s how.
|
Pytorch return error string "buy new ram? " lmao |
I found the leak, it is in DainDataset.py line 49.
The dict where this image is added is still referenced by member variable self.combos, so you effectively store the entire raw dataset in RAM when iterating over the DataLoader. Just deleting this line should fix the leak. I didn't see combo["original"] being used anywhere. Another possible fix would be changing line 48 from
to
|
Can you please upload the modified program as a package? Because there are many people, including me, who are not familiar with Python. Thank you very much. |
@lmichalke File "Dain-App/my_DAIN_class.py", line 1102: Deleting line 49 in DainDataset.py will cause an error. |
Try the other thing I suggested. |
i can't process 20 minutes video because all processed frames remain in memory and there is no free space for a new frame.
as you say "Only VRAM using in DAINAPP" wtf?
The text was updated successfully, but these errors were encountered: