Hello everyone, my name is Piero but since I don't post much here, you probably haven't heard of the things I've made, but I have a LOT of projects coming, so stay tuned!
EDIT Heres an example of what it can make: Video
Anyways, have you ever wanted to take an image and to see what a Machine Learning Model (created by Google!) thinks what a dream would look like with said image! Not only do I want to share my work, but also create a tutorial on how its done here. We'll be using a service called DeepAI, which comes with 10,000 free image processes! Beyond this, I highly reccomend you go check out the other ML Models which they have for use.
- Fork the Repl
- Go to deepai.org.
- Click on the
- Once you have signed up and verified your email, go to your
Dashboardand copy down the
- Go back to your repl in the
sample.envfile, and replace
YOURTOKENwith the api-key you just copied.
- Change the filename from
.env. This will prevent people from seeing your api-key.
- In the
imagesfolder, upload an image with the name
0.jpg, this will be your starting image.
- At the top of the
main.pyfile, you will see a variable by the name of
FRAMESwhich you can change to the total amount of images you want to create.
- Now you can hit the
Runbutton and wait until it completes!
- Now that you have your image sequence, you can use any tool of your liking to convert it into a video. Blender is a solid option, and there are plenty of tutorials online on how to use it, [like this one].
If you have any questions, feel free to mention me and I'll try to get back to you as soon as I can. I hope you enjoyed this little guide and I hope you'll enjoy my upcoming projects. Have a nice day!