起docker容器的时候增加共享内存:
docker run --rm -it --shm-size 8G wgs-torch:3.0 -v /data/wgs/text2img:/home bash
ref:https://github.com/pytorch/pytorch/issues/2244