Sirwin
Sirwin

DeepFake: Creating Them From Google Colab


Deepfakes are videos that use artificial intelligence to replace one person's face with another's, creating an illusion that the modified person is speaking or acting. This technology can have multiple applications, such as entertainment, education, research or journalism. For example, you could create a deepfake of a famous actor playing a historical figure, or of a teacher explaining a lesson in another language or simply to create memes of famous people, the possibilities are endless, they only depend on the creator's imagination.

However, it can also have risks and negative consequences, such as manipulation, misinformation, harassment or violation of privacy. For example, a deepfake could be created of a politician saying something false or compromising, or of an ordinary person being the victim of a prank or extortion.

To create a deepfake, specialized software is needed that can train and apply an artificial intelligence model capable of generating realistic faces. These programs typically require high computing power and a large amount of data, making them difficult for the general public to access.

However, there is a way to create a deepfake from Google Colab, a platform that allows you to run Python code in the cloud using free GPUs. To do this, you need to follow some steps:

πŸ“Œ First, you must have a Google account and access Google Colab.

πŸ“Œ Second, you should choose an open source deepfake generator, such as DeepFaceLab or Roop, and copy its GitHub repository to your Google Drive. In my case, for testing, I used: https://colab.research.google.com/github/ardha27/FaceFusion-Colab/blob/main/FaceFusion_Colab.ipynb. This opens the deepfake generator. Then all you have to do is follow the instructions to install the dependencies, configure the options and run the code cells.

STEPS:

βœ” Open the link: https://colab.research.google.com/github/ardha27/FaceFusion-Colab/blob/main/FaceFusion_Colab.ipynb, as I explained previously, this was the one I used, but there are many others.

βœ” Then connect (#1) and execute cells #2, #3, #4.

bac6c662759a7d87dd747d1342bd00ce5426fe7914820e0eda3c1d439e980c01.png

βœ” Go to the link: https://xxxxxxxxxxxxxxxxxx.gradio.live (#5). A new tab will open in your browser.

a4a80029b61134e08253c19f34dc20d6b107ee45d4d6a7470d05c874d8ad46b6.png

βœ” In this new tab you just have to upload the photo (#6) and the video (#7), make some adjustments with the available options to achieve a better result and execute (#8).

c8eb6fe688766b9a71f4c6e974f427899e055a9f7e263def62e4261e6c759758.png

βœ” Now you just have to wait patiently (πŸ˜€πŸ˜€πŸ˜€ very patiently πŸ˜€πŸ˜€πŸ˜€) for the model to generate the video. Finally, download the resulting video and enjoy your deepfake. On platforms like YouTube, Bitchute, etc., you will find fantastic and very well explained tutorials. If you are interested in the topic, I recommend that you look for them.

These were my results (Sorry for not being able to upload the videos but I have no idea how to do it on this platform):

βœ” Original: https://drive.google.com/file/d/1Rw_FrPnv5ofpQF7CD1gBRkcS5bQ4jQsh/view?usp=sharing

❌ DeepFakes: https://drive.google.com/file/d/1AfRPzdPyeAZIkC7uXuFcU1EkXYL9Ch_d/view?usp=sharing

Keep in mind that making a deepfake from Google Colab has some limitations, such as storage space, execution time, and usage policies. Google has banned the training of AI systems that can be used to generate deepfakes on its platform, so it may restrict your ability to use Colab in the future. Additionally, you should respect the copyright and privacy of the people who appear in the videos, and not use deepfakes for malicious or illegal purposes.

I can only remember that deepfakes are a fascinating but also dangerous technology, which can have positive or negative uses depending on the purpose and ethics with which they are used. If you want to create a deepfake from Google Colab, you must follow the steps indicated above, but also be aware of the legal and moral implications it entails. Remember that not everything you see on the internet is real, and that you must be critical and responsible with the information you consume and share.

Another thing I just remembered, the developers of this software taking into account the possible unethical applications of these programs took preventive measures, so it has a built-in control that prevents it from working on inappropriate media and/or material classified NSFW (Not Suitable for Work 😀😀😀), and although it is very easy to "skip" this block, for everyone's sake, I better not even mention the topic 😎😎😎, just put it to good use and enjoy it.


TOOLS, PLATFORMS & APPLICATIONS

πŸ’²Β Bulb,Β Publish0xΒ - Earn daily Crypto, NTFs or Money for reading or writing articles and interacting with publications.

πŸ’² AddmeFast - Earn daily Crypto. Promote and increase the sources of traffic, visibility, reach and reputation of your social networks.

πŸ’² Bitrefill - Living with crypto, a philosophy of financial freedom. Travel, play, eat and live with BTC.

πŸ’² QuantFuryΒ (Invite Code: JRRU2593) - Trading - Join using my invite code: JRRU2593 and we will both receive a free share like AAPL or UBER, or crypto like BTC or ETH (up to $250). Trade and invest with no commissions or borrowing fees at real-time spot prices from the NYSE, Nasdaq, CME, Bats, Binance and Coinbase exchanges. With a good marketing management you have the possibility of obtaining passive profits without operating in the market.

πŸ’² StormGainΒ - Trading - They can startΒ without investment, capital is acquired for free with the Bitcoin Cloud Miner.Β 

πŸ’² BingX - Trading - Called "The People's Exchange", it places a strong emphasis on social trading and offers its clients extensive features: new user rewards, demo account, high leverage, spot trading, standard and perpetual futures, grid trading, copy feed , etc.

πŸ’²Β CoinEX, KuCoin - Trading - They offer different bonuses.

πŸ’²Β Bitcoin Spark - ICO - Initial Coin Offerings.


Author's Note: The opinion expressed here is not investment advice, is provided for informational purposes only, and reflects the opinion of the author only. I do not promote, endorse or recommend any particular investment. Investments may not be right for everyone. Every investment in the market and every trade you make involves risk, so you should always do your own research before making any decision. I do not recommend investing money that you cannot afford to chair, as you could lose the entire amount invested.

πŸ’–πŸ’–πŸ’– Contribute To The Author πŸ’–πŸ’–πŸ’–

How do you rate this article?

27


CryptoEntrepreneurs
CryptoEntrepreneurs Verified Member

Trader, entrepreneur, freelancer, enthusiast and promoter of globalization, adoption and understanding of cryptocurrencies and new information and communication technologies (ICTs)


A bit of everything ...
A bit of everything ...

β€œEveryone has their own forms of expression. I think we all have a lot to say, but finding ways to say it is more than half the battle." Criss Jami (existentialist philosopher, poet, essayist, musician, singer, designer and lyricist). | "Everything we hear is an opinion, not a fact. Everything we see is a perspective, not the truth". Marcus Aurelius (Roman Emperor).

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.