Coder Social home page Coder Social logo

anonymizer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

anonymizer's Issues

Model finetuning

How should we finetune the model for more custom detection tasks? Is it possible for you to open source your training code?
With so many different types of license plates around the world, it's hard to create a 'one size fits all' solution. Any tips on additional finetuning would be most helpful for real-world performance issues. Thank you in advance!

Anonymizer on video file mp4

Dear UAI,
Thanks for your anonymizer.
In your opinion, is it possible use the anonymizer to blur faces and license plates on video file mp4 like the following?

From:
https://youtu.be/PcKXjFCC2f0?t=778
To:
https://youtu.be/PcKXjFCC2f0?t=809

Here you can see an example similar to the videos I am processing, in these 30 seconds there are both faces of people and license plates of cars.

I need to remove the PII Personal Identifiable Information from videos made on a bicycle with the cyclist's POV Point Of View cam.

I've seen that sometimes a simple WHILE loop is enough to apply a tool from photos to videos like this:
https://pysource.com/2021/05/21/blur-faces-in-real-time-with-opencv-mediapipe-and-python/#:~:text=add(background%2C%20face_extracted)-,Take,-out%20the%20face

I ask if it is also possible with anonymizer.

Thanks for your availability
Happy 2022

Memory usage

I am trying to use this on a Jetson Xavier NX with 8gb of shared GPU/CPU ram.

It seems to want to use around 14GB total. Is that expected behaviour? Does anyone have suggestions to reduce that significantly?

I tried using
tf_config.gpu_options.allow_growth=True

for both the obfuscator and the detector, but it doesn't seem to help, leading me to believe the model really does need that much GPU memory?

Removing Metadata.

Code works great! would be even better if the anonymized images kept the metadata from the original. Or at least having an option to do so! Especially if mapping data which needs to be anonymized, the finished images have no GPS exif...

protobuf Decode Error

This is what I get after running the script

C:\Users\...\anonymizer\anonymizer\bin\anonymize.py

with the arguments

--input C:\Users\...\anonymizer\images --image-output C:\Users\...\anonymizer\imagesOUT --weights C:\Users\...\anonymizer\ws

Traceback (most recent call last):
  File "C:/Users/.../anonymizer/anonymizer/bin/anonymize.py", line 102, in <module>
    write_json=args.write_detections, obfuscation_parameters=args.obfuscation_kernel)
  File "C:/Users/.../anonymizer/anonymizer/bin/anonymize.py", line 84, in main
    'face': Detector(kind='face', weights_path=get_weights_path(weights_path, kind='face')),
  File "C:\Users\...\anonymizer\anonymizer\detection\detector.py", line 16, in __init__
    od_graph_def.ParseFromString(serialized_graph)
google.protobuf.message.DecodeError: Error parsing message with type 'tensorflow.GraphDef'

I followed the instructions (and deleted -gpu in tensorflow-gpu as requested).


Also, one of the tests does not pass:

self = <tensorflow.python.framework.ops.Graph object at 0x000000490741A898>
obj = 'image_tensor:0', allow_tensor = True, allow_operation = False

    def _as_graph_element_locked(self, obj, allow_tensor, allow_operation):
      """See `Graph.as_graph_element()` for details."""
      # The vast majority of this function is figuring
      # out what an API user might be doing wrong, so
      # that we can give helpful error messages.
      #
      # Ideally, it would be nice to split it up, but we
      # need context to generate nice error messages.

      if allow_tensor and allow_operation:
        types_str = "Tensor or Operation"
      elif allow_tensor:
        types_str = "Tensor"
      elif allow_operation:
        types_str = "Operation"
      else:
        raise ValueError("allow_tensor and allow_operation can't both be False.")

      temp_obj = _as_graph_element(obj)
      if temp_obj is not None:
        obj = temp_obj

      # If obj appears to be a name...
      if isinstance(obj, compat.bytes_or_text_types):
        name = compat.as_str(obj)

        if ":" in name and allow_tensor:
          # Looks like a Tensor name and can be a Tensor.
          try:
            op_name, out_n = name.split(":")
            out_n = int(out_n)
          except:
            raise ValueError("The name %s looks a like a Tensor name, but is "
                             "not a valid one. Tensor names must be of the "
                             "form \"<op_name>:<output_index>\"." % repr(name))
          if op_name in self._nodes_by_name:
            op = self._nodes_by_name[op_name]
          else:
            raise KeyError("The name %s refers to a Tensor which does not "
                           "exist. The operation, %s, does not exist in the "
>                          "graph." % (repr(name), repr(op_name)))
E           KeyError: "The name 'image_tensor:0' refers to a Tensor which does not exist. The operation, 'image_tensor', does not exist in the graph."


