-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Videos are copied twice to RAM #55
Comments
Could you help me understanding the issue by providing some screenshots? I doubt it is loaded 2 times. |
Sure. I deleted Then I drag and drop the video into the target zone. And if you check 2 folders with different hash but the same video. Since this is mounted to RAM it's always consuming double RAM than needed. I know I can move the temp folder to a disk but in RAM is fast and nice, it's just that it shouldn't be here duplicated. |
This is indeed an issue cause by the my integration. To have just one drop area for images and videos I use I didn't expect they load that file twice to the RAM. |
It happens with every asset. The face image you upload to the "source" zone, it happens too (if that helps) |
The |
Unloading the old "file" instance and keeping the "video" or "image" one seems to be a better solution to me, so the UI doesn't get more complex without needing |
I agree... but that needs lot of refactoring |
why? just when the file is uploaded... there is already 2 times, remove the old one with os.remove() |
Like I know the Gradio hash... anyway, I gonna fix that asap. Thanks for the report. |
The good news: source_file and target_file are no longer used across the application. I use source_image, target_image and target_video now. The bad news: unloading the file components does not result in the wanted behavior. This might stay unfixed for 1.1.0 in case nobody sends a pull request until tomorrow. |
I created a issue: gradio-app/gradio#5809 Please vote it up! |
I resolved this as wontfix... closed on the Gradio side - the decision is made that we move away from this framework. |
When a new video is uploaded to the UI, it appears 2 times (with different folder names) inside
/tmp/gradio
, which is mounted to the RAM in my system, so the RAM usage is doubled. Any idea why this happen? I can't find where the problem isThe text was updated successfully, but these errors were encountered: