Giter Club home page Giter Club logo

vid2vid's Introduction

vid2vid

modifed version of vid2vid for Speech2Video and Text2Video.

Setup

  1. git clone
git clone [email protected]:sibozhang/vid2vid.git
  1. setup env torchvision need to be 0.2.2 to be compatible with torch 0.4.1
python3 -m venv ../venv/vid2vid
source ../venv/vid2vid/bin/activate
pip install --upgrade pip
pip3 install https://download.pytorch.org/whl/cu92/torch-0.4.1-cp36-cp36m-linux_x86_64.whl 
pip install torchvision==0.2.2 
pip install numpy
pip install dominate requests
pip install pillow
pip install opencv-python 
pip install scipy 
pip install pytz

Trained model

Please build 'checkpoints' folder in the current folder and put trained model in it.

VidTIMIT fadg0 (English, Female) Dropbox

百度云链接:https://pan.baidu.com/s/1L1cvqwLu_uqN2cbW-bDgdA 密码:hygt

Xuesong (Chinese, Male) Dropbox

百度云链接:https://pan.baidu.com/s/1lhYRakZLnkQ8nqMuLJt_dA 密码:40ob

Q&A

  1. Get vid2vid working
*cd vid2vid/models/flownet2_pytorch
*export CUDA_HOME=/tools/cuda-9.2.88/
*comment “--user” in /flownet2_pytorch/install.sh //so it will install to python under venv, otherwise it install to .local
*bash install.sh
  1. Q: File "/mnt/scratch/sibo/vid2vid/util/util.py", line 62, in tensor2im image_numpy = image_tensor.cpu().float().numpy() RuntimeError: PyTorch was compiled without NumPy support

A: pip install torch==0.4.1.post2

Citation

Speech2Video Synthesis with 3D Skeleton Regularization and Expressive Body Poses

Miao Liao*, Sibo Zhang*, Peng Wang, Hao Zhu, Xinxin Zuo, Ruigang Yang. PDF Result Video 1 min Spotlight 10 min Presentation

@inproceedings{liao2020speech2video,
  title={Speech2video synthesis with 3D skeleton regularization and expressive body poses},
  author={Liao, Miao and Zhang, Sibo and Wang, Peng and Zhu, Hao and Zuo, Xinxin and Yang, Ruigang},
  booktitle={Proceedings of the Asian Conference on Computer Vision},
  year={2020}
}

Ackowledgements

This code is based on the vid2vid framework.

vid2vid's People

Contributors

sibozhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vid2vid's Issues

实验请教

很感谢您的工作,请教下,这个实验应该怎么跑呀?

how to run?

Thanks for you sharing codes.Could you tell me how to run your code?Thanks.

chinese model release

hi, you only release fadg0 model, but how about chinese model? can you share it to me?

error C++14 or later compatible compiler is required to use PyTorch.

hi

I have been working with this project for several days now, and my first goal is to be able to install it, and I have not succeeded yet.

my final target is text2video
but for using it at first i must install this repo.

I have a gpu server with ubuntu 20 and cuda version 11.6
I don't have access to increase or decrease the version of cuda

this is my dockerfile content:

FROM nvidia/cuda:11.6.0-cudnn8-devel-ubuntu20.04

ENV DEBIAN_FRONTEND=noninteractive 
ENV NVIDIA_VISIBLE_DEVICES all

RUN apt-get update && \
    apt-get install -y nano rsync htop git openssh-server python3-pip ninja-build && \
	ln -s /usr/bin/python3 /usr/bin/python && \
	rm -rf /var/lib/apt/lists/*
	
RUN git clone https://github.com/sibozhang/vid2vid.git

RUN pip3 install --upgrade pip
RUN pip3 install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu116
RUN pip install numpy dominate requests  pillow  opencv-python  scipy pytz

WORKDIR /vid2vid/models/flownet2_pytorch

CMD ["sleep","infinity"]

after running container I go inside container and run this command:
/vid2vid/models/flownet2_pytorch/install.sh

then i get many errors:

running install
running bdist_egg
running egg_info
writing correlation_cuda.egg-info/PKG-INFO
writing dependency_links to correlation_cuda.egg-info/dependency_links.txt
writing top-level names to correlation_cuda.egg-info/top_level.txt
reading manifest file 'correlation_cuda.egg-info/SOURCES.txt'
writing manifest file 'correlation_cuda.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'correlation_cuda' extension
[1/1] c++ -MMD -MF /vid2vid/models/flownet2_pytorch/networks/correlation_package/build/temp.linux-x86_64-3.8/correlation_cuda.o.d -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.8/dist-packages/torch/include -I/usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include -I/usr/local/lib/python3.8/dist-packages/torch/include/TH -I/usr/local/lib/python3.8/dist-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.8 -c -c /vid2vid/models/flownet2_pytorch/networks/correlation_package/correlation_cuda.cc -o /vid2vid/models/flownet2_pytorch/networks/correlation_package/build/temp.linux-x86_64-3.8/correlation_cuda.o -std=c++11 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=correlation_cuda -D_GLIBCXX_USE_CXX11_ABI=0
FAILED: /vid2vid/models/flownet2_pytorch/networks/correlation_package/build/temp.linux-x86_64-3.8/correlation_cuda.o 
c++ -MMD -MF /vid2vid/models/flownet2_pytorch/networks/correlation_package/build/temp.linux-x86_64-3.8/correlation_cuda.o.d -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.8/dist-packages/torch/include -I/usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include -I/usr/local/lib/python3.8/dist-packages/torch/include/TH -I/usr/local/lib/python3.8/dist-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.8 -c -c /vid2vid/models/flownet2_pytorch/networks/correlation_package/correlation_cuda.cc -o /vid2vid/models/flownet2_pytorch/networks/correlation_package/build/temp.linux-x86_64-3.8/correlation_cuda.o -std=c++11 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=correlation_cuda -D_GLIBCXX_USE_CXX11_ABI=0
In file included from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /vid2vid/models/flownet2_pytorch/networks/correlation_package/correlation_cuda.cc:1:
/usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/all.h:4:2: error: #error C++14 or later compatible compiler is required to use PyTorch.
    4 | #error C++14 or later compatible compiler is required to use PyTorch.
      |  ^~~~~
In file included from /usr/local/lib/python3.8/dist-packages/torch/include/c10/util/string_view.h:4,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/c10/util/StringUtil.h:6,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/c10/util/Exception.h:6,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/c10/core/Device.h:5,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/ATen/core/TensorBody.h:11,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/ATen/core/Tensor.h:3,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/ATen/Tensor.h:3,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/autograd/variable.h:6,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /vid2vid/models/flownet2_pytorch/networks/correlation_package/correlation_cuda.cc:1:
/usr/local/lib/python3.8/dist-packages/torch/include/c10/util/C++17.h:27:2: error: #error You need C++14 to compile PyTorch
   27 | #error You need C++14 to compile PyTorch
      |  ^~~~~
In file included from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:4,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/all.h:9,
                 from /usr/local/lib/python3.8/dist-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
                 from /vid2vid/models/flownet2_pytorch/networks/correlation_package/correlation_cuda.cc:1:

i checked this command:
c++ --version
its result:

c++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I searched in google and found this version supports c++14. so whats the problem?

would you please guide me how should I solve the problem ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.