..\..\..\Anaconda3\envs\anonim\lib\site-packages\tensorflow\python\framework\ops.py:3530: KeyError

Error with downloading weights

Hi, there's something wrong when I download the weights, and I've checked my connection is fine. Is there anything wrong with the weights source? The url can't be opened directly, could you please kindly provide a available address to download the weights?

Here is my error when run pytest:

raise ConnectionError(e, request=request)
E requests.exceptions.ConnectionError: HTTPSConnectionPool(host='docs.google.com', port=443): Max retries exceeded with url: /uc?export=download&id=1CwChAYxJo3mON6rcvXsl82FMSKj82vxF (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f33d979da58>: Failed to establish a new connection: [Errno 101] Network is unreachable',))

../miniconda3/envs/anonyai/lib/python3.6/site-packages/requests/adapters.py:516: ConnectionError
--------------------------------------------------------------------------------------- Captured stdout call ----------------------------------------------------------------------------------------
Downloading face weights to /tmp/pytest-of-root/pytest-1/test_it_downloads_weights0/weights/weights_face_v1.0.0.pb
Downloading 1CwChAYxJo3mON6rcvXsl82FMSKj82vxF into /tmp/pytest-of-root/pytest-1/test_it_downloads_weights0/weights/weights_face_v1.0.0.pb...

Tensorflow & CUDA versions

Hello,

I followed the exact README you have and got the cuda error E ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory when running pytest.

Probably a compatibility between tensorflow-gpu version and CUDA version issue

RuntimeWarning

Hello !

I'm trying to make this project run on CPU with windows & anaconda but I have a weird issue.

The pytest works fine but when I'm trying to run the following command:

python anonymizer\bin\anonymize.py --input .\input\ --image-output .\output\ --weights .\weights\

I have the error

mypath\anonymizer\anonymizer\detection\detector.py:16: RuntimeWarning: Unexpected end-group tag: Not all data was converted
  od_graph_def.ParseFromString(serialized_graph)

Followed by inducted errors:

Anonymizing images in .\input\ and saving the anonymized images to .\output\...
  0%|                                                                                                                                       | 0/4 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "anonymizer\bin\anonymize.py", line 104, in <module>
    write_json=args.write_detections, obfuscation_parameters=args.obfuscation_kernel)
  File "anonymizer\bin\anonymize.py", line 96, in main
    write_json=write_json)
  File "mypath\anonymizer\anonymizer\anonymization\anonymizer.py", line 68, in anonymize_images
    anonymized_image, detections = self.anonymize_image(image=image, detection_thresholds=detection_thresholds)
  File "mypath\anonymizer\anonymizer\anonymization\anonymizer.py", line 45, in anonymize_image
    new_boxes = detector.detect(image, detection_threshold=detection_thresholds[kind])
  File "mypath\anonymizer\anonymizer\detection\detector.py", line 40, in detect
    image_tensor = self.detection_graph.get_tensor_by_name('image_tensor:0')
  File "mypath2\anaconda3\envs\anonymizer\lib\site-packages\tensorflow\python\framework\ops.py", line 3664, in get_tensor_by_name
    return self.as_graph_element(name, allow_tensor=True, allow_operation=False)
  File "mypath2\anaconda3\envs\anonymizer\lib\site-packages\tensorflow\python\framework\ops.py", line 3488, in as_graph_element
    return self._as_graph_element_locked(obj, allow_tensor, allow_operation)
  File "mypath2\anaconda3\envs\anonymizer\lib\site-packages\tensorflow\python\framework\ops.py", line 3530, in _as_graph_element_locked
    "graph." % (repr(name), repr(op_name)))
KeyError: "The name 'image_tensor:0' refers to a Tensor which does not exist. The operation, 'image_tensor', does not exist in the graph."

Have anyone an idea about the purpose of this error ?

BR

Errors after pytest

Hi followed instructions and getting these errors after install in the virtualenv - note doing this on a windows10 machine. Verified tensoflow-gpu is installed correctly.

Any idea?


(anonymizer) C:\Users\Ravi\anonymizer>pytest
============================= test session starts =============================
platform win32 -- Python 3.7.5, pytest-3.9.1, py-1.8.0, pluggy-0.13.1
rootdir: C:\Users\Ravi\anonymizer, inifile: pytest.ini
collected 20716 items / 4 errors

=================================== ERRORS ====================================
_ ERROR collecting Lib/site-packages/importlib_metadata/tests/test_integration.py _
ImportError while importing test module 'C:\Users\Ravi\anonymizer\Lib\site-packages\importlib_metadata\tests\test_integration.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
lib\site-packages\importlib_metadata\tests\test_integration.py:2: in
import packaging.requirements
E ModuleNotFoundError: No module named 'packaging'
______________ ERROR collecting test/detection/detector_test.py _______________
ImportError while importing test module 'C:\Users\Ravi\anonymizer\test\detection\detector_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
test\detection\detector_test.py:5: in
from anonymizer.detection import Detector
anonymizer\detection_init_.py:1: in
from anonymizer.detection.detector import Detector
anonymizer\detection\detector.py:2: in
import tensorflow as tf
E ModuleNotFoundError: No module named 'tensorflow'
_______________ ERROR collecting test/detection/weights_test.py _______________
ImportError while importing test module 'C:\Users\Ravi\anonymizer\test\detection\weights_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
test\detection\weights_test.py:1: in
from anonymizer.detection import download_weights
anonymizer\detection_init_.py:1: in
from anonymizer.detection.detector import Detector
anonymizer\detection\detector.py:2: in
import tensorflow as tf
E ModuleNotFoundError: No module named 'tensorflow'
____________ ERROR collecting test/obfuscation/obfuscator_test.py _____________
ImportError while importing test module 'C:\Users\Ravi\anonymizer\test\obfuscation\obfuscator_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
test\obfuscation\obfuscator_test.py:3: in
from anonymizer.obfuscation import Obfuscator
anonymizer\obfuscation_init_.py:1: in
from anonymizer.obfuscation.obfuscator import Obfuscator
anonymizer\obfuscation\obfuscator.py:5: in
import tensorflow as tf
E ModuleNotFoundError: No module named 'tensorflow'
============================== warnings summary ===============================
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\tests\test_defmatrix.py:339: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
a = matrix([[1, 2], [3, 4]])

C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\tests\test_defmatrix.py:419: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
m = matrix([[1], [2]])

C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\tests\test_matrix_linalg.py:25: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
np.matrix([2., 1.]).T),

C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\tests\test_matrix_linalg.py:27: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
np.matrix([[1., 2.], [3., 4.]]),

C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\tests\test_matrix_linalg.py:28: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
np.matrix([2., 1.]).T),

C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\tests\test_matrix_linalg.py:34: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
np.matrix([[1., 2.], [2., 1.]]),

C:\Users\Ravi\anonymizer\Lib\site-packages\scipy\linalg\tests\test_solvers.py:82: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
(np.matrix([[0, 1], [-1/2, -1]]),

C:\Users\Ravi\anonymizer\Lib\site-packages\scipy\linalg\tests\test_solvers.py:83: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
(np.matrix([0, 3]).T * np.matrix([0, 3]).T.T)),
C:\Users\Ravi\anonymizer\Lib\site-packages\scipy\linalg\tests\test_solvers.py:83: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
(np.matrix([0, 3]).T * np.matrix([0, 3]).T.T)),

C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)

