心中无码便是高清,马赛克“脑补”算法 PULSE
1
2
3
name: pulse
channels:
- pytorch
- defaults
dependencies:
- blas=1.0=mkl
- ca-certificates=2020.1.1=0
- certifi=2020.4.5.1=py38_0
- cffi=1.14.0=py38hc512035_1
- chardet=3.0.4=py38_1003
- cryptography=2.9.2=py38ha12b0ac_0
- cycler=0.10.0=py38_0
- freetype=2.9.1=hb4e5f40_0
- idna=2.9=py_1
- intel-openmp=2019.4=233
- jpeg=9b=he5867d9_2
- kiwisolver=1.2.0=py38h04f5b5a_0
- libcxx=10.0.0=1
- libedit=3.1.20181209=hb402a30_0
- libffi=3.3=h0a44026_1
- libgfortran=3.0.1=h93005f0_2
- libpng=1.6.37=ha441bb4_0
- libtiff=4.1.0=hcb84e12_0
- matplotlib=3.1.3=py38_0
- matplotlib-base=3.1.3=py38h9aa3819_0
- mkl=2019.4=233
- mkl-service=2.3.0=py38hfbe908c_0
- mkl_fft=1.0.15=py38h5e564d8_0
- mkl_random=1.1.0=py38h6440ff4_0
- ncurses=6.2=h0a44026_1
- ninja=1.9.0=py38h04f5b5a_0
- numpy=1.18.1=py38h7241aed_0
- numpy-base=1.18.1=py38h6575580_1
- olefile=0.46=py_0
- openssl=1.1.1g=h1de35cc_0
- pandas=1.0.3=py38h6c726b0_0
- pillow=7.1.2=py38h4655f20_0
- pip=20.0.2=py38_3
- pycparser=2.20=py_0
- pyopenssl=19.1.0=py38_0
- pyparsing=2.4.7=py_0
- pysocks=1.7.1=py38_0
- python=3.8.2=hf48f09d_13
- python-dateutil=2.8.1=py_0
- pytorch=1.5.0=py3.8_0
- pytz=2020.1=py_0
- readline=8.0=h1de35cc_0
- requests=2.23.0=py38_0
- scipy=1.4.1=py38h44e99c9_0
- setuptools=46.2.0=py38_0
- six=1.14.0=py38_0
- sqlite=3.31.1=h5c1f38d_1
- tk=8.6.8=ha441bb4_0
- torchvision=0.6.0=py38_cpu
- tornado=6.0.4=py38h1de35cc_1
- urllib3=1.25.8=py38_0
- wheel=0.34.2=py38_0
- xz=5.2.5=h1de35cc_0
- zlib=1.2.11=h1de35cc_3
- zstd=1.3.7=h5bba6e5_0
- pip:
- dlib==19.19.0
prefix: /path/to/your/anaconda3/envs/pulse
conda create -f pulse.yml
conda install ca-certificates requests
python -m pip install cmake dlib
4
git clone https://github.com/adamian98/pulse
python align_face.py
python run.py -steps=2000
5
6
PULSE 算法对于非数据集的数据,「脑补」效果一般。
想用 PULSE 算法,“去除”人脸以外的马赛克图,需要建立数据集,重新训练模型。
- End -
由于微信平台算法改版,公号内容将不再以时间排序展示,如果大家想第一时间看到我们的推送,强烈建议星标我们和给我们多点点【在看】。星标具体步骤为:
(1)点击页面最上方“小詹学Python”,进入公众号主页。
(2)点击右上角的小点点,在弹出页面点击“设为星标”,就可以啦。
感谢支持,比心。
评论