Page 1 of 1

after i install in win11 cant running the program

Posted: Wed May 17, 2023 6:54 pm
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 ?


Re: after i install in win11 cant running the program

Posted: Thu May 18, 2023 11:29 am
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.


Re: after i install in win11 cant running the program

Posted: Mon Jul 03, 2023 7:11 am
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"


Re: after i install in win11 cant running the program

Posted: Mon Jul 03, 2023 7:12 am
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


Re: after i install in win11 cant running the program

Posted: Tue Jul 04, 2023 5:44 am
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?


Re: after i install in win11 cant running the program

Posted: Tue Jul 04, 2023 4:14 pm
by licho33

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


Re: after i install in win11 cant running the program

Posted: Wed Jul 05, 2023 11:55 pm
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.


Re: after i install in win11 cant running the program

Posted: Thu Jul 06, 2023 8:02 am
by torzdf

Ok, I will look into this shortly.

_Edit
Removed link to old installer as no longer necessary


Re: after i install in win11 cant running the program

Posted: Thu Jul 06, 2023 9:29 am
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


Re: after i install in win11 cant running the program

Posted: Thu Jul 06, 2023 10:08 am
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.


Re: after i install in win11 cant running the program

Posted: Thu Jul 06, 2023 10:36 am
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


Re: after i install in win11 cant running the program

Posted: Thu Jul 06, 2023 11:41 am
by Tadashi

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


Re: after i install in win11 cant running the program

Posted: Thu Jul 06, 2023 12:06 pm
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


Re: after i install in win11 cant running the program

Posted: Thu Jul 06, 2023 12:43 pm
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