C:\Users\Ravi\anonymizer\Lib\site-packages\scipy\linalg\tests\test_solvers.py:85: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
(np.matrix([[0, 1], [-1/2, -1]]),

C:\Users\Ravi\anonymizer\Lib\site-packages\scipy\linalg\tests\test_solvers.py:86: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
(np.array(np.matrix([0, 3]).T * np.matrix([0, 3]).T.T))),
C:\Users\Ravi\anonymizer\Lib\site-packages\scipy\linalg\tests\test_solvers.py:86: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
(np.array(np.matrix([0, 3]).T * np.matrix([0, 3]).T.T))),

C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)

C:\Users\Ravi\anonymizer\Lib\site-packages\scipy\sparse\tests\test_base.py:227: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
cls.dat = matrix([[1,0,0,2],[3,0,1,0],[0,2,0,0]],'d')

C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)

C:\Users\Ravi\anonymizer\Lib\site-packages\scipy\sparse\tests\test_base.py:227: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
cls.dat = matrix([[1,0,0,2],[3,0,1,0],[0,2,0,0]],'d')

C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)

C:\Users\Ravi\anonymizer\Lib\site-packages\scipy\sparse\tests\test_base.py:227: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
cls.dat = matrix([[1,0,0,2],[3,0,1,0],[0,2,0,0]],'d')

C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)

C:\Users\Ravi\anonymizer\Lib\site-packages\scipy\sparse\tests\test_base.py:227: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
cls.dat = matrix([[1,0,0,2],[3,0,1,0],[0,2,0,0]],'d')

C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)

C:\Users\Ravi\anonymizer\Lib\site-packages\scipy\sparse\tests\test_base.py:227: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
cls.dat = matrix([[1,0,0,2],[3,0,1,0],[0,2,0,0]],'d')

C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)

C:\Users\Ravi\anonymizer\Lib\site-packages\scipy\sparse\tests\test_base.py:227: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
cls.dat = matrix([[1,0,0,2],[3,0,1,0],[0,2,0,0]],'d')

C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)

C:\Users\Ravi\anonymizer\Lib\site-packages\scipy\sparse\tests\test_base.py:227: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
cls.dat = matrix([[1,0,0,2],[3,0,1,0],[0,2,0,0]],'d')

C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
C:\Users\Ravi\anonymizer\Lib\site-packages\numpy\matrixlib\defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)

c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark
c:\users\ravi\anonymizer\lib\site-packages_pytest\python.py:1379: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
Please use node.get_closest_marker(name) or node.iter_markers(name).
Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
self.keywords[mark.name] = mark

-- Docs: https://docs.pytest.org/en/latest/warnings.html
!!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection !!!!!!!!!!!!!!!!!!!
=================== 152 warnings, 4 error in 34.04 seconds ====================

Segmentation fault while testing detector with pytest

I am using:
-Python 3.6.0
-pytest 3.9.1
-tensorflow-gpu 1.11.0
-ubuntu 16.04

My error:

(anonymizer) uidn4908@frd87sju:~/anonymizer$ pytest
================= test session starts ============================
platform linux -- Python 3.6.0, pytest-3.9.1, py-1.8.1, pluggy-0.13.1
rootdir: /home/uidn4908/anonymizer, inifile: pytest.ini
collected 6 items

test/anonymization/anonymizer_test.py .. [ 33%]
test/detection/detector_test.py Speicherzugriffsfehler

After some debugging i narrowed it down to line 50 in detector.py:

num_boxes, scores, boxes = self.session.run(
[num_detections, detection_scores, detection_boxes],
feed_dict={image_tensor: np_images})

Anybody a similar issue? Or an idea how to solve this ?

ssdlite models

Hey folks,
Thank you for the great work and the models. Do you think you can also release ssdlite models of the same in addition the current 181MB SSD models?

Thanks,

Operation, 'image_tensor', does not exist in the graph

Hello,

I am getting this error when running pytest and the same when running nonymizer/bin/anonymize.py

