ALAE icon indicating copy to clipboard operation
ALAE copied to clipboard

Segmentation fault (core dumped)

Open kenoharada opened this issue 4 years ago • 5 comments

I tested interactive_demo.py on p2.x8large(8GPUs)

but I encountered

Segmentation fault (core dumped)

Could you give me advice which part should I fix for this problem??

kenoharada avatar May 02 '20 00:05 kenoharada

I already changed configs/ffhq.yaml LOD_2_BATCH_8GPU: [512, 256, 128, 64, 32, 32, 32, 32, 32]

to LOD_2_BATCH_8GPU: [512, 256, 128, 64, 32, 32, 32, 32, 24] or LOD_2_BATCH_8GPU: [512, 256, 128, 64, 32, 32, 32, 32, 16]

but does't work

kenoharada avatar May 02 '20 00:05 kenoharada

I also changed gpu_count = 1 to gpu_count = 8 in interactive_demo.py

but console output Exception: process 1 terminated with signal SIGSEGV

kenoharada avatar May 02 '20 01:05 kenoharada

The interactive demo is meant to run on a machine with a desktop environment because it has GUI. On Linux, that means that system X must be present as well as some window manager. It true though, that on headless machine it should throw an exception, not just crash

You can not run it on AWS, because there is no UI shell. You could install it with sudo apt install ubuntu-desktop and then set up a remote desktop with Xrdp or TeamViewer. In this case, it will work, but I would not recommend it since streaming video will be very laggy.

You can run it on Windows/Linux/OSX machine with some decent gaming GPU, such as 1070 (maybe even cheaper GPU will work just fine). In fact, you can even run it on CPU without GPU, but the frame rate will be very low (on my machine it is 4s. per frame).

podgorskiy avatar May 02 '20 15:05 podgorskiy

Thank you very much for detailed response! I would try it on my local machine, Thanks!

kenoharada avatar May 04 '20 04:05 kenoharada

Thank you very much for detailed response! I would try it on my local machine, Thanks!

Hi, are you able to run on your local machine ?

waseemshariff126 avatar Jul 06 '20 18:07 waseemshariff126