AliaksandrSiarohin / first-order-model

This repository contains the source code for the paper First Order Motion Model for Image Animation
https://aliaksandrsiarohin.github.io/first-order-model-website/
MIT License
14.53k stars 3.22k forks source link

Problem with docker build #226

Open aliig opened 4 years ago

aliig commented 4 years ago

I'm struggling to get the proper linux environment to work for this, so I've resorted to using docker. I eventually got the program to work with the provided docker build instructions about a week or so ago on WSL2, but it doesn't seem to work for me any more.

docker build -t first-order-model . fails for me on this step: full log

Collecting opencv-python (from face-alignment==1.1.0)
  Downloading https://files.pythonhosted.org/packages/a1/d6/8422797e35f8814b1d9842530566a949d9b5850a466321a6c1d5a99055ee/opencv-python-4.3.0.38.tar.gz (88.0MB)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-wuc0x2vh/opencv-python/setup.py", line 9, in <module>
        import skbuild
    ModuleNotFoundError: No module named 'skbuild'

Any ideas to get this working again?

Running on a fresh WSL2 Ubuntu build following the instructions here. Building with a fresh clone of this repo as well.

Thank you!

koles289 commented 4 years ago

Hi, I have exactly the same problem after downloading OpenVino toolkit for linux with FPGA support version 2020.4.287. the same issue is being solved in this thread, but I do not know, how to download changed files. https://github.com/OpenVisualCloud/Dockerfiles/issues/549

Grandmother commented 4 years ago

Hi, this problem is described in issue in official opencv-python repo and in their FAQ.

lobomfz commented 4 years ago

Submited a pull request to fix it

aliig commented 4 years ago

Submited a pull request to fix it

This worked, thank you

ishc3ice commented 4 years ago

Edit the Dockerfile, and add RUN pip3 install scikit-build==0.11.1 before the last Command

about like this:

FROM nvcr.io/nvidia/cuda:10.0-cudnn7-runtime-ubuntu18.04

RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update \
 && DEBIAN_FRONTEND=noninteractive apt-get -qqy install python3-pip ffmpeg git less nano libsm6 libxext6 libxrender-dev \
 && rm -rf /var/lib/apt/lists/*

COPY . /app/
WORKDIR /app

RUN pip3 install scikit-build==0.11.1

RUN pip3 install \
  https://download.pytorch.org/whl/cu100/torch-1.0.0-cp36-cp36m-linux_x86_64.whl \
  git+https://github.com/1adrianb/face-alignment \
  -r requirements.txt