1
0
Fork 0
mirror of https://github.com/deepfakes/faceswap synced 2025-06-09 04:36:50 -04:00
Commit graph

139 commits

Author SHA1 Message Date
torzdf
105af8a02a GUI Tweaks 2019-08-25 11:07:34 +01:00
torzdf
a90a1fe7d8 GUI: Color Update. Linix height fix 2019-08-25 01:13:42 +00:00
torzdf
b36b527276 GUI Tweaks
- Fix tootlp formatting
- Revert to single column view
- Fix borders on ungrouped items
- Add individual tooltips for Radio options
- Add more groups
- Remove forced fullscreen
2019-08-25 00:16:56 +01:00
torzdf
3291fc8a2e Tooltips on FileBrowser Buttons 2019-08-24 20:57:19 +01:00
torzdf
dd3288672a GUI Update
- Launch in fullscreen
- Expand Control Helper. Clean up config popup
- Standardize and overhaul GUI for CliOpts
2019-08-24 20:40:44 +01:00
torzdf
0b3d70e2e0 GUI Control Handler change 2019-08-23 17:36:04 +01:00
torzdf
eb84869841 GUI Move control helper utils to own module 2019-08-23 17:17:43 +01:00
torzdf
e1fdb25673 Add grouping for GUI options 2019-08-23 02:48:59 +00:00
torzdf
66c0ffa7de Training bugfix: Set training stop flag outside of thread 2019-08-16 00:09:42 +00:00
torzdf
f68659e65b bugfix: GUI Nonetype error on training completion 2019-08-15 17:05:49 +00:00
kilroythethird
62c1d4346f Catch 0 size images earlier + plaidml version + minor gui update (#829) 2019-08-07 11:15:05 +01:00
torzdf
c094128ec9 bugfix: GUI: Display system info - show error message on failure 2019-07-30 17:27:10 +00:00
torzdf
286f6b28b3 Bugfixes
- Fix filter/nfilter for convert
- Remove existing snapshot folder before creating if it pre-exists
- Don't initialize training session until after first save. "Nonetype" session fix
2019-07-29 16:53:04 +00:00
torzdf
c3adc9311e Update GUI Graph + Stats when model has finished saving 2019-07-26 17:51:18 +00:00
torzdf
2610eff64d Bugfix: GUI: Progress bar on times over 1 hour (extract/convert) 2019-07-26 16:39:24 +00:00
torzdf
0d4f5cf485 Bugfixes: PingPong Training
Print loss correctly for PingPong Training
Don't load Analysis stats for PingPong Training
2019-07-25 22:15:12 +00:00
torzdf
5cb0bae684 Bugfix: GUI: Extract/convert preview - build correct number of placeholders 2019-07-25 18:22:33 +00:00
torzdf
91dbcbdf0e Bugfixes
Preview for extract/convert: Output debug info on error and pass
Analysis: Training graph. Correctly order the sessions
2019-07-25 14:15:47 +00:00
torzdf
5c17417d4d Training: Add Multi-Output Support
- Name output nodes of models
- Add support for multiple outputs in models and in training
- Update loss output format for cli and gui
- Sort graphs tabs on training
- Fix analysis graph for new loss names
- Multi output support in convert
2019-07-24 12:32:21 +00:00
torzdf
5f734181ac Update icons 2019-07-18 00:21:22 +01:00
torzdf
ae259e993f Add .mpg file extension support 2019-07-17 01:00:11 +00:00
torzdf
dafde78618 Fix Previews for Extract/Convert when window is too small to fit items 2019-07-14 23:35:23 +00:00
torzdf
a757a4aa88 GUI: Preview for convert
Display preview when outputting to a stream container (e.g. video, gif)
2019-07-08 11:29:17 +00:00
torzdf
2f0fe704af Fixups
GUI: Fix thumbnail calculation + add borders
cv2-dnn aligner: Remove debug code
Convert: FFMpeg plugin - retry muxing audio on failure and properly error handle
2019-07-06 16:27:11 +00:00
torzdf
76d18c87d7 Fixups
Dependency Updater: Improve by pluging in to setup.py
setup.py: Bugfix handling of Conda aliases
GUI: Revert console background colour
sysinfo: Handle errors in obtaining information
2019-07-03 11:07:21 +00:00
torzdf
22069f5d23 LongRunningTask bugfix 2019-07-03 09:11:58 +00:00
torzdf
eb2d9a4ef4 Fix for process not terminating from GUI 2019-07-02 22:46:11 +00:00
torzdf
e1fca14716 Add Restore Model Tool
Tool: Add tool to restore models from backup
Snapshot: Create snapshot based on total iterations rather than session iterations
Models: Move backup/snapshot functions to lib/model
Training: Output average loss since last save at each save iteration
GUI: display_page.py: minor logging update
2019-07-01 23:28:31 +00:00
torzdf
b0d57fd560 Color code log messages in GUI Console 2019-06-30 16:04:22 +00:00
torzdf
533025215d GUI responsiveness and feature updates
- Add error handling to LongRunningTask
- Analysis: Fix timestats bug for missing session data
- Training: Update training graph inside LongRunningTask
- Training: Smoothing Amount Slider geometry fix
- Training: Auto update Analysis tab on training start and save interval
- Scripts: Keep control of the UI when terminating by terminating using LongRunningTask
2019-06-28 16:34:32 +00:00
torzdf
ebea2b7142 Analysis Fixups
- Move stats calculations to LongRunningTasks
- Fix divide by zero error on rate calculations
2019-06-27 18:27:47 +01:00
torzdf
4ce8edf689 Add LongRunningTask class to GUI Utils 2019-06-27 12:12:41 +01:00
torzdf
0a7e5d397e Graphing Updates
Add smoothing to Analysis and Training Graph
Replace Trend with Smoothing on Training Graph
Add Smoothing Parameter to Training Graph
2019-06-26 19:52:24 +01:00
torzdf
88fbd433a8 Fixups
- Training: Replace -ac (augment-color) option with -nac (no-augment-color) option (color augmentation on by default)
    - Analysis: Correctly display currently loaded session
    - Analysis: Cursor events in graph popup
2019-06-25 23:46:39 +00:00
torzdf
e2ed46552d Fix typo 2019-06-25 18:05:30 +00:00
torzdf
9265b64fd2 GUI Fixups
- Analysis: Handle missing session Ids
- Analysis: Handle invalid data selections
- Analysis: Don't update graph on check box selection
- Analysis: Add cursor events to analysis tab
- Analysis: Change default graph view
- Training: Prevent GUI from attempting to close graphs which do not exist
- Extract/Convert: Make file extensions case-insensitive for preview
- Progress bar: Make compatible for downloads
- Progress bar: Add TQDM Description to progress bar stats text
2019-06-25 18:01:51 +00:00
torzdf
79a61002b5 Update Dependencies Script
- Add script `update_deps.py` to automatically update dependencies
- Call update_deps.py when checking for updates from the GUI
- Update setup.py to respect requirements.txt sys_platform tags
- Update INSTALL.md
2019-06-24 00:31:47 +01:00
torzdf
19f97a53e5 Fix Timeout issue when terminating training on Windows 2019-06-23 19:37:04 +01:00
torzdf
3c80794ff8 GUI: Show more previews for extract and convert 2019-06-14 12:25:29 +00:00
torzdf
0eff0a1719 Config Changes + Bugfixes
Bugfix: Fully disable keypress monitor for GUI
Bugfix: Preview - Handle missing alignments file
Config changes:
    - Separate plugin defaults into their own files
    - Move mask_type to global training config
    - Add ability to pass in custom config files
2019-06-11 01:13:42 +00:00
torzdf
98db63c585 Bugfixes
- Switch to correct Tools tab when loading recent file.
- Fix on-the-fly conversion cuDNN error
2019-06-08 15:39:14 +00:00
torzdf
b80f54eee3 More responsive FaceSwap update code 2019-06-05 23:40:02 +01:00
torzdf
a5d1d60992 Minor changes
Convert - Force prediction batchsize to 1 when converting on CPU
Training: Move snapshot saving to outside of the save threads to avoid race condition
GUI Summary stats. Show iteration count for current training session (fixed to last save amount).
2019-06-04 12:43:49 +01:00
torzdf
236c35f11a
Convert settings tool (#737)
* Initial prediction pipeline and display

* Patch faces from convert pipeline. Load configs

* Add tkinter canvas for image display

* Radio buttons to config gui. Standardise config gui. Remove dssim loss from realface

* Add action frame

* Live update cli options

* Live update config changes

* Quicker frame loading. Refresh faces button callback

* remove debug code

* Add saving and reloading config buttons

* Reduce lag with threading

* Busy indicator + geometry updates

* Fix options canvas resizing

* Add global config saving and resetting

* tools to own tab

* Rename tool to 'preview'

* geometry tweak

* pep8 fixes
2019-05-30 18:15:25 +01:00
torzdf
951bb23954 Bugfix: GUI Analysis - Correctly report iterations and rate 2019-05-18 10:14:57 +00:00
torzdf
27a685383e
Convert refactor (#703)
* Separate predict and implement pool

* Add check and raise error to multithreading

Box functions to config. Add crop box option.

* All masks to mask module. Refactor convert masks

Predicted mask passed from model. Cli update

* Intesect box with mask and fixes

* Use raw NN output for convert

Use raw mask for face adjustments. Split adjustments to pre and post warp

* Separate out adjustments. Add unmask sharpen

* Set sensible defaults. Pre PR Testing

* Fix queue sizes. Move masked.py to lib

* Fix Skip Frames. Fix GUI Config popup

* Sensible queue limits. Add a less resource intensive single processing mode

* Fix predicted mask. Amend smooth box defaults

* Deterministic ordering for video output

* Video to Video convert implemented

* Fixups

- Remove defaults from folders across all stages
- Move match-hist and aca into color adjustments selectable
- Handle crashes properly for pooled processes
- Fix output directory does not exist error when creating a new output folder
- Force output to frames if input is not a video

* Add Color Transfer adjustment method

Wrap info text in GUI plugin configure popup

* Refactor image adjustments. Easier to create plugins

Start implementing config options for video encoding

* Add video encoding config options

Allow video encoding for frames input (must pass in a reference video)
Move video and image output writers to plugins

* Image writers config options

Move scaling to cli
Move draw_transparent to images config
Add config options for cv2 writer
Add Pillow image writer

* Add gif filetype to Pillow. Fix draw transparent for Pillow

* Add Animated GIF writer

standardize opencv/pillow defaults

* [speedup] Pre-encode supported writers in the convert pool (opencv, pillow)

Move scaling to convert pool
Remove dfaker mask

* Fix default writer

* Bugfixes

* Better custom argparse formatting
2019-04-21 19:19:06 +00:00
torzdf
2f5c202168 bigfix: RuntimeWarning: More than 20 figures have been opened. 2019-04-12 23:32:15 +00:00
torzdf
e5fe67cbe4 Bugfix: local variable 'ymin' referenced before assignment 2019-04-12 21:49:22 +00:00
torzdf
0a2d6aea69 bugfix: Gui Tools Menu 2019-04-12 12:28:49 +00:00
torzdf
a8e8f9157b Alignments Tool: Allow merging of many alignments file
Adds multi select functionality to GUI, meaning multiple alignments files can now be selected for merging.

Extract: nFilter, Filter now have a file dialog in gui for selecting 1/multiple files
2019-04-12 08:33:39 +00:00