What i have done wrong?

Installing and setting up FaceSwap


Forum rules

Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.

Locked
User avatar
Michelchen
Posts: 9
Joined: Tue Apr 04, 2023 9:27 am

What i have done wrong?

Post by Michelchen »

Hello folks,

As always, I've probably made a fool of myself again.
I installed the program correctly, exactly according to the specifications on a Win10 computer (Nvidia Quadro 2200 graphics card, updated first, of course !).
If I now click on the face swap icon, an input window appears briefly (less than a second), then disappears again and nothing else happens...
What I have done wrong???

User avatar
torzdf
Posts: 2651
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 129 times
Been thanked: 622 times

Re: What i have done wrong?

Post by torzdf »

Probably nothing. Unfortunately the window that appears and quickly disappears will be showing the error message.

You can run this on a window that won't close immediately by going to your faceswap folder and opening up the file "windows_launcher.bat" (it's named something similar to that) in a text editor and copying the contents of the file.

Open up a command prompt (start > cmd) and paste the contents of the .bat file and press enter. You should then get the error output.

My word is final

User avatar
Michelchen
Posts: 9
Joined: Tue Apr 04, 2023 9:27 am

Re: What i have done wrong?

Post by Michelchen »

Thank you, dear "TORZDF" for your tip.
But the whole thing fails for me because I can open and display this file you mentioned in both "Editor" and "Wordpad". But pasting into command prompt still gives no result.
Either it cannot be inserted into the normal input window at all.
In the "Anaconda Prompt" input window also found on the computer, syntax errors are pointed out to me.
In the "Developer Command Prompt for Visual Studio 2022" I have the following messages, but as Jaie I can't do too much with them:

Attachments
fc sw002.jpg
fc sw002.jpg (110.7 KiB) Viewed 7506 times
User avatar
torzdf
Posts: 2651
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 129 times
Been thanked: 622 times

Re: What i have done wrong?

Post by torzdf »

You have a problem with either your Nvidia driver, or with conflicts....

The first thing I would do is make sure my Nvidia driver is completely up to date. (You may want to use DDU to completely remove the old driver first, in case there are issues with your installed version).

If that doesn't fix the issue, then likely something is conflicting. In which case you should follow all these steps:
app.php/faqpage#f1r1

My word is final

User avatar
Michelchen
Posts: 9
Joined: Tue Apr 04, 2023 9:27 am

Re: What i have done wrong?

Post by Michelchen »

It's absolutely frustrating! Somehow I ALWAYS reach into the shit, even with a completely new installed computer...
Some cuda or conda files, even if they are only 28 out of 10000, simply cannot be deleted. And the installation program stops at some point in the middle!

I'm happy to give you access to my device via Team Viewer, I have nothing to hide.
Then you can try it yourself...

User avatar
Michelchen
Posts: 9
Joined: Tue Apr 04, 2023 9:27 am

Re: What i have done wrong?

Post by Michelchen »

Setup seems to miss the Module named : typing_extensions"

User avatar
torzdf
Posts: 2651
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 129 times
Been thanked: 622 times

Re: What i have done wrong?

Post by torzdf »

If you provide the file faceswap_setup.log from your faceswap folder, we can see why it is failing.

typing_extensions should be installed as part of the standard install, but if your install is failing, then it is not surprising it (and others) are missing.

I'll say ahead of time that the most common cause of failure at install are network connection issues. However, we will be able to confirm with the log file.

My word is final

User avatar
Michelchen
Posts: 9
Joined: Tue Apr 04, 2023 9:27 am

Re: What i have done wrong?

Post by Michelchen »

Hello TORZDF,

I really appreciate you taking so much time for me. Even if I act so stupid. Attached is the log file.

I have fiber optic internet. Not really as fast as an arrow, but stable...

...................................................................................................................................................................

Code: Select all

(check) MiniConda installed: conda 23.3.1
(check) CPU Supports AVX Instructions
(check) CPU Supports SSE4 Instructions
(check) Completed check for installed applications
(check) Setting up for: nvidia

Miniconda3 installed.
Initializing Conda...
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
# All requested packages already installed.
Creating Conda Virtual Environment...
Remove all packages in environment C:\Users\dell\MiniConda3\envs\faceswap:
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
## Package Plan ##
  environment location: C:\Users\dell\MiniConda3\envs\faceswap
  added / updated specs:
    - python=3.7
The following NEW packages will be INSTALLED:
  ca-certificates    pkgs/main/win-64::ca-certificates-2023.01.10-haa95532_0 
  certifi            pkgs/main/win-64::certifi-2022.12.7-py37haa95532_0 
  openssl            pkgs/main/win-64::openssl-1.1.1t-h2bbff1b_0 
  pip                pkgs/main/win-64::pip-22.3.1-py37haa95532_0 
  python             pkgs/main/win-64::python-3.7.16-h6244533_0 
  setuptools         pkgs/main/win-64::setuptools-65.6.3-py37haa95532_0 
  sqlite             pkgs/main/win-64::sqlite-3.41.1-h2bbff1b_0 
  vc                 pkgs/main/win-64::vc-14.2-h21ff451_1 
  vs2015_runtime     pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2 
  wheel              pkgs/main/win-64::wheel-0.38.4-py37haa95532_0 
  wincertstore       pkgs/main/win-64::wincertstore-0.2-py37haa95532_2 
