Skip to content

Instantly share code, notes, and snippets.

@mhashim6
Last active August 10, 2019 10:03
Show Gist options
  • Save mhashim6/bfe006aa5c25ed132c019e8d2675a29e to your computer and use it in GitHub Desktop.
Save mhashim6/bfe006aa5c25ed132c019e8d2675a29e to your computer and use it in GitHub Desktop.
deep_roots
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "deep_roots.ipynb",
"version": "0.3.2",
"provenance": [],
"private_outputs": true,
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"accelerator": "GPU"
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/gist/mhashim6/bfe006aa5c25ed132c019e8d2675a29e/deep_roots.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"metadata": {
"id": "RshY-QrB4Rgj",
"colab_type": "code",
"colab": {}
},
"source": [
"!git clone https://github.com/anishathalye/neural-style"
],
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "yqIsOoKU4Zqc",
"colab_type": "code",
"colab": {}
},
"source": [
"%cd neural-style/"
],
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "LdZ2Q0b4BI3R",
"colab_type": "code",
"colab": {}
},
"source": [
"!wget http://www.vlfeat.org/matconvnet/models/imagenet-vgg-verydeep-19.mat"
],
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "NJP6pgB74hKa",
"colab_type": "code",
"colab": {}
},
"source": [
"!pip install scipy==1.1.0"
],
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "Fd9Jkews5AB2",
"colab_type": "code",
"colab": {}
},
"source": [
"!python neural_style.py --content input_1.jpg --styles style_2.jpg --output out_3.jpg --checkpoint-output out_3_{}.jpg --checkpoint-iterations 300 --preserve-colors"
],
"execution_count": 0,
"outputs": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment