-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
To turn your picture into animations, you can use the algorithm called AnimeGANv2, a deep learning algorithm that transforms real-world scenes into anime-style images. The technical nitty-gritty is beyond the scope of this blog, but if you’d like to learn more, feel free to check out this GitHub.
rom PIL import Image import torch import IPython from IPython.display import display # upload images from google.colab import files uploaded = files.upload() # https://github.com/bryandlee/animegan2-pytorch # load models and face2paint utility function model_facev2 = torch.hub.load("bryandlee/animegan2-pytorch:main", "generator", pretrained="face_paint_512_v2") face2paint = torch.hub.load("bryandlee/animegan2-pytorch:main", "face2paint", size=512) for INPUT_IMG in ['KatLi.JPG']: img = Image.open(INPUT_IMG).convert("RGB") out_facev2 = face2paint(model_facev2, img) # display images display(img) display(out_facev2)