Comments (13)
Like I know the Gradio hash... anyway, I gonna fix that asap. Thanks for the report.
from facefusion.
Could you help me understanding the issue by providing some screenshots? I doubt it is loaded 2 times.
from facefusion.
Sure. I deleted /tmp/gradio
to make sure nothing exists.
Then I drag and drop the video into the target zone.
And if you check /tmp/gradio
now...
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.
from facefusion.
This is indeed an issue cause by the my integration.
To have just one drop area for images and videos I use gradio.File
instead of gradio.Image
and gradio.Video
next to each other. According to the media type I display gradio.File
instead of gradio.Image
.
I didn't expect they load that file twice to the RAM.
from facefusion.
It happens with every asset. The face image you upload to the "source" zone, it happens too (if that helps)
from facefusion.
The source.py
is made the same way like the target.py
- not because it is needed but to have the same UI concept.
from facefusion.
Could be solved either with Tabs or by unloaded the File components once the media type is known.
from facefusion.
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
from facefusion.
I agree... but that needs lot of refactoring
from facefusion.
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()
from facefusion.
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.
from facefusion.
I created a issue: gradio-app/gradio#5809
Please vote it up!
from facefusion.
I resolved this as wontfix... closed on the Gradio side - the decision is made that we move away from this framework.
from facefusion.
Related Issues (20)
- OpenCV error "cv2.error: OpenCV(4.8.1) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\resize.cpp:4062: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'" HOT 1
- 2.5.2version lip_syncer not work HOT 2
- Exception in callback _ProactorBasePipeTransport._call_connection_lost(None) HOT 1
- Frame processor face_swapper could not be loaded HOT 1
- Webcam Mode [GPU?] HOT 1
- do you have specific version for ffmpeg/opencv for pytorch2.1+cuda118 HOT 3
- Хобби
- K-Lite CODEC pack HOT 1
- error for running the app HOT 1
- No audio output result HOT 1
- public link using gardio HOT 1
- i installed facefusion for cuda 11.8 and he dont work HOT 1
- ERROR: Could not find an activated virtualenv (required). HOT 1
- Preview interface of swap failure HOT 1
- Wav2lip doesn't work, and I use a Mac, there is no instruction on installing codec HOT 3
- DF
- [feat.] Using Live Streaming as Input HOT 1
- hi,where the models from?how can i push my models? HOT 1
- Future plans for additional lip sync models to implement? HOT 1
- is there some bug in calculate total face frames? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facefusion.