Skip to content

Instantly share code, notes, and snippets.

@mur6
Last active October 27, 2021 10:10
Show Gist options
  • Save mur6/f79c89699aa151b2cf4c2da62701aaad to your computer and use it in GitHub Desktop.
Save mur6/f79c89699aa151b2cf4c2da62701aaad to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"name":"paper_04.ipynb","provenance":[],"collapsed_sections":[],"authorship_tag":"ABX9TyPrJhRl8UktjOS2O5cfE6aE"},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"}},"cells":[{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"V0XyyjbcKMM1","executionInfo":{"status":"ok","timestamp":1635244403243,"user_tz":-540,"elapsed":5313,"user":{"displayName":"Taichi Muraki","photoUrl":"https://lh3.googleusercontent.com/a-/AOh14GiB5e_ohaBJFC9uV-Z-KaibIQGS8XX9tb36VRniGQ=s64","userId":"04137847541288404485"}},"outputId":"699cf6e2-1be1-4f16-b853-c02bc35912fc"},"source":["!git clone https://github.com/LyuJ1998/HandTailor.git"],"execution_count":1,"outputs":[{"output_type":"stream","name":"stdout","text":["Cloning into 'HandTailor'...\n","remote: Enumerating objects: 74, done.\u001b[K\n","remote: Counting objects: 100% (74/74), done.\u001b[K\n","remote: Compressing objects: 100% (62/62), done.\u001b[K\n","remote: Total 74 (delta 31), reused 44 (delta 10), pack-reused 0\u001b[K\n","Unpacking objects: 100% (74/74), done.\n"]}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"9hgAZIBDKVeY","executionInfo":{"status":"ok","timestamp":1635244406953,"user_tz":-540,"elapsed":287,"user":{"displayName":"Taichi Muraki","photoUrl":"https://lh3.googleusercontent.com/a-/AOh14GiB5e_ohaBJFC9uV-Z-KaibIQGS8XX9tb36VRniGQ=s64","userId":"04137847541288404485"}},"outputId":"bf7e8f72-3d7f-4a9d-c2f4-cdcfd9b45d77"},"source":["%cd HandTailor"],"execution_count":2,"outputs":[{"output_type":"stream","name":"stdout","text":["/content/HandTailor\n"]}]},{"cell_type":"code","metadata":{"colab":{"base_uri":"https://localhost:8080/"},"id":"nhsbhIoeKZPi","executionInfo":{"status":"ok","timestamp":1635244640216,"user_tz":-540,"elapsed":178686,"user":{"displayName":"Taichi Muraki","photoUrl":"https://lh3.googleusercontent.com/a-/AOh14GiB5e_ohaBJFC9uV-Z-KaibIQGS8XX9tb36VRniGQ=s64","userId":"04137847541288404485"}},"outputId":"25403821-c418-4390-90df-ee4c7eaeb12b"},"source":["!pip install -r requirements.txt"],"execution_count":4,"outputs":[{"output_type":"stream","name":"stdout","text":["Collecting absl-py==0.11.0\n"," Using cached absl_py-0.11.0-py3-none-any.whl (127 kB)\n","Collecting certifi==2020.6.20\n"," Using cached certifi-2020.6.20-py2.py3-none-any.whl (156 kB)\n","Collecting chumpy==0.70\n"," Using cached chumpy-0.70.tar.gz (50 kB)\n","Requirement already satisfied: cycler==0.10.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 4)) (0.10.0)\n","Collecting Cython==0.29.21\n"," Using cached Cython-0.29.21-cp37-cp37m-manylinux1_x86_64.whl (2.0 MB)\n","Requirement already satisfied: flatbuffers==1.12 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 6)) (1.12)\n","Collecting future==0.18.2\n"," Using cached future-0.18.2.tar.gz (829 kB)\n","Collecting kiwisolver==1.3.1\n"," Downloading kiwisolver-1.3.1-cp37-cp37m-manylinux1_x86_64.whl (1.1 MB)\n","\u001b[K |████████████████████████████████| 1.1 MB 7.3 MB/s \n","\u001b[?25hCollecting matplotlib==3.3.3\n"," Downloading matplotlib-3.3.3-cp37-cp37m-manylinux1_x86_64.whl (11.6 MB)\n","\u001b[K |████████████████████████████████| 11.6 MB 50.8 MB/s \n","\u001b[?25hCollecting numpy==1.19.4\n"," Downloading numpy-1.19.4-cp37-cp37m-manylinux2010_x86_64.whl (14.5 MB)\n","\u001b[K |████████████████████████████████| 14.5 MB 14.1 MB/s \n","\u001b[?25hCollecting opencv-python==4.4.0.46\n"," Downloading opencv_python-4.4.0.46-cp37-cp37m-manylinux2014_x86_64.whl (49.5 MB)\n","\u001b[K |████████████████████████████████| 49.5 MB 76 kB/s \n","\u001b[?25hCollecting opendr==0.78\n"," Downloading opendr-0.78.tar.gz (581 kB)\n","\u001b[K |████████████████████████████████| 581 kB 63.7 MB/s \n","\u001b[?25hRequirement already satisfied: opt-einsum==3.3.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 13)) (3.3.0)\n","Collecting Pillow==8.0.1\n"," Downloading Pillow-8.0.1-cp37-cp37m-manylinux1_x86_64.whl (2.2 MB)\n","\u001b[K |████████████████████████████████| 2.2 MB 46.7 MB/s \n","\u001b[?25hCollecting pygame==2.0.0\n"," Downloading pygame-2.0.0-cp37-cp37m-manylinux1_x86_64.whl (11.5 MB)\n","\u001b[K |████████████████████████████████| 11.5 MB 49.5 MB/s \n","\u001b[?25hRequirement already satisfied: pyparsing==2.4.7 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 16)) (2.4.7)\n","Collecting pyrealsense2==2.40.0.2483\n"," Downloading pyrealsense2-2.40.0.2483-cp37-cp37m-manylinux1_x86_64.whl (9.7 MB)\n","\u001b[K |████████████████████████████████| 9.7 MB 58.3 MB/s \n","\u001b[?25hCollecting python-dateutil==2.8.1\n"," Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)\n","\u001b[K |████████████████████████████████| 227 kB 44.1 MB/s \n","\u001b[?25hCollecting scipy==1.5.4\n"," Downloading scipy-1.5.4-cp37-cp37m-manylinux1_x86_64.whl (25.9 MB)\n","\u001b[K |████████████████████████████████| 25.9 MB 1.3 MB/s \n","\u001b[?25hRequirement already satisfied: six==1.15.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 20)) (1.15.0)\n","Collecting torch==1.5.0\n"," Downloading torch-1.5.0-cp37-cp37m-manylinux1_x86_64.whl (752.0 MB)\n","\u001b[K |████████████████████████████████| 752.0 MB 9.9 kB/s \n","\u001b[?25hCollecting torchvision==0.6.0\n"," Downloading torchvision-0.6.0-cp37-cp37m-manylinux1_x86_64.whl (6.6 MB)\n","\u001b[K |████████████████████████████████| 6.6 MB 14.4 MB/s \n","\u001b[?25hCollecting transforms3d==0.3.1\n"," Downloading transforms3d-0.3.1.tar.gz (62 kB)\n","\u001b[K |████████████████████████████████| 62 kB 1.7 MB/s \n","\u001b[?25hBuilding wheels for collected packages: chumpy, future, opendr, transforms3d\n"," Building wheel for chumpy (setup.py) ... \u001b[?25l\u001b[?25hdone\n"," Created wheel for chumpy: filename=chumpy-0.70-py3-none-any.whl size=58285 sha256=df93eef174e20a210192bf1b3f14dc869edacbd92695d457c4da2cd0819fbe0c\n"," Stored in directory: /root/.cache/pip/wheels/59/68/de/5e0c5d77e573e8c150e69e07a25035e6b6a04952d6e1814dbc\n"," Building wheel for future (setup.py) ... \u001b[?25l\u001b[?25hdone\n"," Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491070 sha256=2b599b5b17f9f21579e43d2e338408c2a4bfd41bd4cffbcc157edf17686196d6\n"," Stored in directory: /root/.cache/pip/wheels/56/b0/fe/4410d17b32f1f0c3cf54cdfb2bc04d7b4b8f4ae377e2229ba0\n"," Building wheel for opendr (setup.py) ... \u001b[?25lerror\n","\u001b[31m ERROR: Failed building wheel for opendr\u001b[0m\n","\u001b[?25h Running setup.py clean for opendr\n"," Building wheel for transforms3d (setup.py) ... \u001b[?25l\u001b[?25hdone\n"," Created wheel for transforms3d: filename=transforms3d-0.3.1-py3-none-any.whl size=59373 sha256=a6650fd74eebe1fb29f2f42caba6bef2f025485ee7a159cf1cd97dbd23b0ff7d\n"," Stored in directory: /root/.cache/pip/wheels/b5/b7/93/8985551f83720ce37548a5b543c75380bb707955a9c2c5d28c\n","Successfully built chumpy future transforms3d\n","Failed to build opendr\n","Installing collected packages: numpy, scipy, python-dateutil, Pillow, kiwisolver, future, torch, matplotlib, Cython, chumpy, transforms3d, torchvision, pyrealsense2, pygame, opendr, opencv-python, certifi, absl-py\n"," Attempting uninstall: numpy\n"," Found existing installation: numpy 1.19.5\n"," Uninstalling numpy-1.19.5:\n"," Successfully uninstalled numpy-1.19.5\n"," Attempting uninstall: scipy\n"," Found existing installation: scipy 1.4.1\n"," Uninstalling scipy-1.4.1:\n"," Successfully uninstalled scipy-1.4.1\n"," Attempting uninstall: python-dateutil\n"," Found existing installation: python-dateutil 2.8.2\n"," Uninstalling python-dateutil-2.8.2:\n"," Successfully uninstalled python-dateutil-2.8.2\n"," Attempting uninstall: Pillow\n"," Found existing installation: Pillow 7.1.2\n"," Uninstalling Pillow-7.1.2:\n"," Successfully uninstalled Pillow-7.1.2\n"," Attempting uninstall: kiwisolver\n"," Found existing installation: kiwisolver 1.3.2\n"," Uninstalling kiwisolver-1.3.2:\n"," Successfully uninstalled kiwisolver-1.3.2\n"," Attempting uninstall: future\n"," Found existing installation: future 0.16.0\n"," Uninstalling future-0.16.0:\n"," Successfully uninstalled future-0.16.0\n"," Attempting uninstall: torch\n"," Found existing installation: torch 1.9.0+cu111\n"," Uninstalling torch-1.9.0+cu111:\n"," Successfully uninstalled torch-1.9.0+cu111\n"," Attempting uninstall: matplotlib\n"," Found existing installation: matplotlib 3.2.2\n"," Uninstalling matplotlib-3.2.2:\n"," Successfully uninstalled matplotlib-3.2.2\n"," Attempting uninstall: Cython\n"," Found existing installation: Cython 0.29.24\n"," Uninstalling Cython-0.29.24:\n"," Successfully uninstalled Cython-0.29.24\n"," Attempting uninstall: torchvision\n"," Found existing installation: torchvision 0.10.0+cu111\n"," Uninstalling torchvision-0.10.0+cu111:\n"," Successfully uninstalled torchvision-0.10.0+cu111\n"," Running setup.py install for opendr ... \u001b[?25l\u001b[?25herror\n","\u001b[31mERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-x50qb9_p/opendr_78425ab70a6a4a39907c7f56dcd1fa5a/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-x50qb9_p/opendr_78425ab70a6a4a39907c7f56dcd1fa5a/setup.py'\"'\"';f = getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__) if os.path.exists(__file__) else io.StringIO('\"'\"'from setuptools import setup; setup()'\"'\"');code = f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' install --record /tmp/pip-record-zyukzpf2/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/opendr Check the logs for full command output.\u001b[0m\n"]}]}]}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment