Closed oolYang closed 10 months ago
please use just.... (_EXCLUDE_DEVICES = []) or (_EXCLUDE_DEVICES: List[int] = []) instead. I am new to open source so please pardon if its now the right way to contribute... for the second (from typing import List). Please tell me if it works or not.
You are using the wrong minimum Python version.
Minimum is 3.10
So can you please tell me what the solution was.
Install a new version of Python or, even easier, use our installer in https://github.com/deepfakes/faceswap/releases/latest as it handles all of this for you
ok thx.....Can you please give me any tips on how to start open source contributions and how to read large codebases. I tried to find answers online but didnt get any satisfactory answers?
ok
(faceswap3.9) zcb@zcb:~/ys1/faceswap-master$ python faceswap.py -h Setting Faceswap backend to CPU Traceback (most recent call last): File "faceswap.py", line 12, in
from lib.cli import args as cli_args # pylint:disable=wrong-import-position
File "/home/zcb/ys1/faceswap-master/lib/cli/args.py", line 14, in
from lib.gpu_stats import GPUStats
File "/home/zcb/ys1/faceswap-master/lib/gpu_stats/init.py", line 9, in
from ._base import set_exclude_devices, GPUInfo
File "/home/zcb/ys1/faceswap-master/lib/gpu_stats/_base.py", line 11, in
_EXCLUDE_DEVICES: list[int] = []
TypeError: 'type' object is not subscriptable