after i install in win11 cant running the program

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
babyshark
Posts: 1
Joined: Wed May 17, 2023 6:47 pm

after i install in win11 cant running the program

Post by babyshark »

after i finish the installion, i try to run it, it just pop up the cmd for 1-2sec, and is close.
are there any solution for this ?

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

Re: after i install in win11 cant running the program

Post by torzdf »

Go to your Faceswap folder, find the file called something like "faceswap_gui_launcher.bat".

Open the file in notepad, and copy the text.
Open up command prompt and paste the text

Look at what the error is and paste it here.

My word is final

User avatar
Zakman
Posts: 4
Joined: Mon Jul 03, 2023 6:48 am
Has thanked: 2 times

Re: after i install in win11 cant running the program

Post by Zakman »

I got the same question,the installer version is 2.10.0 in windows11 preview(22631.1972)
CMD just flash in about 0.5s.I use OBS record in slow motion
"OSError: exception: access violation reading 0XFFFFFFFFFFFFFFFF"

User avatar
Zakman
Posts: 4
Joined: Mon Jul 03, 2023 6:48 am
Has thanked: 2 times

Re: after i install in win11 cant running the program

Post by Zakman »

Setting Faceswap backend to DIRECTML
Traceback (most recent call last):
File "C:\Users\gsj88\faceswap\faceswap.py", line 12, in <module>
from lib.cli import args as cli_args # pylint:disable=wrong-import-position
File "C:\Users\gsj88\faceswap\lib\cli\args.py", line 23, in <module>
GPUS = GPUStats().cli_devices
File "C:\Users\gsj88\faceswap\lib\gpu_stats\directml.py", line 493, in init
super().init(log=log)
File "C:\Users\gsj88\faceswap\lib\gpu_stats\_base.py", line 95, in init
self.
initialize()
File "C:\Users\gsj88\faceswap\lib\gpu_stats\directml.py", line 549, in initialize
self.
devices = self._get_devices()
File "C:\Users\gsj88\faceswap\lib\gpu_stats\directml.py", line 532, in get_devices
adapters = Adapters(log_func=self.
log)
File "C:\Users\gsj88\faceswap\lib\gpu_stats\directml.py", line 319, in init
self.devices = self.process_adapters()
File "C:\Users\gsj88\faceswap\lib\gpu_stats\directml.py", line 472, in process_adapters
is_d3d12 = self.
test_d3d12(adapter)
File "C:\Users\gsj88\faceswap\lib\gpu_stats\directml.py", line 432, in _test_d3d12
success = factory_func(adapter,
OSError: exception: access violation reading 0xFFFFFFFFFFFFFFFF

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

Re: after i install in win11 cant running the program

Post by torzdf »

This is DirectML failing, when testing if your GPU is DirectX12 compatible.

Are your GPU drivers up to date? Which GPU are you using?

My word is final

User avatar
licho33
Posts: 2
Joined: Tue Jul 04, 2023 4:00 pm
Has thanked: 1 time

Re: after i install in win11 cant running the program

Post by licho33 »

I have the same issue since the last update.
I'm Using DirectML
CPU Ryzen 3900X
GPU is AMD RX 6900 XT

User avatar
Tadashi
Posts: 2
Joined: Wed Jul 05, 2023 2:53 pm
Been thanked: 1 time

Re: after i install in win11 cant running the program

Post by Tadashi »

FYI

I have the same probrem now.
GPU : Radeon 680M integrated in Ryzen 7 7735HS
Using the latest GPU driver(Adrenalin 23.5.2)

I tried on Intel Core-i7 8559U too and the same result.

By the datasheet, both GPUs support DirectX12.

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

Re: after i install in win11 cant running the program

Post by torzdf »

Ok, I will look into this shortly.

_Edit
Removed link to old installer as no longer necessary

Last edited by torzdf on Thu Jul 06, 2023 11:23 am, edited 1 time in total.

My word is final

User avatar
Zakman
Posts: 4
Joined: Mon Jul 03, 2023 6:48 am
Has thanked: 2 times

Re: after i install in win11 cant running the program

Post by Zakman »

torzdf wrote: Tue Jul 04, 2023 5:44 am

This is DirectML failing, when testing if your GPU is DirectX12 compatible.

Are your GPU drivers up to date? Which GPU are you using?

Gpu is 6800xt
Driver has updated to 23.5.2

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

Re: after i install in win11 cant running the program

Post by torzdf »

Ok, this looks like a breaking change in Python 3.10. I am looking into it, but it is likely to take a while as this code is not... straightforward.

Last edited by torzdf on Thu Jul 06, 2023 10:34 am, edited 1 time in total.

My word is final

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

Re: after i install in win11 cant running the program

Post by torzdf »

Managed to fix this quicker than I expected.

If you are still on latest version, then the following will pull in the fix:

Start > Anaconda Prompt

Code: Select all

conda activate faceswap
cd faceswap
git pull

Otherwise probably best to just do a clean install with latest installer and it will get pulled in.
https://github.com/deepfakes/faceswap/r ... up_x64.exe

Last edited by torzdf on Thu Jul 06, 2023 10:44 am, edited 1 time in total.

My word is final

User avatar
Tadashi
Posts: 2
Joined: Wed Jul 05, 2023 2:53 pm
Been thanked: 1 time

Re: after i install in win11 cant running the program

Post by Tadashi »

Thanks a lot for quick fix.
I could start gui tool.

User avatar
Zakman
Posts: 4
Joined: Mon Jul 03, 2023 6:48 am
Has thanked: 2 times

Re: after i install in win11 cant running the program

Post by Zakman »

torzdf wrote: Thu Jul 06, 2023 10:36 am

Managed to fix this quicker than I expected.

If you are still on latest version, then the following will pull in the fix:

Start > Anaconda Prompt

Code: Select all

conda activate faceswap
cd faceswap
git pull

Otherwise probably best to just do a clean install with latest installer and it will get pulled in.
https://github.com/deepfakes/faceswap/r ... up_x64.exe

Thanks a lot.it works.
But i have a another question.when Extra face,it still works in cpu not gpu,how can i change dml device to gpu

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

Re: after i install in win11 cant running the program

Post by torzdf »

Zakman wrote: Thu Jul 06, 2023 12:06 pm

Thanks a lot.it works.
But i have a another question.when Extra face,it still works in cpu not gpu,how can i change dml device to gpu

Start a new thread and post this information:

app.php/rules#rule-4b

My word is final

Locked