Shawn-Shan / fawkes

Fawkes, privacy preserving tool against facial recognition systems. More info at https://sandlab.cs.uchicago.edu/fawkes
https://sandlab.cs.uchicago.edu/fawkes
BSD 3-Clause "New" or "Revised" License
5.22k stars 481 forks source link

Did not start #107

Closed dcromster closed 3 years ago

dcromster commented 3 years ago

Hello!

When I start fawkes I got this errors:

Traceback (most recent call last): File "/usr/local/bin/fawkes", line 33, in sys.exit(load_entry_point('fawkes==0.3.1', 'console_scripts', 'fawkes')()) File "/usr/local/lib/python3.6/dist-packages/fawkes/protection.py", line 210, in main protector = Fawkes(args.feature_extractor, args.gpu, args.batch_size) File "/usr/local/lib/python3.6/dist-packages/fawkes/protection.py", line 53, in init self.feature_extractors_ls = [load_extractor(name) for name in self.fs_names] File "/usr/local/lib/python3.6/dist-packages/fawkes/protection.py", line 53, in self.feature_extractors_ls = [load_extractor(name) for name in self.fs_names] File "/usr/local/lib/python3.6/dist-packages/fawkes/utils.py", line 406, in load_extractor model = keras.models.load_model(model_file) File "/home/ubuntu/.local/lib/python3.6/site-packages/keras/engine/saving.py", line 492, in load_wrapper return load_function(*args, **kwargs) File "/home/ubuntu/.local/lib/python3.6/site-packages/keras/engine/saving.py", line 584, in load_model model = _deserialize_model(h5dict, custom_objects, compile) File "/home/ubuntu/.local/lib/python3.6/site-packages/keras/engine/saving.py", line 273, in _deserialize_model model_config = json.loads(model_config.decode('utf-8')) AttributeError: 'str' object has no attribute 'decode'

OS: Ubuntu 18.04 Python: Python 3.6.8

MarkSCQ commented 3 years ago

https://github.com/Shawn-Shan/fawkes/issues/75 I think this will help

xirkus commented 3 years ago

No debugging or dependency troubleshooting required: https://dev.scrb.ai