ID: 5d89f3dfa0171346e315e53f

Apple to Orange GAN

by Deepak Mangla

Automatically converts apple to oranges in images with the generative AI.

Contains Dockerfile Ā This model contains Dockerfile.

License: BSD 2

Tags: CycleGAN Apple to Orange

Ā Model stats and performance
Dataset Used View
Framework PyTorch
OS Used Linux
Publication View
Inference time in seconds per sample.


What is it?

Automatically converts apples to oranges in images  with the generative AI.

How to use?

Using pip Prerequisites - cuda 10.1 and python 3.6

  • Install all requirements with command pip install -r requirements.txt.
  • Put one or more images of horses in 'Input' folder. (Initially sample images are provided for testing purpose).
  • Run python src/ -- input Input --output Output .

Using docker Prerequisites - Docker > 19.03

  • Build docker image and run docker container - docker build -t app2Orange -f Dockerfile . && docker run -it app2Orange
  • Run python src/ -- input Input --output Output .

Voila ! Apples have been converted to Oranges and images have been stored in 'Output' directory.


CPU - 0.96 s GPU - 0.036 s

Tested on:

  • python 3.5
  • ubuntu 16.04
  • cuda 10.1

Author View Profile

Deepak Mangla
Faridabad, India
Level 25 34010 XP

1305 Profile

AI wizard who thinks with first principles

I am Deep Learning (Computer Vision) Engineer with specialization in enabling AI on the resource-constrained edge devices. I work on quantizations, pruning and efficient designing and deployment of DL networks. Read my article about Winograd -

User Reviews

0 total ratings

Model has not been reviewed yet.

More by this user | Show All

Also checkout...