Deep-Live-Cam
Deep-Live-Cam copied to clipboard
illegal hardware instruction (core dumped)
Hi, i get the following errors when trying to run the GUI:
[1] 7229 illegal hardware instruction (core dumped) python run.py --execution-provider cuda
[1] 7267 illegal hardware instruction (core dumped) python run.py
What I did:
10022 git clone https://github.com/hacksider/Deep-Live-Cam.git
10023 cd Deep-Live-Cam
10026 cd models
10028 wget https://huggingface.co/hacksider/deep-live-cam/resolve/main/GFPGANv1.4.pth
10030 wget https://huggingface.co/hacksider/deep-live-cam/resolve/main/inswapper_128_fp16.onnx
10031 cd ..
10032 python3 -m venv venv
10033 source venv/bin/activate
10034 pip install -r requirements.txt
10037 pip uninstall onnxruntime onnxruntime-gpu
10038 pip install onnxruntime-gpu==1.16.3
10039 python run.py --execution-provider cuda
10040 python run.py
Cuda: 12.2 OS: Linux XXX 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux Python: Python 3.10.12
This is running on a VM on a proxmox host. From inside the VM:
❯ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 40 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Vendor ID: GenuineIntel
Model name: QEMU Virtual CPU version 2.5+
CPU family: 15
Model: 107
Thread(s) per core: 1
Core(s) per socket: 8
Socket(s): 1
Stepping: 1
BogoMIPS: 6192.42
Flags: fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx lm constant_tsc nopl xtopology cpuid pni ssse3 c
x16 sse4_1 sse4_2 x2apic popcnt aes hypervisor lahf_lm cpuid_fault pti
Caches (sum of all):
L1d: 256 KiB (8 instances)
L1i: 256 KiB (8 instances)
L2: 32 MiB (8 instances)
L3: 16 MiB (1 instance)
NUMA:
NUMA node(s): 1
NUMA node0 CPU(s): 0-7
Vulnerabilities:
Gather data sampling: Not affected
Itlb multihit: KVM: Mitigation: VMX unsupported
L1tf: Mitigation; PTE Inversion
Mds: Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
Meltdown: Mitigation; PTI
Mmio stale data: Unknown: No mitigations
Retbleed: Not affected
Spec rstack overflow: Not affected
Spec store bypass: Vulnerable
Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Spectre v2: Mitigation; Retpolines, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected
Srbds: Not affected
Tsx async abort: Not affected
and from the host:
root@pve:~# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 52 bits physical, 57 bits virtual
Byte Order: Little Endian
CPU(s): 32
On-line CPU(s) list: 0-31
Vendor ID: GenuineIntel
BIOS Vendor ID: Intel(R) Corporation
Model name: Intel(R) Xeon(R) w5-2465X
BIOS Model name: Intel(R) Xeon(R) w5-2465X CPU @ 3.1GHz
BIOS CPU family: 179
CPU family: 6
Model: 143
Thread(s) per core: 2
Core(s) per socket: 16
Socket(s): 1
Stepping: 8
CPU(s) scaling MHz: 27%
CPU max MHz: 4700.0000
CPU min MHz: 800.0000
BogoMIPS: 6192.00
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm const
ant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2
ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_faul
t epb cat_l3 cat_l2 cdp_l3 intel_ppin cdp_l2 ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2
smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xg
etbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local split_lock_detect user_shstk avx_vnni avx512_bf16 wbnoinvd dtherm ida arat pln pts hwp hwp_
act_window hwp_epp hwp_pkg_req vnmi avx512vbmi umip pku ospke waitpkg avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq la5
7 rdpid bus_lock_detect cldemote movdiri movdir64b enqcmd fsrm md_clear serialize tsxldtrk pconfig arch_lbr ibt amx_bf16 avx512_fp16 amx_tile amx_int8 flu
sh_l1d arch_capabilities
Virtualization features:
Virtualization: VT-x
Caches (sum of all):
L1d: 768 KiB (16 instances)
L1i: 512 KiB (16 instances)
L2: 32 MiB (16 instances)
L3: 33.8 MiB (1 instance)
NUMA:
NUMA node(s): 1
NUMA node0 CPU(s): 0-31
Vulnerabilities:
Gather data sampling: Not affected
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Not affected
Reg file data sampling: Not affected
Retbleed: Not affected
Spec rstack overflow: Not affected
Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Spectre v2: Mitigation; Enhanced / Automatic IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
Srbds: Not affected
Tsx async abort: Not affected
More debug information:
❯ gdb -- python
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04.2) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python...
(No debugging symbols found in python)
(gdb) r
Starting program: /mnt/ssd/repositories/Deep-Live-Cam/venv/bin/python
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Python 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from modules import core
[New Thread 0x7fff581ff640 (LWP 7629)]
[New Thread 0x7fff579fe640 (LWP 7630)]
[New Thread 0x7fff551fd640 (LWP 7631)]
[New Thread 0x7fff509fc640 (LWP 7632)]
[New Thread 0x7fff501fb640 (LWP 7633)]
[New Thread 0x7fff4b9fa640 (LWP 7634)]
[New Thread 0x7fff4b1f9640 (LWP 7635)]
[New Thread 0x7fff489f8640 (LWP 7636)]
[New Thread 0x7fff441f7640 (LWP 7637)]
[New Thread 0x7fff439f6640 (LWP 7638)]
[New Thread 0x7fff411f5640 (LWP 7639)]
[New Thread 0x7fff3e9f4640 (LWP 7640)]
[New Thread 0x7fff3c1f3640 (LWP 7641)]
[New Thread 0x7fff399f2640 (LWP 7642)]
[New Thread 0x7fff371f1640 (LWP 7643)]
[New Thread 0x7fff349f0640 (LWP 7644)]
[New Thread 0x7fff321ef640 (LWP 7645)]
[New Thread 0x7fff2f9ee640 (LWP 7646)]
[New Thread 0x7fff2b1ed640 (LWP 7647)]
[New Thread 0x7fff289ec640 (LWP 7648)]
[New Thread 0x7fff261eb640 (LWP 7649)]
[New Thread 0x7fff239ea640 (LWP 7650)]
[New Thread 0x7fff211e9640 (LWP 7651)]
[New Thread 0x7fff1e9e8640 (LWP 7652)]
[New Thread 0x7fff1c1e7640 (LWP 7653)]
[New Thread 0x7fff199e6640 (LWP 7654)]
[New Thread 0x7fff171e5640 (LWP 7655)]
Thread 1 "python" received signal SIGILL, Illegal instruction.
0x00007fff0fa3e6a7 in google::protobuf::DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(google::protobuf::internal::ConstantInitialized) () from /mnt/ssd/repositories/Deep-Live-Cam/venv/lib/python3.10/site-packages/tensorflow/python/platform/../../libtensorflow_framework.so.2