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

27 commits

Author SHA1 Message Date
torzdf
0e63c2967b documentation update 2020-07-25 09:09:38 +01:00
torzdf
03d2d179a9 scripts.extract - Save jpg thumbnails to alignments file 2020-07-09 11:41:03 +00:00
torzdf
f19a04505c Core updates 2020-06-27 18:48:50 +00:00
torzdf
8d20fb8e8c Bugfix - lib.image - Make patched ffmpeg reader optional 2020-03-29 11:43:52 +01:00
torzdf
3d88630f4f
Core Update (#995)
* lib.alignments - Add Video Meta Data methods

* lib.image - Monkey Path ImageIO for video scanning
2020-03-23 13:15:21 +00:00
torzdf
ca4060f45f lib.image.read_image_batch - Force deterministic return order 2020-01-25 19:33:50 +00:00
torzdf
4e654eb328 plugins.train.trainer - Speed up mask caching 2019-12-09 12:50:27 +00:00
torzdf
efb0aeab91 Merge branch 'master' into staging 2019-12-08 10:54:50 +00:00
torzdf
ac1cf8fbe9 lib.alignments: improve re-extraction speed by 500% 2019-12-08 10:54:26 +00:00
torzdf
47ab001b0d Merge branch 'master' into staging 2019-12-07 19:25:30 +00:00
torzdf
8f21bb073d bugfix: lib.image - Get video filelist correctly 2019-12-07 19:25:17 +00:00
torzdf
ccddb553bc Merge branch 'master' into staging 2019-12-07 18:23:03 +00:00
torzdf
aca1f44472 bugfix - Extract - Generate dummy video filenames correctly 2019-12-07 18:14:32 +00:00
torzdf
43a4d06540
Smart Masks - Training Implementation (#914)
* Smart Masks - Training

- Reinstate smart mask training code
- Reinstate mask_type back to model.config
- change 'replicate_input_mask to 'learn_mask'
- Add learn mask option
- Add mask loading from alignments to plugins.train.trainer
- Add mask_blur and mask threshold options
- _base.py - Pass mask options through training_opts dict
- plugins.train.model - check for mask_type not None for learn_mask and penalized_mask_loss
- Limit alignments loading to just those faces that appear in the training folder
- Raise error if not all training images have an alignment, and alignment file is required
- lib.training_data - Mask generation code
- lib.faces_detect - cv2 dimension stripping bugfix
- Remove cv2 linting code

* Update mask helptext in cli.py

* Fix Warp to Landmarks
Remove SHA1 hashing from training data

* Update mask training config

* Capture missing masks at training init

* lib.image.read_image_batch - Return filenames with batch for ordering

* scripts.train - Documentation

* plugins.train.trainer - documentation

* Ensure backward compatibility.
Fix convert for new predicted masks

* Update removed masks to components for legacy models.
2019-12-05 16:02:01 +00:00
torzdf
9db67cee43 bugfix - ImagesSaver - Auto prepend destination folder 2019-11-29 12:13:06 +00:00
torzdf
57b24dfedb Bugfix: Extract - Fix serial processing 2019-11-14 12:31:13 +00:00
torzdf
baac4f53bf extract bugfixes - post_processing, correctly reference aligned face 2019-11-13 22:05:44 +00:00
torzdf
73ff840fbd scripts.extract - code optimizations
Limit queue sizes to reduce RAM usage
Rename lib.image.BackgroundIO to ImageIO
Create separate ImagesLoader and ImagesSaver classes
Load/Save images from centralized lib.image.ImageIO
scripts.extract documentation
2019-11-13 19:16:25 +00:00
torzdf
11ab910c5e Reinstate fast frame count for convert and extract. Exit early if count is wrong. 2019-10-31 11:55:51 +00:00
torzdf
8085b4a80b lib.logger - Remove newlines from log messages 2019-10-31 11:19:29 +00:00
torzdf
b1dd0dbdc5 bugfix: lib.image - Ensure video frame count is always read correctly 2019-10-31 01:45:27 +00:00
torzdf
4edc25448f Mask tool
tools.mask - A tool for creating masks for existing alignments files and outputting mask previews
lib.image.BackgroundIO - A background image loader and saver
2019-10-25 18:08:20 +00:00
torzdf
86dda1212c Revert lib.image.read_image to standard loading 2019-10-23 18:34:27 +00:00
torzdf
25a2ac95c3 Add faster image hash reading mechanism
Add batch hash reader to lib.images
Utilize batch hash reader in tools.alignments
2019-10-21 23:10:26 +00:00
kvrooman
995a857154 Smart Mask Exposure for Extraction & Training (#831)
Smart Masks - Initial Commit
2019-10-07 16:16:18 +01:00
torzdf
e0b0bc8f43 Increase count_frames_and_secs timeout 2019-10-04 10:34:15 +00:00
torzdf
66ed005ef3
Optimize Data Augmentation (#881)
* Move image utils to lib.image
* Add .pylintrc file
* Remove some cv2 pylint ignores
* TrainingData: Load images from disk in batches
* TrainingData: get_landmarks to batch
* TrainingData: transform and flip to batches
* TrainingData: Optimize color augmentation
* TrainingData: Optimize target and random_warp
* TrainingData - Convert _get_closest_match for batching
* TrainingData: Warp To Landmarks optimized
* Save models to threadpoolexecutor
* Move stack_images, Rename ImageManipulation. ImageAugmentation Docstrings
* Masks: Set dtype and threshold for lib.masks based on input face
* Docstrings and Documentation
2019-09-24 12:16:05 +01:00