<jupyter_start><jupyter_text>Pixel2Mesh<NAME>., <NAME>., <NAME>., <NAME>., <NAME>., & <NAME>. (2018). Pixel2mesh: Generating 3d mesh models from single rgb images. In Proceedings of the European Conference on Computer Vision (ECCV) (pp. 52-67). Official implementation can be found [here](https://github.com/nywang16/Pixel2Mesh)Colab version implemented by [<NAME>](https://mathigatti.com)<jupyter_code>!git clone https://github.com/mathigatti/Pixel2Mesh.git
!wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1gD-dk-XrAa5mfrgdZSunjaS6pUUWsZgU' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1gD-dk-XrAa5mfrgdZSunjaS6pUUWsZgU" -O checkpoints.zip && rm -rf /tmp/cookies.txt
!unzip checkpoints.zip -d /content/Pixel2Mesh/Data<jupyter_output><empty_output><jupyter_text>Installing CUDA 8<jupyter_code>!apt-get --purge remove cuda nvidia* libnvidia-*
!dpkg -l | grep cuda- | awk '{print $2}' | xargs -n1 dpkg --purge
!apt-get remove cuda-*
!apt autoremove
!apt-get update
!wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb
!dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb
!find / -name 7fa2af80.pub
!apt-key add /var/cuda-repo-8-0-local-ga2/7fa2af80.pub
!apt-get update
!apt-get install cuda-8-0
!nvcc --version<jupyter_output>nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61<jupyter_text>Installing python libraries<jupyter_code>!python2 -m pip install tensorflow==1.3.0
!python2 -m pip install tflearn==0.3.2<jupyter_output><empty_output><jupyter_text>Running it<jupyter_code>%cd /content/Pixel2Mesh
!python2 demo.py --image Data/examples/plane.png<jupyter_output>/content/Pixel2Mesh
2020-07-15 13:37:15.669346: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2020-07-15 13:37:15.669396: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2020-07-15 13:37:15.669432: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2020-07-15 13:37:15.669455: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
2020-07-15 13:37:15.669473: W tensorflow/core/platform/cpu_feature_guard.cc:45] The Tenso[...]<jupyter_text>Pixel2Mesh++<NAME>., <NAME>., <NAME>., & <NAME>. (2019). Pixel2mesh++: Multi-view 3d mesh generation via deformation. In Proceedings of the IEEE International Conference on Computer Vision (pp. 1042-1051).<jupyter_code>!git clone https://github.com/walsvid/Pixel2MeshPlusPlus.git
!wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1qYqH-5d7l5p8nXd_o_b32RUOdHtTJKtK' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1qYqH-5d7l5p8nXd_o_b32RUOdHtTJKtK" -O models.tar.gz && rm -rf /tmp/cookies.txt
!tar xvzf models.tar.gz -C /content/Pixel2MeshPlusPlus
!rm -rf /content/Pixel2MeshPlusPlus/results
!mv /content/Pixel2MeshPlusPlus/p2mpp_models /content/Pixel2MeshPlusPlus/results<jupyter_output><empty_output><jupyter_text>Installing CUDA 9<jupyter_code>!apt-get --purge remove cuda nvidia* libnvidia-*
!dpkg -l | grep cuda- | awk '{print $2}' | xargs -n1 dpkg --purge
!apt-get remove cuda-*
!apt autoremove
!apt-get update
!wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda-repo-ubuntu1704-9-0-local_9.0.176-1_amd64-deb
!dpkg -i /content/cuda-repo-ubuntu1704-9-0-local_9.0.176-1_amd64-deb
!apt-key add /var/cuda-repo-9-0-local/7fa2af80.pub
!apt-get update
!apt-get install cuda-9-0
# Checking everything is fine
!nvcc --version<jupyter_output><empty_output><jupyter_text>Python libraries<jupyter_code>!pip install tensorflow==1.12.0
!pip install tflearn==0.3.2
%tensorflow_version 1.x
import tensorflow as tf
tf.sysconfig.get_link_flags()<jupyter_output>TensorFlow 1.x selected.<jupyter_text>Running it<jupyter_code>%tensorflow_version 1.x
%cd /content/Pixel2MeshPlusPlus/
!python demo.py<jupyter_output>/content/Pixel2MeshPlusPlus
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:523: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:524: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:526: FutureWa[...]
{'fraction_non_alphanumeric': 0.14440993788819875, 'fraction_numerical': 0.06245686680469289, 'mean_word_length': 5.226638023630505, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 40, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '8', 'dir': 'jupyter-structured-clean-dedup', 'id': '244136', 'license': 'MIT', 'n_tokens_mistral': 2416, 'n_tokens_neox': 2198, 'n_words': 470, 'path': 'Pixel2Mesh.ipynb', 'repo_name': 'bro-pro/Algorithms', 'size': '5809'}