`Anonymizing images in input/ and saving the anonymized images to output/...
0%| | 0/2 [00:00<?, ?it/s]
Traceback (most recent call last):
File "anonymizer/bin/anonymize.py", line 104, in
write_json=args.write_detections, obfuscation_parameters=args.obfuscation_kernel)
File "anonymizer/bin/anonymize.py", line 96, in main
write_json=write_json)
File "/home/coredump/projects/anonymizer/anonymizer/anonymization/anonymizer.py", line 68, in anonymize_images
anonymized_image, detections = self.anonymize_image(image=image, detection_thresholds=detection_thresholds)
File "/home/coredump/projects/anonymizer/anonymizer/anonymization/anonymizer.py", line 45, in anonymize_image
new_boxes = detector.detect(image, detection_threshold=detection_thresholds[kind])
File "/home/coredump/projects/anonymizer/anonymizer/detection/detector.py", line 39, in detect
image_tensor = self.detection_graph.get_tensor_by_name('image_tensor:0')
File "/home/coredump/anaconda3/envs/anonymizer/lib/python3.6/site-packages/tensorflow_core/python/framework/ops.py", line 3783, in get_tensor_by_name
return self.as_graph_element(name, allow_tensor=True, allow_operation=False)
File "/home/coredump/anaconda3/envs/anonymizer/lib/python3.6/site-packages/tensorflow_core/python/framework/ops.py", line 3607, in as_graph_element
return self._as_graph_element_locked(obj, allow_tensor, allow_operation)
File "/home/coredump/anaconda3/envs/anonymizer/lib/python3.6/site-packages/tensorflow_core/python/framework/ops.py", line 3649, in _as_graph_element_locked
"graph." % (repr(name), repr(op_name)))'

'KeyError: "The name 'image_tensor:0' refers to a Tensor which does not exist. The operation, 'image_tensor', does not exist in the graph."
`
Anyone with this issue? I am using TF 1.15.4

Rgds,
FM

Provide servable Graph defs?

Thanks for your great work! I've just one request. Would it be possible to provide servable graphs? In order to run a tensorflow server, the weights have to be separated from the graph definition.
The models would then be divided into 3 different files:

  • saved_model.pb (containing the graph def without the variables)
  • variables.data-00000-of-00001
  • variables.index

Thanks in advance!

Add support for python 3.8

Python 3.8 support requires TensorFlow 2.2 or later.

Bumping the version of TensorFlow and of related requirements:

diff --git a/requirements.txt b/requirements.txt
index 4191dc6..1bfd188 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,9 +1,9 @@
 pytest==3.9.1
 flake8==3.5.0
-numpy==1.15.2
-tensorflow-gpu==1.11.0
-scipy==1.1.0
-Pillow==5.3.0
-requests==2.20.0
+numpy==1.19.0
+tensorflow-gpu==2.2.0
+scipy==1.4.1
+Pillow==7.2.0
+requests==2.24.0
 googledrivedownloader==0.3
 tqdm==4.28.0

leads to the following errors when running pytest:

================================================================================= FAILURES ==================================================================================
________________________________________________________________ TestDetector.test_it_detects_obvious_faces _________________________________________________________________

tmp_path = PosixPath('/tmp/pytest-of-alex/pytest-0/test_it_detects_obvious_faces0')

    @staticmethod
    def test_it_detects_obvious_faces(tmp_path):
        weights_directory = tmp_path / 'weights'
        face_weights_path = get_weights_path(weights_directory, kind='face')
        download_weights(weights_directory)
    
>       detector = Detector(kind='face', weights_path=face_weights_path)

test/detection/detector_test.py:27: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <anonymizer.detection.detector.Detector object at 0x7f5855014d30>, kind = 'face'
weights_path = '/tmp/pytest-of-alex/pytest-0/test_it_detects_obvious_faces0/weights/weights_face_v1.0.0.pb'

    def __init__(self, kind, weights_path):
        self.kind = kind
    
        self.detection_graph = tf.Graph()
        with self.detection_graph.as_default():
>           od_graph_def = tf.GraphDef()
E           AttributeError: module 'tensorflow' has no attribute 'GraphDef'

