Generates a Baka Mitai meme from an input image
- https://colab.research.google.com/drive/1kUKt-MJ8ThEkqWsiLwRmEJOIdwqwbzyr?usp=sharing
- Ensure the runtime type is
GPU
. - Press run on each button except the second last one, in order.
- Wait for previous execution to finish before pressing the next button.
- Ignore non-fatal warnings or errors. Report fatal errors via the Issues tab.
- Navigate to the folder named
bakamitai-automatic
in your Google Drive. - Replace
input_image.png
with desired image. Cropping to face is desired. - Press run on the second last button.
- Answer the Nvidia GPU presence prompt with
y
. - Check the same folder that you navigated to in step 4 for
result.mp4
.
git
,ffmpeg
andpython3
(version 3.7 is guaranteed to work) installed and added toPATH
- Nvidia GPU (optional)
- Clone the repository.
- Replace
input_image.png
with desired image. Cropping to face is desired. - Execute
start.sh
or double clickstart.bat
if on Windows. - Wait for packages to install. Torch takes especially long.
- Answer the Nvidia GPU presence prompt.
- Wait for
result.mp4
to be generated in the directory thatstart.sh
was executed in. - Enjoy
- If Google Colab refuses to
cd
, factory reset the runtime.Runtime -> Factory reset runtime
.
To repeat the process, delete generated.mp4
in working-dir
(or click the last run button in Colab). Replace input_image.png
with another image and
- Colab: press the button that runs
start.sh
. - Local: run
start.sh
orstart.bat
if on Windows.
- You are free to delete
working-dir
, but this is equivalent to cloning the repository and settinginput_image.png
. - You can delete small files like
bakamitai_template.mp4
,dmdn.mp3
orgenerated.mp4
. - It is advisable to keep
venv
andvox-cpk.pth.tar
as they are large and may take more time to redownload.venv
may not be present on Google Colab. Ignore this step if so.