IssueRaiser

【Not An Issue But Tutorial】A complete tutorial of pre-processing steps

After investigating for 3 days, I got almost all done except for some minor problems. Here is a [link](https://lujiazho.github.io/assets/hr-viton/index.html) of personal made study case of HR-VITON # Pre According to explanation from authors: [Preprocessing.md](https://github.com/sangyun884/HR-VITON/blob/main/Preprocessing.md). At least a few steps are needed for getting all required inputs of model. - OpenPose - Human Parse - DensePose - Cloth Mask - Parse Agnostic - Human Agnostic Most of those are reproduced on Colab, except *Human Parse*, which needs Tensorflow 1.15 and GPU is highly prefered. # 1、OpenPose(On colab, need GPU) (1) Install OpenPose, taking about 15 minutes ```py import os from os.path import exists, join, basename, splitext git_repo_url = 'https://github.com/CMU-Perceptual-Computing-Lab/openpose.git' project_name = splitext(basename(git_repo_url))[0] if not exists(project_name): # see: https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/949 # install new CMake becaue of CUDA10 !wget -q https://cmake.org/files/v3.13/cmake-3.13.0-Linux-x86_64.tar.gz !tar xfz cmake-3.13.0-Linux-x86_64.tar.gz --strip-components=1 -C /usr/local # clone openpose !git clone -q --depth 1 $git_repo_url !sed -i 's/execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/execute_process(COMMAND git checkout f019d0dfe86f49d1140961f8c7dec22130c83154 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/g' openp

Posted by lujiazho on Dec 31, 2022, 10:22 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments

onboarding (E-commerce)

【Not An Issue But Tutorial】A complete tutorial of pre-processing steps

lujiazhoDec 31, 2022, 10:22 PM

After investigating for 3 days, I got almost all done except for some minor problems. Here is a [link](https://lujiazho.github.io/assets/hr-viton/index.html) of personal made study case of HR-VITON # Pre According to explanation from authors: [Preprocessing.md](https://github.com/sangyun884/HR-VITON/blob/main/Preprocessing.md). At least a few steps are needed for getting all required inputs of model. - OpenPose - Human Parse - DensePose - Cloth Mask - Parse Agnostic - Human Agnostic Most of those are reproduced on Colab, except *Human Parse*, which needs Tensorflow 1.15 and GPU is highly prefered. # 1、OpenPose(On colab, need GPU) (1) Install OpenPose, taking about 15 minutes ```py import os from os.path import exists, join, basename, splitext git_repo_url = 'https://github.com/CMU-Perceptual-Computing-Lab/openpose.git' project_name = splitext(basename(git_repo_url))[0] if not exists(project_name): # see: https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/949 # install new CMake becaue of CUDA10 !wget -q https://cmake.org/files/v3.13/cmake-3.13.0-Linux-x86_64.tar.gz !tar xfz cmake-3.13.0-Linux-x86_64.tar.gz --strip-components=1 -C /usr/local # clone openpose !git clone -q --depth 1 $git_repo_url !sed -i 's/execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/execute_process(COMMAND git checkout f019d0dfe86f49d1140961f8c7dec22130c83154 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/g' openp

Comments (0)

No comments yet. Start the discussion.

Comment on this issue