hukkelas / deep_privacy2

DeepPrivacy2 - A Toolbox for Realistic Image Anonymization
Apache License 2.0
292 stars 33 forks source link

No module names "tops" #9

Closed petale-azerty closed 1 year ago

petale-azerty commented 1 year ago

Hello dear Hukkelas,

when i try to use deep privacy 2 for the webcam with this command line : _python3 anonymize.py configs/anonymizers/FBcse.py --webcam

I receive this output : ModuleNotFoundError: No module named 'tops'

Can you help me with this ??

cassepipe commented 1 year ago

I am no expert and just like you I am trying to make it work.

What I understand from your error message is that one of the dependencies is missing, namely the tops package.

I have no knowledge on how to manage packages in Python and it has a reputatation of being trcicky because it can mess the python packages already installed in your system... So you may want to educate yourself a bit about that. Also I assume you are running Linux, I have no idea about windows.

My naive answer would be : Try to pip install tops in you terminal and see it works. Do that with all missing packages until you don't have those errors anymore pip is the python package manager.

If you get the same error with the same package name after you've installed it, that's probably because the software pip installed is not on your PATH

hukkelas commented 1 year ago

If you install the repository with the setup.py file it should be automatically installed, following the installation instructions.

If not, you can install tops with:

pip install git+https://github.com/hukkelas/torch_ops