FaceSwap Linux running, but suddenly stops "Proces Exited" with no Errors

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.

Post Reply
User avatar
Thea
Posts: 7
Joined: Tue Nov 14, 2023 10:26 pm
Has thanked: 6 times
Been thanked: 1 time

FaceSwap Linux running, but suddenly stops "Proces Exited" with no Errors

Post by Thea »

Hey there,

After a little bit of suffering, I managed to install Linux and FaceSwap. If im honest, it was hard for me, really hard, and I got a little bit lucky fixing the problems I got :geek: . I have to say it's my first time using Linux, and the CMD or terminal thing was mind blowing for me hahahaha.
Forget that, the important thing is that it WORKS! :D

It runs VILLAIN all right, and it lets me add one more batch while keeping all 4 losses (havent try with laploss-vgg16 still).

The only thing is that randomly, maybe in 20 mins, maybe in 1 hour, it just says "Proces Exited" and stops training, right after the last save. NO ERRORS. Is it a ghost? :D

I have turned off automatic suspension and black screen of Xubuntu.

I'm using Xubuntu (23.04 I think, the new one), with Windows also as a double bootable. I have 16 GB of RAM and 8 of VRAM, that should be okay.

It is very strange because it doesent give any error, works perfectly for 5k iterations and suddenly just stops with no errors with that new message in a darker blue "Proces Exited".

Thanks guys for all your work :roll:

I hope, you guys know what is happening.

Last edited by Thea on Wed Nov 29, 2023 11:00 pm, edited 3 times in total.
User avatar
torzdf
Posts: 2687
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 135 times
Been thanked: 628 times

Re: FaceSwap Linux running, but suddenly stops "Proces Exited" with no Errors

Post by torzdf »

Thea wrote: Wed Nov 29, 2023 7:40 pm

Hey there,

After a little bit of suffering, I managed to install Linux and FaceSwap. If im honest, it was hard for me, really hard, and I got a little bit lucky fixing the problems I got :geek: . I have to say it's my first time using Linux, and the CMD or terminal thing was mind blowing for me hahahaha.
Forget that, the important thing is that it WORKS! :D

Ha! I remember when I first switched to Linux. I broke my install so many times it was painful. It can be a steep learning curve (especially with so many distros and outdated solutions to problems on the internet). One day it just 'clicks' though, and it's very hard to go back (I completely ditched Windows at Win 11 with forced online sign-ins, intrusive data collection and advertising in the OS that the customer pays for! I have never looked back)

Xubuntu is a solid choice. To be honest, I no longer recommend Ubuntu due to their over-reliance on Snaps for packages, and the fact they decided to start advertising at me in the command line. If you do happen to need to re-install, then I would recommend going with Debian. This is the base that Ubuntu is built from and it is designed to be very stable. You can choose the Desktop Environment you require from the installer.

Thea wrote: Wed Nov 29, 2023 7:40 pm

The only thing is that randomly, maybe in 20 mins, maybe in 1 hour, it just says "Proces Exited" and stops training, right after the last save. NO ERRORS. Is it a ghost? :D

I have turned off automatic suspension and black screen of Xubuntu.

I'm using Xubuntu (23.04 I think, the new one), with Windows also as a double bootable. I have 16 GB of RAM and 8 of VRAM, that should be okay.

It is very strange because it doesent give any error, works perfectly for 5k iterations and suddenly just stops with no errors with that new message in a darker blue "Proces Exited".

Urrrgggh, this is going to be next to impossible to resolve, as there is no user feedback and it's not an issue I have encountered before, however, we can look at the basics and see if there is anything obvious to resolve the issue.