anonymizer/detection/detector.py:13: AttributeError
--------------------------------------------------------------------------- Captured stdout call ----------------------------------------------------------------------------
Downloading face weights to /tmp/pytest-of-alex/pytest-0/test_it_detects_obvious_faces0/weights/weights_face_v1.0.0.pb
Downloading 1CwChAYxJo3mON6rcvXsl82FMSKj82vxF into /tmp/pytest-of-alex/pytest-0/test_it_detects_obvious_faces0/weights/weights_face_v1.0.0.pb... Done.
Downloading plate weights to /tmp/pytest-of-alex/pytest-0/test_it_detects_obvious_faces0/weights/weights_plate_v1.0.0.pb
Downloading 1Fls9FYlQdRlLAtw-GVS_ie1oQUYmci9g into /tmp/pytest-of-alex/pytest-0/test_it_detects_obvious_faces0/weights/weights_plate_v1.0.0.pb... Done.
_________________________________________________________________ TestObfuscator.test_it_obfuscates_regions _________________________________________________________________

    @staticmethod
    def test_it_obfuscates_regions():
>       obfuscator = Obfuscator()

test/obfuscation/obfuscator_test.py:10: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <anonymizer.obfuscation.obfuscator.Obfuscator object at 0x7f5854f99a00>, kernel_size = 21, sigma = 2, channels = 3, box_kernel_size = 9, smooth_boxes = True

    def __init__(self, kernel_size=21, sigma=2, channels=3, box_kernel_size=9, smooth_boxes=True):
        """
        :param kernel_size: Size of the blurring kernel.
        :param sigma: standard deviation of the blurring kernel. Higher values lead to sharper edges, less blurring.
        :param channels: Number of image channels this blurrer will be used for. This is fixed as blurring kernels will
            be created for each channel only once.
        :param box_kernel_size: This parameter is only used when smooth_boxes is True. In this case, a smoothing
            operation is applied on the bounding box mask to create smooth transitions from blurred to normal image at
            the bounding box borders.
        :param smooth_boxes: Flag defining if bounding box masks borders should be smoothed.
        """
        # Kernel must be uneven because of a simplified padding scheme
        assert kernel_size % 2 == 1
    
        self.kernel_size = kernel_size
        self.box_kernel_size = box_kernel_size
        self.sigma = sigma
        self.channels = channels
        self.smooth_boxes = smooth_boxes
    
        # create internal kernels (3D kernels with the channels in the last dimension)
        kernel = self._gaussian_kernel(kernel_size=self.kernel_size, sigma=self.sigma)  # kernel for blurring
        self.kernels = np.repeat(kernel, repeats=channels, axis=-1).reshape((kernel_size, kernel_size, channels))
        mean_kernel = bilinear_filter(filter_size=(box_kernel_size, box_kernel_size))  # kernel for smoothing
        self.mean_kernel = np.expand_dims(mean_kernel/np.sum(mean_kernel), axis=-1)
    
        # visualization
        # print(self.kernels.shape)
        # self._visualize_kernel(kernel=self.kernels[..., 0])
        # self._visualize_kernel(kernel=self.mean_kernel[..., 0])
    
        # wrap everything in a tf session which is always open
>       sess = tf.Session(config=get_default_session_config(0.9))
E       AttributeError: module 'tensorflow' has no attribute 'Session'

anonymizer/obfuscation/obfuscator.py:44: AttributeError
=================================================================== 2 failed, 4 passed in 491.54 seconds ====================================================================

Looks like there have been some API changes, for example:

E       AttributeError: module 'tensorflow' has no attribute 'GraphDef'
E       AttributeError: module 'tensorflow' has no attribute 'Session'

Pretrained weights missing

The automatic weight downlader only loads html from google with content:

<html lang=en><meta charset=utf-8><meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width"><title>Error 404 (Not Found)!!1</title><style nonce="IgEdrDKP/lzTGp6YmtSdWw">*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{color:#222;text-align:unset;margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px;}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}pre{white-space:pre-wrap;}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}</style><main id="af-error-container" role="main"><a href=//www.google.com><span id=logo aria-label=Google role=img></span></a><p><b>404.</b> <ins>That’s an error.</ins><p>The requested URL was not found on this server. <ins>That’s all we know.</ins></main>

Note the "The requested URL was not found on this server."
Can you reupload the weights and update the weights?
Related to this should be #29 #15 #17

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.