All Projects → ProGamerGov → Protobuf-Dreamer

ProGamerGov / Protobuf-Dreamer

Licence: other
A tiled DeepDream project for creating any size of image, on both CPU and GPU

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Protobuf-Dreamer

channels
go channel patterns
Stars: ✭ 86 (+120.51%)
Mutual labels:  channel, channels
tuile
Tuile (french for tile) is a 2D graphics engine inspired from old hardware and based on layers, tiles sets, tile maps and sprites. Its scanline rendering pipeline makes it perfect for raster effects.
Stars: ✭ 19 (-51.28%)
Mutual labels:  tile, tiled
neural-dream
PyTorch implementation of DeepDream algorithm
Stars: ✭ 110 (+182.05%)
Mutual labels:  tiling, deepdream
Berry
Berry is a simple Tiled Map Loader for Corona SDK.
Stars: ✭ 16 (-58.97%)
Mutual labels:  tile, tiled
Mortgageblockchainfabric
Mortgage Processing App using Hyperledger Fabric Blockchain. Uses channels for privacy and access, and restricts read/write previleges through endorsement policies
Stars: ✭ 45 (+15.38%)
Mutual labels:  protobuf, channels
Driftwood
Driftwood 2D Tiling Game Engine and Development Suite
Stars: ✭ 23 (-41.03%)
Mutual labels:  tile, tiled
etiketai
Etiketai is an online tool designed to label images, useful for training AI models
Stars: ✭ 63 (+61.54%)
Mutual labels:  labels
RESTvsGRPC
Evaluating Performance of REST vs. gRPC
Stars: ✭ 36 (-7.69%)
Mutual labels:  protobuf
Tiled-Amethyst-Example
Simple example for drawing a map made with Tiled with Rust and Amethyst.
Stars: ✭ 16 (-58.97%)
Mutual labels:  tiled
comfy-channel
A 24/7 live video broadcast with automatic content selection and overlays using FFMPEG and Python!
Stars: ✭ 37 (-5.13%)
Mutual labels:  channel
BlueVGA
VGA library for STM32F103C (BluePill) that can manipulate a screen with 28x30 tiles with 8x8 pixels each, in a total resolution of 224x240 pixels with 8 colors using a very low footprint
Stars: ✭ 39 (+0%)
Mutual labels:  tile
stress
Single-purpose tools to stress resources
Stars: ✭ 24 (-38.46%)
Mutual labels:  cpu
iot-dev
Example IoT projects
Stars: ✭ 54 (+38.46%)
Mutual labels:  protobuf
makego
Makefile setup for our Golang projects.
Stars: ✭ 65 (+66.67%)
Mutual labels:  protobuf
homebrew-extensions
🍻 Homebrew tap for PHP extensions
Stars: ✭ 264 (+576.92%)
Mutual labels:  protobuf
ModernOperatingSystems AndrewTanenbaum
My notes after reading 'Modern Operating Systems' book by Andrew Tanenbaum and Herbert Bos.
Stars: ✭ 71 (+82.05%)
Mutual labels:  cpu
pbts-grpc-transcoder
A TypeScript library that provides gRPC to HTTP/1 & JSON transcoding for the protobuf.js library
Stars: ✭ 12 (-69.23%)
Mutual labels:  protobuf
play-grpc
Play + Akka gRPC
Stars: ✭ 31 (-20.51%)
Mutual labels:  protobuf
8800-simulator
A JavaScript simulator to demonstrate the front panel operations of Altair 8800.
Stars: ✭ 65 (+66.67%)
Mutual labels:  cpu
redis-protobuf
Redis module for reading and writing Protobuf messages
Stars: ✭ 153 (+292.31%)
Mutual labels:  protobuf

Protobuf-Dreamer

A tiled DeepDream project for creating any size of image, on both CPU and GPU. Tensorflow should be compiled for either the CPU, or GPU depending on what your prefer. The CPU is slower, but this project should allow anyone to create an image of any size. The tiling code is based on the Tensorflow DeepDream example code. This project was inspired by jnordberg's DreamCanvas project.

In order to control the desired output size, resize your image prior to running pb_dreamer.py. Any "blurriness" caused by resizing a smaller image to a larger size, should disappear after the DeepDream process.

Dependencies:

sudo apt-get install python-skimage

sudo apt-get install python-pip

sudo pip install numpy

sudo pip install scipy

sudo pip install tensorflow or sudo pip install tensorflow-gpu

Refer to the Tensorflow installation and setup guide for more info: https://www.tensorflow.org/install/

Setup:

Run the following to download and setup the default model:

git clone https://github.com/ProGamerGov/Protobuf-Dreamer

cd Protobuf-Dreamer

wget https://storage.googleapis.com/download.tensorflow.org/models/inception5h.zip

unzip -d model inception5h.zip

For a full list of layers, see here.

Usage:

Basic usage:

python pb_dreamer.py --input_image input.png

Advanced usage:

python pb_dreamer.py --input_image input.png --output_image output.png --octaves 4 --layer mixed4d_3x3_bottleneck_pre_relu --channel 139 --iter 10 --tile_size 512 --model /home/ubuntu/Protobuf-Dreamer/model/tensorflow_inception_graph.pb

Parameters:

  • --input_image: The input image for performing DeepDream on. Ex: input.png

  • --output_image: The name of your output image. Ex: output.png

  • --layer: The target layer. Ex: mixed4d_3x3_bottleneck_pre_relu.

  • --channel: The desired channel of the target layer. Ex: 139.

  • --tile_size: The desired size of tiles to use. Ex: 512.

  • --iter: The number of iterations. Ex: 10.

  • --step_size: The step size. Ex: 1.5.

  • --octaves: The number of octaves. Ex: 4.

  • --octave_scale: The octave scale. Ex: 1.4.

  • --model: Path to the .pb model file. Default is tensorflow_inception_graph.pb.

  • --print_model: If this flag is present, all the inputs and layers of the model will be printed to the terminal.

  • --verbose: If this flag is present, the current octave and iteration will be printed in the terminal.

Channels:

Using the --channel parameter, you can use hundreds of additional "mini layers" inside each main layer:

Examples:

The most interesting layers and channels that I have come across, are listed here.

A list of all the potential things you can find in the layer channels of the inception5h model, can be found here. According to the label file, there are supposedly 1001 different things in the inception5h model. I'm not sure how to add optional label detection so that the content of a channel can be more easily obtained, so feel free to help if you know how!

Currently you can use a second script for determining what the model thinks the image is. See here for more details: https://github.com/ProGamerGov/Protobuf-Dreamer/wiki/Classification

All the channel examples were rendered at 640x640 resolution, and used this image as the input image: https://i.imgur.com/E0llxPR.png

Examples:

  • --model inception5h.pb
  • --layer mixed4c_pool_reduce
  • --channel 61

  • --model inception5h.pb
  • --layer mixed4d_3x3_bottleneck_pre_relu
  • --channel 139

  • --model inception5h.pb
  • --layer mixed3a_pool_reduce
  • --channel 13

  • --model inception5h.pb
  • --layer mixed4a_3x3_bottleneck_pre_relu
  • --channel 51
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].