Comments (5)
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.
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.
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.
This should be put in the README
from pulse.
It turns out, as long as you have GTX 970 or higher, prerequisites installation is quite simple
- Fresh nVidia drivers.
- Python
- 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.
- Precompiled pytorch and pytorchvision
- 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:
- 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'))
- 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'
- 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)
- May I take donations for making a video series using this tool?
- CondaValueError: the target prefix is the base prefix. Aborting. HOT 1
- Conda command not found
- Recommended Linux Version?
- Any way to reduce Batch_Size in run.py? HOT 1
- What is "latent tensor" used for?
- NIQE
- Optimization procedure returns the wrong image?
- "conda create -f pulse.yml" failed with "either -n name or -p prefix option required" HOT 3
- Question: Are there any ports of this library to Java/Kotlin? HOT 4
- The speed of the pulse
- run error during test,
- [Windows] Conda - "ResolvePackageNotFound" for some modules HOT 2
- pulse
- how do I use in M1?
- algorithm doesnt perform well on child faces...this is supposed to be a 3 months old :)
- What is the usage of geocross loss? HOT 1
- How to run PULSE from 16*16 to 128*128? HOT 3
- About applicability HOT 1
- pulse with only cpu?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulse.