ENGLISH

Exploring Deepfakes: Deploy powerful AI techniques for face replacement and more with this comprehensive guide

Book information

Publisher
Packt Publishing
Year
2023
ISBN
1801810699, 9781801810692
Language
english
Format
PDF
Filesize
10 MB (10578654 bytes)
Pages
192\192
Time added
2023-04-08 07:07:30

Description

Master the innovative world of deepfakes and generative AI for face replacement with this full-color guide Purchase of the print or Kindle book includes a free PDF eBook Key FeaturesUnderstand what deepfakes are, their history, and how to use the technology ethicallyGet well-versed with the workflow and processes involved to create your own deepfakesLearn how to apply the lessons and techniques of deepfakes to your own problemsBook Description Applying Deepfakes will allow you to tackle a wide range of scenarios creatively. Learning from experienced authors will help you to intuitively understand what is going on inside the model. You'll learn what deepfakes are and what makes them different from other machine learning techniques, and understand the entire process from beginning to end, from finding faces to preparing them, training the model, and performing the final swap. We'll discuss various uses for face replacement before we begin building our own pipeline. Spending some extra time thinking about how you collect your input data can make a huge difference to the quality of the final video. We look at the importance of this data and guide you with simple concepts to understand what your data needs to really be successful. No discussion of deepfakes can avoid discussing the controversial, unethical uses for which the technology initially became known. We'll go over some potential issues, and talk about the value that deepfakes can bring to a variety of educational and artistic use cases, from video game avatars to filmmaking. By the end of the book, you'll understand what deepfakes are, how they work at a fundamental level, and how to apply those techniques to your own needs. What you will learnGain a clear understanding of deepfakes and their creationUnderstand the risks of deepfakes and how to mitigate themCollect efficient data to create successful deepfakesGet familiar with the deepfakes workflow and its stepsExplore the application of deepfakes methods to your own generative needsImprove results by augmenting data and avoiding overtrainingExamine the future of deepfakes and other generative AIsUse generative AIs to increase video content resolutionWho this book is for This book is for AI developers, data scientists, and anyone looking to learn more about deepfakes or techniques and technologies from Deepfakes to help them generate new image data. Working knowledge of Python programming language and basic familiarity with OpenCV, Pillow, Pytorch, or Tensorflow is recommended to get the most out of the book. Table of ContentsSurveying DeepfakesExamining Deepfake Ethics and Dangersand EthicsAcquiring and Processing DataThe Deepfake workflowExtracting faces from the videoTraining a Deepfake ModelSwapping the Face Back into the VideoApplying the lessons of DeepfakesThe future of Deepfakes Cover Preface Title Page Copyright Contributors Table of Contents Part 1: Understanding Deepfakes Chapter 1: Surveying Deepfakes Introducing deepfakes Exploring the uses of deepfakes Entertainment Parody Education Advertisements Discovering how deepfakes work Generative auto-encoders Assessing the limitations of generative AI Resolution Training required for each face pair Training data Looking at existing deepfake software Faceswap DeepFaceLab First Order Model Reface Summary Chapter 2: Examining Deepfake Ethics and Dangers The unethical origin of deepfakes Being an ethical deepfaker Consent Respect Deception Putting it into practice The dangers of deepfakes Reputation Politics Avoiding consequences by claiming manipulation Preventing damage from deepfakes Starving the model of data Authenticating any genuine media Deepfake detection Public relations Public awareness Summary Chapter 3: Acquiring and Processing Data Why data is important Understanding the value of variety Pose Expression Lighting Bringing this variety together Sourcing data Filming your own data Getting data from historical sources Improving your data Linear color Data matching Upscaling Summary Chapter 4: The Deepfake Workflow Technical requirements Identifying suitable candidates for a swap Preparing the training images Extracting faces from your source data Curating training images Training a model Setting up Launching and monitoring training Manual intervention Applying a trained model to perform a swap The alignments file Cleaning the alignments file Fixing the alignments file Using the Preview tool Generating the swap Summary Part 2: Getting Hands-On with the Deepfake Process Chapter 5: Extracting Faces Technical requirements Getting image files from a video Running extract on frame images face_alignments.json face_bbox_{filename}_{face number}.png face_aligned_{filename}_{face number}.png face_mask_{filename}_{face number}.png Getting hands-on with the code Initialization Image preparation Face detection Face landmarking/aligning Summary Exercises Chapter 6: Training a Deepfake Model Technical requirements Understanding convolutional layers Getting hands-on with AI Defining our upscaler Creating the encoder Building the decoders Exploring the training code Creating our models Looping over the training Teaching the network Saving results Summary Exercises Chapter 7: Swapping the Face Back into the Video Technical requirements Preparing to convert video Getting hands-on with the convert code Initialization Loading the AI Preparing data The conversion loop Creating the video from images Summary Exercises Part 3: Where to Now? Chapter 8: Applying the Lessons of Deepfakes Technical requirements Aligning other types of images Finding an aligner Using the library Using the landmarks to align The power of masking images Types of masking Finding a usable mask for your object Examining an example Getting data under control Defining your rules Evolving your rules Dealing with errors Summary Chapter 9: The Future of Generative AI Generating text Recent developments Building sentences The future of text generation Improving image quality Various tactics The future of image quality upgrading Text-guided image generation CLIP Image generation with CLIP The future of image generation Generating sound Voice swapping Text-guided music generation The future of sound generation Deepfakes Sound generation Text-guided image generation Improving image quality Text generation The future of deepfakes The future of AI ethics Summary Index About Packt Other Books You May Enjoy

Similar books

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

2010 · PDF

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

1858 · PDF

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

2022 · PDF

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

1809 · PDF

Professional Linux kernel architecture ''Wrox programmer to programmer''--Cover. - ''What you are reading right now is the result of an evolution over more than seven years: After two years of writing, the first edition was published in German by Carl Hanser Verlag in 2003. It then described kernel 2.6.0. The test was used as a basis for the low-level design documentation for the EAL4+ security evaluation of Red Hat Enterprise Linux 5, requiring to update it to kernel 2.6.18 (if the EAL acronym does not mean anything to you, then Wikipedia is once more your friend). Hewlett-Packard sponsored the translation into English and has, thankfully, granted the rights to publish the result. Updates to kernel 2.6.24 were then performed specifically for this book''--P. ix

Professional Linux kernel architecture ''Wrox programmer to programmer''--Cover. - ''What you are reading right now is the result of an evolution over more than seven years: After two years of writing, the first edition was published in German by Carl Hanser Verlag in 2003. It then described kernel 2.6.0. The test was used as a basis for the low-level design documentation for the EAL4+ security evaluation of Red Hat Enterprise Linux 5, requiring to update it to kernel 2.6.18 (if the EAL acronym does not mean anything to you, then Wikipedia is once more your friend). Hewlett-Packard sponsored the translation into English and has, thankfully, granted the rights to publish the result. Updates to kernel 2.6.24 were then performed specifically for this book''--P. ix

2008 · PDF