Could you please provide:

  • The output, from the Faceswap GUI, of Help > Output System Information.
  • The output of the "Generate" command (that is, set up for training as you normally would, except hit '"Generate" instead of train

The other thing you can try, in the meantime, is running without the GUI to see if it gives you any more information (to be honest, I doubt it will, but there is a small chance).

  • Open up a terminal
  • enter:
    conda activate faceswap
  • Paste the output of the above Generate command into the terminal.
    • If you want to have a preview window too, then you can add p to the end of the command you just pasted
  • Press enter and let it train.

I do have some other ideas but it is dependant on seeing the output of the 2 items I have requested.

My word is final

User avatar
Thea
Posts: 7
Joined: Tue Nov 14, 2023 10:26 pm
Has thanked: 6 times
Been thanked: 1 time

Re: FaceSwap Linux running, but suddenly stops "Proces Exited" with no Errors

Post by Thea »

Thanks for taking your time. :roll:

I have to say I dont like Linux. Installing the drivers was surprisingly strange too. I spent 1 hour trying to install what I downloaded from internet, when Linux has its own installer... no words :cry: . It has been hitting me on the face all day, I want to go back to Windows hahahaha. But the extra VRAM is so tempting... :roll:

  • :!: I have tryed FaceSwap with no gui, and the stop still persists. The last message is: "Loss A: 0.03742, Loss B: 0.03546Violation of the segment ('core' generated)" :!:

I hope this is what you want, I will just copy and paste.

  • "Output System Information":

Code: Select all

============ System Information ============
backend:             nvidia
encoding:            UTF-8
git_branch:          Not Found
git_commits:         Not Found
gpu_cuda:            11.
gpu_cudnn:           No global version found. Check Conda packages for Conda cuDNN
gpu_devices:         GPU_0: NVIDIA GeForce RTX 3070
gpu_devices_active:  GPU_0
gpu_driver:          535.129.03
gpu_vram:            GPU_0: 8192MB (7614MB free)
os_machine:          x86_64
os_platform:         Linux-6.5.0-13-generic-x86_64-with-glibc2.38
os_release:          6.5.0-13-generic
py_command:          faceswap.py gui
py_conda_version:    conda 23.10.0
py_implementation:   CPython
py_version:          3.10.13
py_virtual_env:      True
sys_cores:           8
sys_processor:       x86_64
sys_ram:             Total: 15788MB, Available: 14437MB, Used: 1009MB, Free: 9385MB

=============== Pip Packages ===============
absl-py==2.0.0
astunparse==1.6.3
cachetools==5.3.2
certifi==2023.11.17
charset-normalizer==3.3.2
contourpy @ file:///croot/contourpy_1700583582875/work
cycler @ file:///tmp/build/80754af9/cycler_1637851556182/work
fastcluster @ file:///home/conda/feedstock_root/build_artifacts/fastcluster_1695649830516/work
ffmpy @ file:///home/conda/feedstock_root/build_artifacts/ffmpy_1659474992694/work
flatbuffers==23.5.26
fonttools==4.25.0
gast==0.4.0
google-auth==2.23.4
google-auth-oauthlib==0.4.6
google-pasta==0.2.0
grpcio==1.59.3
h5py==3.10.0
idna==3.6
imageio @ file:///croot/imageio_1695996454134/work
imageio-ffmpeg==0.4.9
joblib @ file:///croot/joblib_1685113087166/work
keras==2.10.0
Keras-Preprocessing==1.1.2
kiwisolver @ file:///croot/kiwisolver_1672387140495/work
libclang==16.0.6
Markdown==3.5.1
MarkupSafe==2.1.3
matplotlib @ file:///croot/matplotlib-suite_1698692105134/work
mkl-fft @ file:///croot/mkl_fft_1695058164594/work
mkl-random @ file:///croot/mkl_random_1695059800811/work
mkl-service==2.4.0
munkres==1.1.4
numexpr @ file:///croot/numexpr_1696515281613/work
numpy @ file:///croot/numpy_and_numpy_base_1695830428084/work/dist/numpy-1.26.0-cp310-cp310-linux_x86_64.whl#sha256=fc2732718bc9e06a7b702492cb4f5afffe9671083930452d894377bf563464a3
nvidia-ml-py @ file:///home/conda/feedstock_root/build_artifacts/nvidia-ml-py_1698947663801/work
oauthlib==3.2.2
opencv-python==4.8.1.78
opt-einsum==3.3.0
packaging @ file:///croot/packaging_1693575174725/work
pexpect @ file:///tmp/build/80754af9/pexpect_1605563209008/work
Pillow @ file:///croot/pillow_1695134008276/work
ply==3.11
protobuf==3.19.6
psutil @ file:///opt/conda/conda-bld/psutil_1656431268089/work
ptyprocess @ file:///tmp/build/80754af9/ptyprocess_1609355006118/work/dist/ptyprocess-0.7.0-py2.py3-none-any.whl
pyasn1==0.5.1
pyasn1-modules==0.3.0
pyparsing @ file:///opt/conda/conda-bld/pyparsing_1661452539315/work
PyQt5==5.15.10
PyQt5-sip @ file:///croot/pyqt-split_1698769088074/work/pyqt_sip
python-dateutil @ file:///tmp/build/80754af9/python-dateutil_1626374649649/work
requests==2.31.0
requests-oauthlib==1.3.1
rsa==4.9
scikit-learn @ file:///croot/scikit-learn_1690978916802/work
scipy @ file:///croot/scipy_1696543286448/work/dist/scipy-1.11.3-cp310-cp310-linux_x86_64.whl#sha256=16a8c87e543daeb96d1310b2283f542fef2de84ee7090f60187eb71f71cb430c
sip @ file:///croot/sip_1698675935381/work
six @ file:///tmp/build/80754af9/six_1644875935023/work
tensorboard==2.10.1
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
tensorflow==2.10.1
tensorflow-estimator==2.10.0
tensorflow-io-gcs-filesystem==0.34.0
termcolor==2.3.0
threadpoolctl @ file:///Users/ktietz/demo/mc3/conda-bld/threadpoolctl_1629802263681/work
tomli @ file:///opt/conda/conda-bld/tomli_1657175507142/work
tornado @ file:///croot/tornado_1696936946304/work
tqdm @ file:///croot/tqdm_1679561862951/work
typing_extensions==4.8.0
urllib3==2.1.0
Werkzeug==3.0.1
wrapt==1.16.0

============== Conda Packages ==============
# packages in environment at /home/-/miniconda3/envs/faceswap:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
absl-py                   2.0.0                    pypi_0    pypi
astunparse                1.6.3                    pypi_0    pypi
blas                      1.0                         mkl  
brotli                    1.0.9                h5eee18b_7  
brotli-bin                1.0.9                h5eee18b_7  
bzip2                     1.0.8                h7b6447c_0  
c-ares                    1.19.1               h5eee18b_0  
ca-certificates           2023.11.17           hbcca054_0    conda-forge
cachetools                5.3.2                    pypi_0    pypi
certifi                   2023.11.17               pypi_0    pypi
charset-normalizer        3.3.2                    pypi_0    pypi
contourpy                 1.2.0           py310hdb19cb5_0  
cudatoolkit               11.8.0               h6a678d5_0  
cudnn                     8.9.2.26               cuda11_0  
curl                      8.4.0                hdbd6064_0  
cycler                    0.11.0             pyhd3eb1b0_0  
cyrus-sasl                2.1.28               h52b45da_1  
dbus                      1.13.18              hb2f20db_0  
expat                     2.5.0                h6a678d5_0  
fastcluster               1.2.6           py310hcc13569_3    conda-forge
ffmpeg                    4.3.2                hca11adc_0    conda-forge
ffmpy                     0.3.0              pyhb6f538c_0    conda-forge
flatbuffers               23.5.26                  pypi_0    pypi
fontconfig                2.14.1               h4c34cd2_2  
fonttools                 4.25.0             pyhd3eb1b0_0  
freetype                  2.12.1               h4a9f257_0  
gast                      0.4.0                    pypi_0    pypi
gdbm                      1.18                 hd4cb3f1_4  
gettext                   0.21.0               h39681ba_1  
giflib                    5.2.1                h5eee18b_3  
git                       2.40.1          pl5340h36fbf9e_1  
glib                      2.69.1               he621ea3_2  
gmp                       6.3.0                h59595ed_0    conda-forge
gnutls                    3.6.13               h85f3911_1    conda-forge
google-auth               2.23.4                   pypi_0    pypi
google-auth-oauthlib      0.4.6                    pypi_0    pypi
google-pasta              0.2.0                    pypi_0    pypi
grpcio                    1.59.3                   pypi_0    pypi
gst-plugins-base          1.14.1               h6a678d5_1  
gstreamer                 1.14.1               h5eee18b_1  
h5py                      3.10.0                   pypi_0    pypi
icu                       73.1                 h6a678d5_0  
idna                      3.6                      pypi_0    pypi
imageio                   2.31.4          py310h06a4308_0  
imageio-ffmpeg            0.4.9                    pypi_0    pypi
intel-openmp              2023.1.0         hdb19cb5_46306  
joblib                    1.2.0           py310h06a4308_0  
jpeg                      9e                   h5eee18b_1  
keras                     2.10.0                   pypi_0    pypi
keras-preprocessing       1.1.2                    pypi_0    pypi
kiwisolver                1.4.4           py310h6a678d5_0  
krb5                      1.20.1               h143b758_1  
lame                      3.100             h166bdaf_1003    conda-forge
lcms2                     2.12                 h3be6417_0  
ld_impl_linux-64          2.38                 h1181459_1  
lerc                      3.0                  h295c915_0  
libbrotlicommon           1.0.9                h5eee18b_7  
libbrotlidec              1.0.9                h5eee18b_7  
libbrotlienc              1.0.9                h5eee18b_7  
libclang                  16.0.6                   pypi_0    pypi
libclang13                14.0.6          default_he11475f_1  
libcups                   2.4.2                h2d74bed_1  
libcurl                   8.4.0                h251f7ec_0  
libdeflate                1.17                 h5eee18b_1  
libedit                   3.1.20221030         h5eee18b_0  
libev                     4.33                 h7f8727e_1  
libffi                    3.4.4                h6a678d5_0  
libgcc-ng                 13.2.0               h807b86a_3    conda-forge
libgfortran-ng            11.2.0               h00389a5_1  
libgfortran5              11.2.0               h1234567_1  
libgomp                   13.2.0               h807b86a_3    conda-forge
libllvm14                 14.0.6               hdb19cb5_3  
libnghttp2                1.57.0               h2d74bed_0  
libpng                    1.6.39               h5eee18b_0  
libpq                     12.15                hdbd6064_1  
libssh2                   1.10.0               hdbd6064_2  
libstdcxx-ng              13.2.0               h7e041cc_3    conda-forge
libtiff                   4.5.1                h6a678d5_0  
libuuid                   1.41.5               h5eee18b_0  
libwebp                   1.3.2                h11a3e52_0  
libwebp-base              1.3.2                h5eee18b_0  
libxcb                    1.15                 h7f8727e_0  
libxkbcommon              1.0.1                h5eee18b_1  
libxml2                   2.10.4               hf1b16e4_1  
lz4-c                     1.9.4                h6a678d5_0  
markdown                  3.5.1                    pypi_0    pypi
markupsafe                2.1.3                    pypi_0    pypi
matplotlib                3.8.0           py310h06a4308_0  
matplotlib-base           3.8.0           py310h1128e8f_0  
mkl                       2023.1.0         h213fc3f_46344  
mkl-service               2.4.0           py310h5eee18b_1  
mkl_fft                   1.3.8           py310h5eee18b_0  
mkl_random                1.2.4           py310hdb19cb5_0  
munkres                   1.1.4                      py_0  
mysql                     5.7.24               h721c034_2  
ncurses                   6.4                  h6a678d5_0  
nettle                    3.6                  he412f7d_0    conda-forge
numexpr                   2.8.7           py310h85018f9_0  
numpy                     1.26.0          py310h5f9d8c6_0  
numpy-base                1.26.0          py310hb5e798b_0  
nvidia-ml-py              12.535.133         pyhd8ed1ab_0    conda-forge
oauthlib                  3.2.2                    pypi_0    pypi
opencv-python             4.8.1.78                 pypi_0    pypi
openh264                  2.1.1                h780b84a_0    conda-forge
openssl                   3.2.0                hd590300_1    conda-forge
opt-einsum                3.3.0                    pypi_0    pypi
packaging                 23.1            py310h06a4308_0  
pcre                      8.45                 h295c915_0  
pcre2                     10.42                hebb0a14_0  
perl                      5.34.0               h5eee18b_2  
pexpect                   4.8.0              pyhd3eb1b0_3  
pillow                    9.4.0           py310h6a678d5_1  
pip                       23.3.1          py310h06a4308_0  
ply                       3.11            py310h06a4308_0  
protobuf                  3.19.6                   pypi_0    pypi
psutil                    5.9.0           py310h5eee18b_0  
ptyprocess                0.7.0              pyhd3eb1b0_2  
pyasn1                    0.5.1                    pypi_0    pypi
pyasn1-modules            0.3.0                    pypi_0    pypi
pyparsing                 3.0.9           py310h06a4308_0  
pyqt                      5.15.10         py310h6a678d5_0  
pyqt5-sip                 12.13.0         py310h5eee18b_0  
python                    3.10.13              h955ad1f_0  
python-dateutil           2.8.2              pyhd3eb1b0_0  
python_abi                3.10                    2_cp310    conda-forge
qt-main                   5.15.2              h53bd1ea_10  
readline                  8.2                  h5eee18b_0  
requests                  2.31.0                   pypi_0    pypi
requests-oauthlib         1.3.1                    pypi_0    pypi
rsa                       4.9                      pypi_0    pypi
scikit-learn              1.3.0           py310h1128e8f_0  
scipy                     1.11.3          py310h5f9d8c6_0  
setuptools                68.0.0          py310h06a4308_0  
sip                       6.7.12          py310h6a678d5_0  
six                       1.16.0             pyhd3eb1b0_1  
sqlite                    3.41.2               h5eee18b_0  
tbb                       2021.8.0             hdb19cb5_0  
tensorboard               2.10.1                   pypi_0    pypi
tensorboard-data-server   0.6.1                    pypi_0    pypi
tensorboard-plugin-wit    1.8.1                    pypi_0    pypi
tensorflow                2.10.1                   pypi_0    pypi
tensorflow-estimator      2.10.0                   pypi_0    pypi
tensorflow-io-gcs-filesystem 0.34.0                   pypi_0    pypi
termcolor                 2.3.0                    pypi_0    pypi
threadpoolctl             2.2.0              pyh0d69192_0  
tk                        8.6.12               h1ccaba5_0  
tomli                     2.0.1           py310h06a4308_0  
tornado                   6.3.3           py310h5eee18b_0  
tqdm                      4.65.0          py310h2f386ee_0  
typing-extensions         4.8.0                    pypi_0    pypi
tzdata                    2023c                h04d1e81_0  
urllib3                   2.1.0                    pypi_0    pypi
werkzeug                  3.0.1                    pypi_0    pypi
wheel                     0.41.2          py310h06a4308_0  
wrapt                     1.16.0                   pypi_0    pypi
x264                      1!161.3030           h7f98852_1    conda-forge
xz                        5.4.2                h5eee18b_0  
zlib                      1.2.13               h5eee18b_0  
zstd                      1.5.5                hc292b87_0  

================= Configs ==================
--------- convert.ini ---------

[scaling.sharpen]
method:                   none
amount:                   150
radius:                   0.3
threshold:                5.0

[writer.gif]
fps:                      25
loop:                     0
palettesize:              256
subrectangles:            False

[writer.opencv]
format:                   png
draw_transparent:         False
separate_mask:            False
jpg_quality:              75
png_compress_level:       3

[writer.pillow]
format:                   png
draw_transparent:         False
separate_mask:            False
optimize:                 False
gif_interlace:            True
jpg_quality:              75
png_compress_level:       3
tif_compression:          tiff_deflate

[writer.ffmpeg]
container:                mp4
codec:                    libx264
crf:                      23
preset:                   medium
tune:                     none
profile:                  auto
level:                    auto
skip_mux:                 False

[writer.patch]
start_index:              0
index_offset:             0
number_padding:           6
include_filename:         True
face_index_location:      before
origin:                   bottom-left
empty_frames:             blank
json_output:              False
separate_mask:            False
bit_depth:                16
format:                   png
png_compress_level:       3
tiff_compression_method:  lzw

[color.color_transfer]
clip:                     True
preserve_paper:           True

[color.manual_balance]
colorspace:               HSV
balance_1:                0.0
balance_2:                0.0
balance_3:                0.0
contrast:                 0.0
brightness:               0.0

[color.match_hist]
threshold:                99.0

[mask.mask_blend]
type:                     normalized
kernel_size:              3
passes:                   4
threshold:                4
erosion:                  0.0
erosion_top:              0.0
erosion_bottom:           0.0
erosion_left:             0.0
erosion_right:            0.0

--------- train.ini ---------

[global]
centering:                face
coverage:                 87.5
icnr_init:                False
conv_aware_init:          False
optimizer:                adam
learning_rate:            5e-05
epsilon_exponent:         -7
save_optimizer:           exit
lr_finder_iterations:     1000
lr_finder_mode:           set
lr_finder_strength:       default
autoclip:                 False
reflect_padding:          False
allow_growth:             False
mixed_precision:          False
nan_protection:           True
convert_batchsize:        16

[global.loss]
loss_function:            ms_ssim
loss_function_2:          mae
loss_weight_2:            20
loss_function_3:          lpips_vgg16
loss_weight_3:            25
loss_function_4:          ffl
loss_weight_4:            100
mask_loss_function:       mse
eye_multiplier:           3
mouth_multiplier:         2
penalized_mask_loss:      True
mask_type:                bisenet-fp_face
mask_blur_kernel:         3
mask_threshold:           4
learn_mask:               False

[model.villain]
lowmem:                   False

[model.unbalanced]
input_size:               128
lowmem:                   False
nodes:                    1024
complexity_encoder:       128
complexity_decoder_a:     384
complexity_decoder_b:     512

[model.original]
lowmem:                   False

[model.phaze_a]
output_size:              128
shared_fc:                None
enable_gblock:            True
split_fc:                 True
split_gblock:             False
split_decoders:           False
enc_architecture:         fs_original
enc_scaling:              7
enc_load_weights:         True
bottleneck_type:          dense
bottleneck_norm:          None
bottleneck_size:          1024
bottleneck_in_encoder:    True
fc_depth:                 1
fc_min_filters:           1024
fc_max_filters:           1024
fc_dimensions:            4
fc_filter_slope:          -0.5
fc_dropout:               0.0
fc_upsampler:             upsample2d
fc_upsamples:             1
fc_upsample_filters:      512
fc_gblock_depth:          3
fc_gblock_min_nodes:      512
fc_gblock_max_nodes:      512
fc_gblock_filter_slope:   -0.5
fc_gblock_dropout:        0.0
dec_upscale_method:       subpixel
dec_upscales_in_fc:       0
dec_norm:                 None
dec_min_filters:          64
dec_max_filters:          512
dec_slope_mode:           full
dec_filter_slope:         -0.45
dec_res_blocks:           1
dec_output_kernel:        5
dec_gaussian:             True
dec_skip_last_residual:   True
freeze_layers:            keras_encoder
load_layers:              encoder
fs_original_depth:        4
fs_original_min_filters:  128
fs_original_max_filters:  1024
fs_original_use_alt:      False
mobilenet_width:          1.0
mobilenet_depth:          1
mobilenet_dropout:        0.001
mobilenet_minimalistic:   False

[model.dlight]
features:                 best
details:                  good
output_size:              256

[model.dfl_h128]
lowmem:                   False

[model.dfaker]
output_size:              128

[model.dfl_sae]
input_size:               128
architecture:             df
autoencoder_dims:         0
encoder_dims:             42
decoder_dims:             21
multiscale_decoder:       False

[model.realface]
input_size:               64
output_size:              128
dense_nodes:              1536
complexity_encoder:       128
complexity_decoder:       512

[trainer.original]
preview_images:           14
mask_opacity:             30
mask_color:               #ff0000
zoom_amount:              5
rotation_range:           10
shift_range:              5
flip_chance:              50
color_lightness:          30
color_ab:                 8
color_clahe_chance:       50
color_clahe_max_size:     4

--------- .faceswap ---------
backend:                  nvidia

--------- extract.ini ---------

[global]
allow_growth:             False
aligner_min_scale:        0.07
aligner_max_scale:        2.0
aligner_distance:         22.5
aligner_roll:             45.0
aligner_features:         True
filter_refeed:            True
save_filtered:            False
realign_refeeds:          True
filter_realign:           True

[align.fan]
batch-size:               12

[recognition.vgg_face2]
batch-size:               16
cpu:                      False

[detect.mtcnn]
minsize:                  20
scalefactor:              0.709
batch-size:               8
cpu:                      True
threshold_1:              0.6
threshold_2:              0.7
threshold_3:              0.7

[detect.s3fd]
confidence:               70
batch-size:               4

[detect.cv2_dnn]
confidence:               50

[mask.unet_dfl]
batch-size:               8

[mask.bisenet_fp]
batch-size:               8
cpu:                      False
weights:                  faceswap
include_ears:             False
include_hair:             False
include_glasses:          True

[mask.custom]
batch-size:               8
centering:                face
fill:                     False

[mask.vgg_obstructed]
batch-size:               2

[mask.vgg_clear]
batch-size:               6

--------- gui.ini ---------

[global]
fullscreen:               False
tab:                      extract
options_panel_width:      30
console_panel_height:     20
icon_size:                14
font:                     default
font_size:                9
autosave_last_session:    prompt
timeout:                  120
auto_load_model_stats:    True
  • And the other one, "Generate":

Code: Select all

/home/-/miniconda3/envs/faceswap/bin/python /home/-/faceswap.py train -A "/home/-/Música/FOR LX/JI 640" -B "/home/-/Música/FOR LX/sorted" -m "/home/-/Música/Model/241000 lpips" -t villain -bs 5 -it 1000000 -D central-storage -s 250 -ss 15000 -L INFO

( I putted a "-" where my name was)

I will try training without the gui for a time, I was able to get it running, thanks.

  • still stops with no gui, last message at the begginning of the message.

Hope you see something strange, at least it works for a considerable time without stopping, I will write later if without the gui helps.

Last edited by torzdf on Thu Nov 30, 2023 11:23 pm, edited 7 times in total.
User avatar
bryanlyon
Site Admin
Posts: 793
Joined: Fri Jul 12, 2019 12:49 am
Answers: 44
Location: San Francisco
Has thanked: 4 times
Been thanked: 218 times
Contact:

Re: FaceSwap Linux running, but suddenly stops "Proces Exited" with no Errors

Post by bryanlyon »

"Violation of the segment ('core' generated)"

This implies that something is failing to get a memory allocation it's seeking. It's also clearly outside of python and in the realm of compiled code. Probably high up in a library. Unfortunately without more information the best we can do is guess. USUALLY when we see problems the first thing we look at is GPU -- ensure it's not overclocked (even from the factory), PSU -- Make sure it can handle not just full load, but transient spikes, and then memory -- Maybe lower the clockspeeds or loosen timings slightly. In your case, I'd try these in the reverse order. Downclock your ram, check your PSU, and then check your GPU.

User avatar
torzdf
Posts: 2687
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 135 times
Been thanked: 628 times

Re: FaceSwap Linux running, but suddenly stops "Proces Exited" with no Errors

Post by torzdf »

Thea wrote: Thu Nov 30, 2023 6:32 pm

Hope you see something strange, at least it works for a considerable time without stopping, I will write later if without the gui helps.

Actually I do, and I believe the fix is somewhat straightforward.

A (relatively) recent update, we updated our Cuda and cuDNN versions. For most users this caused speed increases. For a small minority of users (myself included) this caused issues. For me personally the issue was (drum-roll) ....... Segmentation faults, so this nugget may just have saved you:

Code: Select all

Violation of the segment ('core' generated)

Do the following:

Open a Terminal and enter the following commands:

Code: Select all

conda activate faceswap
conda remove cudatoolkit cudnn
conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1

I would also recommend removing your globally installed version of Cuda, as that may also cause issues.

My word is final

Post Reply