Created
February 5, 2020 05:21
-
-
Save ajhalthor/14001f05336a1a2c5750e083a2408623 to your computer and use it in GitHub Desktop.
apex_dcgan.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nbformat": 4, | |
"nbformat_minor": 0, | |
"metadata": { | |
"colab": { | |
"name": "apex_dcgan.ipynb", | |
"provenance": [], | |
"authorship_tag": "ABX9TyNM4tc3StNvKLZ0RYGG7k16", | |
"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/ajhalthor/14001f05336a1a2c5750e083a2408623/apex_dcgan.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "JByNpzwr6Hfy", | |
"colab_type": "code", | |
"outputId": "2e756f5e-9cb5-4e32-af8e-a0a537a05814", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 34 | |
} | |
}, | |
"source": [ | |
"%%writefile setup.sh\n", | |
"\n", | |
"export CUDA_HOME=/usr/local/cuda-10.1\n", | |
"git clone https://github.com/NVIDIA/apex\n", | |
"pip install -v --no-cache-dir --global-option=\"--cpp_ext\" --global-option=\"--cuda_ext\" ./apex" | |
], | |
"execution_count": 0, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": [ | |
"Writing setup.sh\n" | |
], | |
"name": "stdout" | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "DV6qfZiF6jAJ", | |
"colab_type": "code", | |
"colab": {} | |
}, | |
"source": [ | |
"!sh setup.sh" | |
], | |
"execution_count": 0, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "a0G069qd8W0L", | |
"colab_type": "code", | |
"colab": {} | |
}, | |
"source": [ | |
"!python apex/examples/dcgan/main_amp.py --opt_level O1 --outf 'outputs'" | |
], | |
"execution_count": 0, | |
"outputs": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment