Skip to content

Instantly share code, notes, and snippets.

@ajhalthor
Created February 5, 2020 05:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajhalthor/14001f05336a1a2c5750e083a2408623 to your computer and use it in GitHub Desktop.
Save ajhalthor/14001f05336a1a2c5750e083a2408623 to your computer and use it in GitHub Desktop.
apex_dcgan.ipynb
Display the source blob
Display the rendered blob
Raw
{
"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