Giter Club home page Giter Club logo

Comments (5)

luiscosio avatar luiscosio commented on July 17, 2024 1

For dlib, you can just use one from conda-forge to avoid using compiling and installing VIsual Studio:

conda install -c conda-forge dlib

from pulse.

adamian98 avatar adamian98 commented on July 17, 2024

Thanks!

It should work with pngs as long as they are 3 channel and not 4 channel. If they contain an alpha channel then it will not work. Most image editing tools should be able to strip the alpha channel from a png so that you can use it with PULSE.

from pulse.

BadCoder2 avatar BadCoder2 commented on July 17, 2024

When installing dlib from pip it gives a massive error with the only readable part being "NMake Makefiles does not support platform specification, but platform x64 was specified." I tried to find the log file but the file directory it gave didn't exist.

from pulse.

eabase avatar eabase commented on July 17, 2024

This should be put in the README

from pulse.

hurui5423 avatar hurui5423 commented on July 17, 2024

It turns out, as long as you have GTX 970 or higher, prerequisites installation is quite simple

  1. Fresh nVidia drivers.
  2. Python
  3. Visual Studio with c++ workload and cmake, needed for dlib. Possibly, only buildtools are needed, I didn't check that. There may be precompiled dlib, I also didn't check.
  4. Precompiled pytorch and pytorchvision
  5. Pillow, numpy, scipy and dlib.

Looks like there is no need to install CUDA SDK to use precompiled pytorch on Windows.

So, from clean slate:

  1. Install chocolatey, used to install Cmake, Visual Studio and Python

from admin cmd

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

or from admin PowerShell

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
  1. Reopen admin cmd/Powershell and run
cinst -y visualstudio2019community visualstudio2017-workload-nativedesktop

to install Visual Studio with C++ compiler. Then reboot and, again, from admin cmd/Powershell

cinst -y python
cinst -y cmake --installargs 'ADD_CMAKE_TO_PATH=System'
  1. Finally, install all python libraries. I used pytorch 1.5.0, and it supports only GTX 970 and newer. Maybe older versions supports your hardware.

from non-admin cmd/PowerShell

pip install numpy
pip install scipy
pip install https://download.pytorch.org/whl/cu102/torch-1.5.0-cp38-cp38-win_amd64.whl
pip install https://download.pytorch.org/whl/cu102/torchvision-0.6.0-cp38-cp38-win_amd64.whl
pip install pillow
pip install dlib

Everything's ready for use, from Data section of the Readme.

Warning, though, for some reason dlib module align_face.py didn't work well with pngs and bmps. So jpg realpics it is.

from pulse.

Related Issues (20)

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.