Skip to content

Failed To Execute Script Protection #183

@JackMadeley

Description

@JackMadeley

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

  • Ubuntu 22.04.3 LTS

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions