PaddlePaddle / PaddleGAN

PaddlePaddle GAN library, including lots of interesting applications like First-Order motion transfer, Wav2Lip, picture repair, image editing, photo2cartoon, image style transfer, GPEN, and so on.
Apache License 2.0
7.92k stars 1.25k forks source link

FatalError: `Segmentation fault` is detected by the operating system. #542

Open wwdok opened 2 years ago

wwdok commented 2 years ago

我在跑paddlespeech里的一个metaverse demo,其中有用到paddlegan。运行过程中,paddlegan产生了报错:

~/PaddleSpeech/demos/metaverse$ ./run.sh --stage 4 --stop-stage 4
/home/pactera/PaddleSpeech/demos/metaverse/PaddleGAN/ppgan/modules/init.py:41: DeprecationWarning: invalid escape sequence \s
  """Return the recommended gain value for the given nonlinearity function.
/home/pactera/PaddleSpeech/demos/metaverse/PaddleGAN/ppgan/modules/init.py:107: DeprecationWarning: invalid escape sequence \m
  """Fills the input `Tensor` with values according to the method
/home/pactera/PaddleSpeech/demos/metaverse/PaddleGAN/ppgan/modules/init.py:132: DeprecationWarning: invalid escape sequence \m
  """Fills the input `Tensor` with values according to the method
/home/pactera/PaddleSpeech/demos/metaverse/PaddleGAN/ppgan/modules/init.py:156: DeprecationWarning: invalid escape sequence \m
  """Fills the input `Tensor` with values according to the method
/home/pactera/PaddleSpeech/demos/metaverse/PaddleGAN/ppgan/modules/init.py:193: DeprecationWarning: invalid escape sequence \m
  """Fills the input `Tensor` with values according to the method
/home/pactera/PaddleSpeech/demos/metaverse/PaddleGAN/ppgan/modules/dense_motion.py:154: DeprecationWarning: invalid escape sequence \h
  """
[12/27 16:02:45] ppgan INFO: Found /home/pactera/.cache/ppgan/GPEN-512.pdparams
W1227 16:02:46.164911 332386 device_context.cc:447] Please NOTE: device: 0, GPU Compute Capability: 7.5, Driver API Version: 11.4, Runtime API Version: 10.2
W1227 16:02:46.166213 332386 device_context.cc:465] device: 0, cuDNN Version: 8.2.
/home/pactera/miniconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py:1436: UserWarning: Skip loading for generator.noises.noise_0. generator.noises.noise_0 is not found in the provided dict.
  warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
/home/pactera/miniconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py:1436: UserWarning: Skip loading for generator.noises.noise_1. generator.noises.noise_1 is not found in the provided dict.
  warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
/home/pactera/miniconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py:1436: UserWarning: Skip loading for generator.noises.noise_2. generator.noises.noise_2 is not found in the provided dict.
  warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
/home/pactera/miniconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py:1436: UserWarning: Skip loading for generator.noises.noise_3. generator.noises.noise_3 is not found in the provided dict.
  warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
/home/pactera/miniconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py:1436: UserWarning: Skip loading for generator.noises.noise_4. generator.noises.noise_4 is not found in the provided dict.
  warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
/home/pactera/miniconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py:1436: UserWarning: Skip loading for generator.noises.noise_5. generator.noises.noise_5 is not found in the provided dict.
  warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
/home/pactera/miniconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py:1436: UserWarning: Skip loading for generator.noises.noise_6. generator.noises.noise_6 is not found in the provided dict.
  warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
/home/pactera/miniconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py:1436: UserWarning: Skip loading for generator.noises.noise_7. generator.noises.noise_7 is not found in the provided dict.
  warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
/home/pactera/miniconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py:1436: UserWarning: Skip loading for generator.noises.noise_8. generator.noises.noise_8 is not found in the provided dict.
  warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
/home/pactera/miniconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py:1436: UserWarning: Skip loading for generator.noises.noise_9. generator.noises.noise_9 is not found in the provided dict.
  warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
/home/pactera/miniconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py:1436: UserWarning: Skip loading for generator.noises.noise_10. generator.noises.noise_10 is not found in the provided dict.
  warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
/home/pactera/miniconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py:1436: UserWarning: Skip loading for generator.noises.noise_11. generator.noises.noise_11 is not found in the provided dict.
  warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
/home/pactera/miniconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py:1436: UserWarning: Skip loading for generator.noises.noise_12. generator.noises.noise_12 is not found in the provided dict.
  warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
/home/pactera/miniconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py:1436: UserWarning: Skip loading for generator.noises.noise_13. generator.noises.noise_13 is not found in the provided dict.
  warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
/home/pactera/miniconda3/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py:1436: UserWarning: Skip loading for generator.noises.noise_14. generator.noises.noise_14 is not found in the provided dict.
  warnings.warn(("Skip loading for {}. ".format(key) + str(err)))
Number of frames available for inference: 1
Length of mel chunks: 184
Model loaded
100%|████████████████████████████████████████████████████████████████████████████████████████████████| 109119/109119 [05:41<00:00, 319.52it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00,  3.06it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00,  3.06it/s]

--------------------------------------
C++ Traceback (most recent call last):
--------------------------------------
No stack trace in paddle, may be caused by external reasons.

----------------------
Error Message Summary:
----------------------
FatalError: `Segmentation fault` is detected by the operating system.
  [TimeInfo: *** Aborted at 1640592510 (unix time) try "date -d @1640592510" if you are using GNU date ***]
  [SignalInfo: *** SIGSEGV (@0x0) received by PID 332386 (TID 0x7f29339f53c0) from PID 0 ***]

./run.sh: line 67: 332386 Segmentation fault      (core dumped) CUDA_VISIBLE_DEVICES=${gpus} python3 PaddleGAN/applications/tools/wav2lip.py --checkpoint_path download/wav2lip_hq.pdparams --face download/Lamarr.png --audio output/wavs/000.wav --outfile output/tts_lips.mp4 --face_enhancement

我的硬件信息是:ubuntu20.04, GPU是RTX3060, cuda 11.3, cudnn 8.2.1, paddlepaddle-gpu 2.2.1

jerrywgz commented 9 months ago

您好,请问问题还是否需要解决,目前相关图像生成能力集成在PaddleMIX中,https://github.com/PaddlePaddle/PaddleMIX/tree/develop 可以在这个repo下提出您的需求