🐣 Please follow me for new updates https://twitter.com/camenduru
🔥 Please join our discord server https://discord.gg/k5BwmmvJJU
🥳 Please join my patreon community https://patreon.com/camenduru
https://github.com/NVlabs/tiny-cuda-nn
https://github.com/open-mmlab/mmcv
https://github.com/facebookresearch/xformers
https://github.com/facebookresearch/pytorch3d
https://github.com/nerfstudio-project/nerfacc
https://github.com/facebookresearch/detectron2
https://github.com/NVIDIAGameWorks/kaolin
https://github.com/mit-han-lab/torchsparse
https://github.com/mapillary/inplace_abn
https://github.com/modelscope/modelscope
https://github.com/facebookresearch/detectron2/tree/main/projects/DensePose
https://github.com/NVlabs/nvdiffrast
https://github.com/haotian-liu/LLaVA
https://github.com/chengzeyi/stable-fast
https://github.com/open-mmlab/mmhuman3d
https://github.com/SHI-Labs/NATTEN
https://github.com/nvidia/nemo
https://github.com/openpifpaf/openpifpaf
https://github.com/apache/tvm
https://github.com/mlc-ai/mlc-llm
-std=c++14
to -std=c++17
%cd /content
!git clone -b v1.7.1 https://github.com/open-mmlab/mmcv
%cd /content/mmcv
!MMCV_WITH_OPS=1 pip wheel -v .
!pip wheel -v git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
!pip wheel -v git+https://github.com/nerfstudio-project/nerfacc@v0.5.3
!pip wheel -v git+https://github.com/facebookresearch/detectron2
!pip wheel -v git+https://github.com/facebookresearch/pytorch3d
%cd /content
!git clone --recursive https://github.com/NVIDIAGameWorks/kaolin
%cd /content/kaolin
!pip wheel -v .
!pip wheel -v inplace-abn
!apt install libsparsehash-dev
%cd /content
!git clone -b v2.0.0 --recursive https://github.com/mit-han-lab/torchsparse
%cd /content/torchsparse
!pip wheel -v .
%cd /content
!git clone -b v1.10.0 --recursive https://github.com/modelscope/modelscope
%cd /content/modelscope
!pip install -q addict yapf simplejson
!pip wheel -v .
!pip wheel -v git+https://github.com/facebookresearch/detectron2@main#subdirectory=projects/DensePose
%cd /content
!git clone -b v0.3.1 --recursive https://github.com/NVlabs/nvdiffrast
%cd /content/nvdiffrast
!pip wheel -v .
%cd /content
!git clone -b v1.1.3 --recursive https://github.com/haotian-liu/LLaVA
%cd /content/LLaVA
#delete torch==2.0.1, torchvision==0.15.2 in pyproject.toml
!pip wheel -v .
%cd /content
!git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose
%cd /content/openpose
!git submodule update --init --recursive --remote
!apt install -qq libprotobuf-dev protobuf-compiler libgoogle-glog-dev
!mkdir /content/openpose/build
%cd /content/openpose/build
!cmake ..
!cmake ..
!make -j`nproc`
!wget https://huggingface.co/camenduru/openpose/resolve/main/models/pose/body_25/pose_iter_584000.caffemodel -O /content/openpose/models/pose/body_25/pose_iter_584000.caffemodel
!wget https://huggingface.co/camenduru/openpose/resolve/main/models/pose/coco/pose_iter_440000.caffemodel -O /content/openpose/models/pose/coco/pose_iter_440000.caffemodel
!wget https://huggingface.co/camenduru/openpose/resolve/main/models/pose/mpi/pose_iter_160000.caffemodel -O /content/openpose/models/pose/mpi/pose_iter_160000.caffemodel
!wget https://huggingface.co/camenduru/openpose/resolve/main/models/face/pose_iter_116000.caffemodel -O /content/openpose/models/face/pose_iter_116000.caffemodel
!wget https://huggingface.co/camenduru/openpose/resolve/main/models/hand/pose_iter_102000.caffemodel -O /content/openpose/models/hand/pose_iter_102000.caffemodel
!/content/openpose/build/examples/openpose/openpose.bin --image_dir /content/images --write_json /content/images --display 0 --render_pose 0
%cd /content
!git clone https://github.com/SHI-Labs/NATTEN
%cd /content/NATTEN
!make WORKERS=2
!make CUDA_ARCH="7.5"
!python setup.py bdist_wheel
%cd /content/OneFormer-hf/oneformer/modeling/pixel_decoder/ops
!sh make.sh
!python setup.py bdist_wheel
!pip wheel -v nemo-toolkit[all]==1.21.0
%cd /content
!git clone https://github.com/openpifpaf/openpifpaf
%cd /content/openpifpaf
!python setup.py bdist_wheel
%cd /content/havatar/model/op
!python setup.py bdist_wheel
%cd /content/havatar
!apt install libpolly-18-dev
%cd /content
# https://github.com/apache/tvm/blob/main/docs/install/from_source.rst
!bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
# set(USE_CUDA ON)
# set(USE_CUDNN ON)
# set(USE_BLAS openblas)
# set(USE_LLVM "llvm-config-18 --link-static")
# set(HIDE_PRIVATE_SYMBOLS ON)
%cd /content
!git clone --recursive https://github.com/apache/tvm tvm
%cd /content/tvm
!mkdir /content/tvm/build
!cp cmake/config.cmake build #CUDA ON
%cd /content/tvm/build
!cmake ..
!make -j4
%cd /content/tvm/python
!pip wheel .
!apt install cargo -y
%cd /content
!git clone --recursive https://github.com/mlc-ai/mlc-llm.git
%cd /content/mlc-llm
!mkdir -p build
%cd /content/mlc-llm/build
%env TVM_HOME=/content/tvm
!python ../cmake/gen_cmake_config.py
!cmake .. && cmake --build . --parallel $(nproc) && cd ..
%cd /content/mlc-llm/python
!pip wheel .