Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide basic end-user documentation #2362

Open
marco-eckstein opened this issue Jul 6, 2023 · 4 comments
Open

Provide basic end-user documentation #2362

marco-eckstein opened this issue Jul 6, 2023 · 4 comments

Comments

@marco-eckstein
Copy link

marco-eckstein commented Jul 6, 2023

I have been using InsightFace for face swapping via the Discord bot. It is super-easy to use and the results are amazing! (10/10)

Then I wanted to use InsightFace locally via the command line. Even as a software developer, I couldn't get it to run. Sorry, but the docs are a disaster and seem to be targeted at your own developers only. (0/10) The website says pip install -U insightface, which I did, but that was not sufficient.

The "documentation" does not even mention pip install -U insightface As the title and code examples suggest, this is aimed at Python developers who want to integrate InsightFace into their applications. Also, no explanation what the meaning of all these models is. Just in case, I ran pip install onnxruntime-gpu.

The wiki installation instructions are completely cryptic.

Before filing this issue, I found some hidden docs in the form of pinned issue #891. So I have downloaded antelope model files and saved them where I thought may be the model folder ~/.insightface/models/. I have saved them to both C:\Users\MyUsername\.insightface\models\antelope\*.onnx and installation directory C:\Program Files\Python310\Lib\site-packages\insightface\models\antelope\*.onnx. But insightface-cli.exe --help still gave me the error ModuleNotFoundError: No module named 'mxnet'.

After a web search, I did pip install mxnet. Now insightface-cli.exe --help gives me the error ImportError: cannot import name 'Mapping' from 'collections' (C:\Program Files\Python310\lib\collections\__init__.py)

This is too frustrating to waste more time on it.

On a related note, your discoverability of the project is very bad. I had spent hours searching for a software like yours, trying out many commercially available services and also spending many hours on https://github.com/deepfakes/faceswap, getting barely mediocre results. I only have access to your software now because a friend pointed me to a tutorial video that demonstrates how to use your Discord bot.

@phineas-pta
Copy link

in case u don't realize, this repo is oriented towards researchers (the authors have been writing several papers), so don't expect a ready-to-use software, nor discoverability/publicity for non-technical public

concerning deepfakes/faceswap (and its cousin iperov/DeepFaceLab) it requires days of training and adjusting, not several hours playing around

@nttstar
Copy link
Collaborator

nttstar commented Jul 6, 2023

This Python library is primarily designed for Linux systems, and if you're using Ubuntu or CentOS, you shouldn't have any issues with the installation. For Windows systems, you may encounter some installation problems, but I'm not entirely sure as I haven't used Windows for many years.

@dvjhr
Copy link

dvjhr commented Jul 10, 2023

Honestly, the documentation for the basic usage (python-package) is pretty straightforward if you need something ready to use (dependencies problem aside). But yes, the documentation in general is pretty tangled as there are several pages that are not aligned or updated with each other like model details in python-package and model-zoo. I'm currently using the pretrained version of this for my research project and I found it pretty tricky but still difficult to guess or decrypt something like what function or method we could use, what parameters that we could use or change when calling a function, the meaning of some terms from output, which import to use when you want to use specific utils from the library, etc. I guess I shouldn't ask too much since I'm currently doing fine for my current project but maybe there are another people who need a more detailed and basic tutorial.

Apologize for my long write and thanks a lot for the author and friends for providing and maintaining such an amazing research repo 👍

@aidansmyth95
Copy link

Agreed, this repo is very challenging to use due to missing documentation or a getting started guide, for example how to install dependencies and run RetinaFace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants