roop unleashed Gradio - WIP Thread #66
Replies: 60 comments 96 replies
-
Live camera doesnt work. Heres the traceback:
|
Beta Was this translation helpful? Give feedback.
-
Thanks, was missing the last minute clip parameters. Fixed now, please do a git pull. |
Beta Was this translation helpful? Give feedback.
-
First: Clip Masking leads to an error: Traceback (most recent call last): When scrubbing "Preview face swap" is off. Only works with original face. |
Beta Was this translation helpful? Give feedback.
-
some quick observations (Windows 11, RTX 3080)
thanks |
Beta Was this translation helpful? Give feedback.
-
Awesome. I'm looking forward to trying it. I'll report back tomorrow. |
Beta Was this translation helpful? Give feedback.
-
This is the error its throwing btw im using venv instead of conda
|
Beta Was this translation helpful? Give feedback.
-
Fixed or added in the latest update.
It's meant to position the video to a frame you want to check out. Live-swapping with all options turned on is way too slow (at least on my system).
Of course! I'd like this for every multifile box but this is currently unsupported by gradio. I'm trying to hack this in with CSS/HTML trickery like automatic1111 did with a lot of components but without luck so far. I also had bugs with lots of input files, there seems to be a magic limit of ~400 input files. |
Beta Was this translation helpful? Give feedback.
-
Forgive my silliness but during the install I get the following: This happens when doing the conda commands in the install intructions. Do I need conda in addition to python? |
Beta Was this translation helpful? Give feedback.
-
Anaconda/Miniconda is a way to isolate your Python Installations. This is always a good idea because otherwise you will have many version conflicts. The 1-click installer does this automatically for you but the branch does not of course. If you don't want/need that you can start right away with pip installing the requirements but I'd suggest installing Miniconda |
Beta Was this translation helpful? Give feedback.
-
I’ve been exploring adding support for more ffmpeg codecs (ProRes for more lossless workflows, for example), should I do that for this gradio branch and not the main, or would that port over easily enough if I pull from main to add it? |
Beta Was this translation helpful? Give feedback.
-
Thanks for this. First of all, I understand this is WIP so this post will serve as improving the future of Roop Unleashed. Many issues/recommendations so far:
|
Beta Was this translation helpful? Give feedback.
-
couple more observations
realise it's all still WIP though! thanks |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Just tried the live cam option and it's working very nicely even with enhancer, very good addition! :D |
Beta Was this translation helpful? Give feedback.
-
@C0untFloyd is it possible for the live cam to be smoother? no difference for me between GTX 1070 and RTX 3090, it's like 2FPS on both (no enhancer or anything running). The GPU usage is low as well, it's not taking good advantage of the GPU. I know there's processing time involved but would it be possible to make the buffer a bit later but the cam output smoother? |
Beta Was this translation helpful? Give feedback.
-
@C0untFloyd regarding the new 2.6.5 update:
Again, I think you may already know most or all of these issues and you're probably only revamping the settings page and the new UI for now but saying all this in case you missed something. |
Beta Was this translation helpful? Give feedback.
-
Tried "selected face" method with multiple videos (10 vids with about 4GB total):
tbh I'm not a big fan of the webgui either. the more videos you add, the slower it gets. not that suitable for batch processing (which is what I'm looking for, but no roop fork seems to have that working with face selection) imo. but don't get me wrong: amazing work regardless! |
Beta Was this translation helpful? Give feedback.
-
No hard feelings, I was just disappointed that not many people seem to like the new web UI and honestly I can't figure why one would batch-process so many videos and faces as this is very time and energy consuming. But if that's your thing it's fine with me 😄 |
Beta Was this translation helpful? Give feedback.
-
I need some help from anyone with a solution. Sadly, my output folder is still clearing after the video is processed. The folder sends a temp video file into the output folder and then as soon as it is processed it just vanishes out of thin air with no trace. I used to get something like "video success" but now it just gets stuck at [ROOP.CORE] Finished Yes, I have the latest version. I actually reset my PC and reinstalled all the programs and files with a fresh copy of windows because I was convinced that I had somehow downloaded something from the original Roop that was blocking NSFW content. But the problem is still there. Here is a copy of the last few lines before it pulls the video and vanishes from the output folder. ['ffmpeg', '-hide_banner', '-hwaccel', 'auto', '-y', '-loglevel', 'debug', '-i', 'C:\Users\leade\OneDrive\Documents\roop-unleashed\output\Custom Video 7_fake.mp4', '-i', 'C:\Users\leade\OneDrive\Documents\roop-unleashed\temp\86153d97bc53f0c971406e97c0c14ab45a844508\Custom Video 7.mp4', '-c:v', 'copy', '-map', '0:v:0', '-map', '1:a:0', '-y', 'C:\Users\leade\OneDrive\Documents\roop-unleashed\output\Custom Video 7_fake_final.mp4'] |
Beta Was this translation helpful? Give feedback.
-
The Gradio Web-UI seems to render much slower than when using the old GUI version. On my RTX 3070 I get about 40 FPS when launching using the old GUI, and I get only 2 FPS when using the Gradio Web-UI. Confirmed that public server is off, and I confirmed it's using CUDA cores as well in task manager. Not sure why it's so much slower, I tried closing/restarting multiple times but no change. |
Beta Was this translation helpful? Give feedback.
-
I have the same issue. I tried Rope yesterday and my GPU kicks in on my RTX 2060 Super and renders fast. But, using Gradio, I have 2 FPS. I am not sure what CLIP is, can someone explain? Also, C0ountFloyd, Roop Unleashed Gradio is my favorite app to use of them all. I think that it has the best quality. Personally, I did a lot of testing with the enhancers and I found that Codeformer with the "Original/Enhanced image blend ratio" set to 0.85 produces the most realistic deep fake. I like Codeformer because it is good at matching neck and body skin tones and the face is not overly sharpened to the point that it looks bad. GFPGAN tends to over sharpen and also adds a small amount of pixilation around the edges of the face. Other than the slow FPS processing, Roop Unleashed Gradio is hands down the best choice. |
Beta Was this translation helpful? Give feedback.
-
Just updated to 2.6.8 and as I can see most of the major issues are fixed now, very good job! I will report back if I find any issues that aren't documented in the OP.
This is really nice, just tested it and works perfectly. Here are two suggestions/requests:
I know you're prioritizing the fixes now but I think it would be cool if these features are added some time later in the future. |
Beta Was this translation helpful? Give feedback.
-
@C0untFloyd I discovered an issue and it took me a lot of time trying to figure out why it happens. So I have been trying to swap a few videos I have and every time 2.6.8 finishes processing some of them, the video gets immediately deleted. Tried all of them on unleashed 2.0.3 and all fine. So what I discovered (after a lot of troubleshooting time) is that with the Gradio roop if a video doesn't have an audio track and you don't check the "Skip audio" option the video gets immediately deleted from the output folder after processing is finished. Here's a short video you can test on: sample video without audio Now I can see why some people reported this issue in the comments here and no one knew the cause. |
Beta Was this translation helpful? Give feedback.
-
Fixed and committed, as always it was just a wrong one-liner...thank you! |
Beta Was this translation helpful? Give feedback.
-
hello how to launch this one vs the 2.0.3 version from previous installment. i believe i installed everything correctly. but this is first time for me to use gradio.. the other version was simple for me to understand enough but this one is beyond my head for some reason since first time using gradio... please assist. im sorry to bug you but i would like to learn these things. |
Beta Was this translation helpful? Give feedback.
-
I am using a RTX 3080, the frame/s can reach 30-40. Some video can have an average of 20+. But sometimes, it drops down to 5-10frame/s, Does anyone have any idea what went wrong? |
Beta Was this translation helpful? Give feedback.
-
Closing this now as the gradio version evolved to be the main one. Thanks for all your support & input! |
Beta Was this translation helpful? Give feedback.
-
Can you paste the errors or a screenshot? You actually don't need to have Conda installed, it will also be installed automatically. I tested the installer twice to be sure it's working, this is weird. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for adding the "open output folder" button, makes life easier 😄 also noticed that the enhancer is faster now in the new 2.7.0 version. |
Beta Was this translation helpful? Give feedback.
-
Worked perfectly from one-click installer. Seems like this release is the best to date! Thank you for all your work on this. |
Beta Was this translation helpful? Give feedback.
-
For the brave and adventurous among you, I just made the gradio branch public.
I think you're in for a treat because this has several cool new additions, to name just a few:
Be aware that there is still lots of work to be done, some stuff might break, it's in no way optimized or clean code. However in the future the gradio version will replace the main branch. Before that happens I will create another small QoL and bugfixed version of the TkInter Version (without the new stuff), just in case people want to continue using that one for dubious reasons.
To checkout:
git clone -b gradio --single-branch https://github.com/C0untFloyd/roop-unleashed.git
cd roop-unleashed
conda create -n mynewshinyroop
conda activate mynewshinyroop
pip install -r requirements.txt
Run it with the same parameters as previously e.g.
python run.py --execution-provider cuda --video-encoder libvpx-vp9
For the GUI version you don't need the frame processor parameters anymore.
To update to newer versions:
cd roop-unleashed
conda activate mynewshinyroop
git pull
pip install -r requirements.txt
Please limit posts about this version to this thread only, thank you!
Google Colab https://github.com/C0untFloyd/roop-unleashed/blob/gradio/roop-unleashed.ipynb
Changelog & Issues:
Known Issues
- Defaults for public server & GPU might be problematicExtra colab config should solve thisv2.6.9 2023-08-09
Bugfix: Deleting wrong videofile if no audio (thanks to @eniora for finding)
Added det_size checkbox to toggle between default and 320x320 size (has to be currently used BEFORE any swapping action!)
Added Mask Preview to text masking
Added colab config to have public server defaulting to false
Some layout changes
More code cleanup
v2.6.8 2023-08-08
Bugfix: Possible Memory Leak
Swapping multiple faces now possible
Added selection of multiple faces from same frame until done
Added setting for live-cam activate from start
Better handling of changing settings and writing cfg
Added most missing arguments to settings
Provider,Max. Threads, Video Quality and Encoder can be changed on the fly now
v2.6.5 2023-08-06
Bugfix: Clear output toggle
Checkbox & Dropdown values in settings are applied at selection
Added Refresh Button to Preview (for re-applying changes made)
Added cutting of videos to Extras Tab
v2.6.4 2023-08-05
Bugfix: Empty Frames in Preview
Bugfix: Torch not using GPU
Default config should have public server enabled for colab
Added checkbox for permanently scrubbing with faked content
Added DMDNet generic version, currently works only for low quality faces smaller than 512x512.
v2.6.2 changes 2023-08-03
Bugfix: GFPGAN not using GPU
Bugfix: Clear output toggle not working
Bugfix: Num threads ignoring arguments
Bugfix: Blend Ratio
Added face enhancement only processing faces bbox for speed increase
v2.6.0 changes 2023-08-02
Bugfix: CodeFormer missing upscaler
Bugfix: Slider values not being used
Restore Audio re-added
Added Google Colab
Setting for output clearance
Error handling for target faces not selected
txt2clip using cuda when available
v2.5.4 changes 2023-07-28
Bugfix: Removed upscaler from CodeFormer
Bugfix: Removed txt2clip from default chain
Bugfix: Missing some global vars
Added Settings for Image & Video Output Formats
Layout change in Settings
Extract Frames from Video implemented
Info Messages for small Utility Functions e.g. Clean Temp
Beta Was this translation helpful? Give feedback.
All reactions