Skip to content

Commit

Permalink
cog-ified
Browse files Browse the repository at this point in the history
  • Loading branch information
ericguizzo committed Sep 29, 2021
1 parent bd66447 commit f604000
Show file tree
Hide file tree
Showing 5 changed files with 1,154 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# neural-dream
<a href="https://replicate.ai/progamergov/neural-dream"><img src="https://img.shields.io/static/v1?label=Replicate&message=Demo and Docker Image&color=darkgreen" height=20></a>


This is a PyTorch implementation of DeepDream. The code is based on [neural-style-pt](https://github.com/ProGamerGov/neural-style-pt).

Expand Down
Empty file added __init__.py
Empty file.
13 changes: 13 additions & 0 deletions cog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
build:
python_version: "3.7"
gpu: true
python_packages:
- neural_dream==0.0.4
- opencv-python==4.5.3.56
run:
- "mkdir ./models && neural-dream -download_models -download_path ./models"
system_packages:
- ffmpeg
- libsm6
- libxext6
predict: "predict.py:Predictor"
1 change: 1 addition & 0 deletions neural_dream.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from neural_dream.dream_auto import auto_model_mode, auto_mean

import argparse

parser = argparse.ArgumentParser()
# Basic options
parser.add_argument("-content_image", help="Content target image", default='examples/inputs/tubingen.jpg')
Expand Down
Loading

0 comments on commit f604000

Please sign in to comment.