Downloading and Extracting Packages
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
#
# To activate this environment, use
#
#     $ conda activate faceswap
#
# To deactivate an active environment, use
#
#     $ conda deactivate
Installing Git...
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
## Package Plan ##
  environment location: C:\Users\dell\MiniConda3\envs\faceswap
  added / updated specs:
    - git
The following NEW packages will be INSTALLED:
  git                pkgs/main/win-64::git-2.34.1-haa95532_0 
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Downloading Faceswap...
Cloning into 'C:\Users\dell\faceswap002'...
Setting up FaceSwap Environment... This may take a while
Traceback (most recent call last):
  File "C:\Users\dell\faceswap002\setup.py", line 23, in <module>
    from typing_extensions import Literal
ModuleNotFoundError: No module named 'typing_extensions'
Error Setting up Faceswap
Install Aborted
Last edited by torzdf on Fri Apr 07, 2023 11:34 am, edited 1 time in total.
User avatar
Michelchen
Posts: 9
Joined: Tue Apr 04, 2023 9:27 am

Re: What i have done wrong?

Post by Michelchen »

Is 70Mbit/sec not enough?

User avatar
Michelchen
Posts: 9
Joined: Tue Apr 04, 2023 9:27 am

Plan B... other ideas...

Post by Michelchen »

Now I've actually managed to successfully install Faceswap on another computer, a laptop. It could actually have been the network connection. (I didn't use 80MBit via WLAN, but 110 MBit via Lan cable).

Unfortunately, this computer, a laptop (I only use it for programming organ software) is far too slow and doesn't have an NVidia card either. So absolutely unsuitable for face swap. (Even the installation took a good 6 hours, but basically works.)

That's why I tried it again afterwards on the computer on which it hadn't worked so far, also directly via Lan cable as well.
(Before followed the tips on what has to to delete everything and restarted)

Unfortunately again without success. Setup aborted again. Said file (typing_extensions) is still missing, despite a much better internet connection. And because it finally worked on the laptop, it can no longer be due to this network connection.

What else can be wrong????

Now I would have come up with the idea of copying this FaceSwap folder installed on the laptop to a suitable data medium and transferring it to the computer on which I would like FaceSwap. Is there a way to do this and could this method be successful?
Or can I put this missing file (typing_extensions and others that should be missing in the course of trying setup again) on this computer and try the installation again?

I'm extremely frustrated, but I'm not ready (yet) to give up!

User avatar
torzdf
Posts: 2651
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 129 times
Been thanked: 622 times

Re: What i have done wrong?

Post by torzdf »

No, that's fine. You've hit an issue I have not seen before. It is complaining about missing a package which you should, at no point, not have at that stage. Most likely this is a conflict.

Please follow the instructions here to completely remove any python/conda/cuda installs and re-run the installer. If the installer fails again, please re-supply the faceswap_setup.log file (prior to re-running the installer).
app.php/faqpage#f1r1

My word is final

User avatar
Michelchen
Posts: 9
Joined: Tue Apr 04, 2023 9:27 am

Re: What i have done wrong?

Post by Michelchen »

Hello, dear TORZDF,

I'm very happy that you're sticking with it, actually want to help me and don't say: that's just a weirdo!

About the computer I would like to have the software on:

It is a Dell DESKTOP-D44IJPS
Processor INTEL XEON CPU E§-1270 V2 @3.5 GHz
Installed Ram 8GB
Win 10 Pro for workstations.

The computer has been factory reset / rebooted twice in a row.
The programs I installed:

Arduino development environment
Paint Shop Pro 3.12
power director 11
Adobe After Effects 2021
Cartoon Animators 4.5
Team Viewer 11.
Borland C++ Builder 6
tera term
Khazama AVR programmer

The graphics card (NVIDIA Quadro K2200) may be unusual. But it should be a very powerful one, which was previously used in a dental laboratory just like the whole PC for CadCam, now just not the typical games computer. So definitely not bad.
I also have a PC here that has other NVIDIA cards. I'm also happy to try these in an exchange.
I have now carried out the procedure you are suggesting for the 5th time. Unfortunately, the result is always the same.

User avatar
torzdf
Posts: 2651
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 129 times
Been thanked: 622 times

Re: What i have done wrong?

Post by torzdf »

Yeah. None of those things listed will cause you issues. Like I say, the most likely issue is a conflict, which would be resolved with following the steps I listed.

If you can't/won't do that, you can try manually installing TypingExtensions. It will probably get you over this hurdle, but most likely you will hit other issues in the future.... Ultimately TypingExtensions should be part of your base install. If it weren't, I would have a myriad of complaints that the installer is not working. This is not the case, however. Yours is the only report I have seen of this nature, which circles me back to 'conflict on your system' and the steps I linked earlier.

However, if you do still want to plough on regardless (I would not recommend this, I would recommend following the above steps):

Start > Anaconda prompt

Code: Select all

conda activate faceswap
conda install typing_extensions

My word is final

User avatar
Michelchen
Posts: 9
Joined: Tue Apr 04, 2023 9:27 am

Re: What i have done wrong?

Post by Michelchen »

But, i´ve followed those instructions!!!

Locked