Skip to content

JakeRoggenbuck/Deepai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deepai

Use the deepdream API and other APIs from deepai to convert, upscale, and change images in interesting ways

Use

Use as CLI

python3 main.py -i ~/Downloads/input_image.jpg -o image.png -n NeuralStyle -s ~/Downloads/vangohg.png

python3 main.py -i ~/Downloads/input_image.jpg -o image.png -n DeepDream

Use as library

from main import DeepImage

# NeuralStyle
style_name = "NeuralStyle"
input_file = "~/Downloads/input_image.png"
output_file = "~/Downloads/output_image.png"
style_image = "~/Downloads/style_image.png"

deep = Deep(style_name, input_file, output_file, style_image)


# DeepDream
style_name = "DeepDream"
input_file = "~/Downloads/input_image.png"
output_file = "~/Downloads/output_image.png"

deep = Deep(style_name, input_file, output_file)
deep.download()

Config

Make the config and get an api key at deepai.org config.py

KEY = "API-KEY"
urls:
    - DeepDream: "https://api.deepai.org/api/deepdream"
    - Colorizer: "https://api.deepai.org/api/colorizer"
    - NeuralStyle: "https://api.deepai.org/api/neural-style"

Example

Example image Example image

About

Use the deepdream API and other APIs from deepai to convert, upscale, and change images in interesting ways

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages