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-automaticin your Google Drive. - Replace
input_image.pngwith 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,ffmpegandpython3(version 3.7 is guaranteed to work) installed and added toPATH- Nvidia GPU (optional)
- Clone the repository.
- Replace
input_image.pngwith desired image. Cropping to face is desired. - Execute
start.shor double clickstart.batif on Windows. - Wait for packages to install. Torch takes especially long.
- Answer the Nvidia GPU presence prompt.
- Wait for
result.mp4to be generated in the directory thatstart.shwas 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.shorstart.batif 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.mp3orgenerated.mp4. - It is advisable to keep
venvandvox-cpk.pth.taras they are large and may take more time to redownload.venvmay not be present on Google Colab. Ignore this step if so.