ORB-HD / deface

Video anonymization by face detection
MIT License
625 stars 87 forks source link

executing in windows cmd #58

Open fersegundo2 opened 3 months ago

fersegundo2 commented 3 months ago

I have limited technical knowledge

I installed correctly in a cmd in windows (I run it as admin)

after that "deface" is not recognized as a command. Maybe its as easy as setting some directory to PATH (or alternatively typing the whole path to where it is).

I tried "pip where deface" ... says its not there

I know it was installed to: "C:\users\fernando\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages\deface"

I tried getting into this directory and typing "deface". It also does not find it

then I tried " python3 deface.py" this is the output:

PS C:\users\fernando\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages\deface> python3 deface.py D:\Downloads\villalba.mp4 Traceback (most recent call last): File "C:\users\fernando\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages\deface\deface.py", line 17, in from deface import version File "C:\users\fernando\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages\deface\deface.py", line 17, in from deface import version ImportError: cannot import name 'version' from partially initialized module 'deface' (most likely due to a circular import) (C:\users\fernando\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages\deface\deface.py) PS C:\users\fernando\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages\deface>

I don't know what else to try on windows. I will try to install a virtual ubuntu and try there, but it would be nice if there was a fool-proof way to easily use this tool in windows

Thank you for your efforts!

StealUrKill commented 1 week ago

What python are you using. Your directory looks way different than mine and the package works flawless.