minimaxir / person-blocker

Automatically "block" people in images (like Black Mirror) using a pretrained neural network.
Other
2.02k stars 212 forks source link

Cannot show picture #11

Open wuhuhu800 opened 6 years ago

wuhuhu800 commented 6 years ago

Hi, when I run the code on CLI ,like that

python person_blocker.py -i ../data/base/Images/neck_design_labels/ffc52dbfd4a5f8dae71390a68e696dd8.jpg -c '(128, 128, 128)' -o 'neck'

after that ,the CLI just show as follows,but not show any picture,I don't why?

/anaconda/envs/py36/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
Using TensorFlow backend.
2018-05-17 22:23:43.430910: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.2 AVX AVX2 FMA

and my env is as follows: Mac Os 10.12.6 python 3.6.4 conda 4.5.3 h5py 2.7.1 imageio 2.3.0 ipython 6.2.1 Keras 2.1.4 scipy 1.0.0 scikit-image 0.13.1 tensorflow 1.5.0 matplotlib 2.1.2

Skagoo commented 6 years ago

As far as I know that is just a warning and can be ignored by adding the following (to person_blocker.py):

import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'

minimaxir commented 6 years ago

The picture is saved in the directory where you run the script.