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

Failed To Execute Script Protection #183

Open JackMadeley opened 9 months ago

JackMadeley commented 9 months ago

Issue

When using the Linux binary (v1.0) downloaded from http://sandlab.cs.uchicago.edu/fawkes/#code, I am unable to run the command:

./protection -d /Images

A ValueError is thrown from the Numpy library that causes the script to fail.

Error Message

/tmp/_MEIYYSmx0/numpy/lib/function_base.py:792: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
Traceback (most recent call last):
  File "fawkes/protection.py", line 201, in <module>
  File "fawkes/protection.py", line 197, in main
  File "fawkes/protection.py", line 94, in run_protection
  File "fawkes/utils.py", line 203, in __init__
  File "<__array_function__ internals>", line 6, in copy
  File "numpy/lib/function_base.py", line 792, in copy
ValueError: could not broadcast input array from shape (1600,1200,3) into shape (1600)
[719356] Failed to execute script protection

Environment

Additional Information

I have tried redownloading the binary but with no luck. From a first glace it looks like the dimensions of the matrices created are incompatible.