In CentOS 7, installed Python 3.8.5 and installed the version of PyTorch 1.8.1 that works with CUDA 10.2, and the problem is resolved. Running with batch size 128 below.
(phosa) [jalal@goku phosa]$ python demo.py --filename input/bat_sidehold.jpg --class_name bat
2021-03-31 03:41:53,935 INFO     Calling with args: Namespace(class_name='bat', filename='input/bat_sidehold.jpg', lw_collision=None, lw_depth=None, lw_inter=None, lw_inter_part=None, lw_scale=None, lw_scale_person=None, lw_sil=None, mesh_index=0, output_dir='output')
2021-03-31 03:41:56,659 INFO     Loading checkpoint from detectron2://PointRend/InstanceSegmentation/pointrend_rcnn_R_50_FPN_3x_coco/164955410/model_final_3c3198.pkl
2021-03-31 03:41:56,666 INFO     URL https://dl.fbaipublicfiles.com/detectron2/PointRend/InstanceSegmentation/pointrend_rcnn_R_50_FPN_3x_coco/164955410/model_final_3c3198.pkl cached in /home/grad3/jalal/.torch/fvcore_cache/detectron2/PointRend/InstanceSegmentation/pointrend_rcnn_R_50_FPN_3x_coco/164955410/model_final_3c3198.pkl
2021-03-31 03:41:56,806 INFO     Reading a file from 'Detectron2 Model Zoo'
WARNING: You are using a SMPL model, with only 10 shape coefficients.
class_name:  bat
  0%|                                                                                                    | 0/800.0 [00:00<?, ?it/s]PoseOptimizer(
  (pool): MaxPool2d(kernel_size=7, stride=1, padding=3, dilation=1, ceil_mode=False)
  (renderer): Renderer()
)
loss: 2.12e+03:   6%|████▋                                                                      | 50/800.0 [00:07<01:51,  6.74it/s]PoseOptimizer(
  (pool): MaxPool2d(kernel_size=7, stride=1, padding=3, dilation=1, ceil_mode=False)
  (renderer): Renderer()
)
loss: 1.94e+03:  12%|█████████▎                                                                | 100/800.0 [00:14<01:36,  7.25it/s]PoseOptimizer(
  (pool): MaxPool2d(kernel_size=7, stride=1, padding=3, dilation=1, ceil_mode=False)
  (renderer): Renderer()
)
loss: 1.94e+03:  19%|█████████████▉                                                            | 150/800.0 [00:23<01:53,  5.73it/s]PoseOptimizer(
  (pool): MaxPool2d(kernel_size=7, stride=1, padding=3, dilation=1, ceil_mode=False)
  (renderer): Renderer()
)
loss: 1.94e+03:  25%|██████████████████▌                                                       | 200/800.0 [00:31<01:27,  6.88it/s]PoseOptimizer(
  (pool): MaxPool2d(kernel_size=7, stride=1, padding=3, dilation=1, ceil_mode=False)
  (renderer): Renderer()
)
loss: 1.94e+03:  31%|███████████████████████▏                                                  | 250/800.0 [00:38<01:18,  6.97it/s]PoseOptimizer(
  (pool): MaxPool2d(kernel_size=7, stride=1, padding=3, dilation=1, ceil_mode=False)
  (renderer): Renderer()
)
loss: 1.94e+03:  38%|███████████████████████████▊                                              | 300/800.0 [00:45<01:11,  6.99it/s]PoseOptimizer(
  (pool): MaxPool2d(kernel_size=7, stride=1, padding=3, dilation=1, ceil_mode=False)
  (renderer): Renderer()
)
loss: 1.89e+03:  44%|████████████████████████████████▍                                         | 350/800.0 [00:52<01:02,  7.23it/s]PoseOptimizer(
  (pool): MaxPool2d(kernel_size=7, stride=1, padding=3, dilation=1, ceil_mode=False)
  (renderer): Renderer()
)
loss: 1.89e+03:  50%|█████████████████████████████████████                                     | 400/800.0 [01:00<00:55,  7.18it/s]PoseOptimizer(
  (pool): MaxPool2d(kernel_size=7, stride=1, padding=3, dilation=1, ceil_mode=False)
  (renderer): Renderer()
)
loss: 1.89e+03:  56%|█████████████████████████████████████████▋                                | 450/800.0 [01:07<00:48,  7.18it/s]PoseOptimizer(
  (pool): MaxPool2d(kernel_size=7, stride=1, padding=3, dilation=1, ceil_mode=False)
  (renderer): Renderer()
)
loss: 1.89e+03:  62%|██████████████████████████████████████████████▎                           | 500/800.0 [01:14<00:40,  7.36it/s]PoseOptimizer(
  (pool): MaxPool2d(kernel_size=7, stride=1, padding=3, dilation=1, ceil_mode=False)
  (renderer): Renderer()
)
loss: 1.89e+03:  69%|██████████████████████████████████████████████████▉                       | 550/800.0 [01:21<00:34,  7.27it/s]PoseOptimizer(
  (pool): MaxPool2d(kernel_size=7, stride=1, padding=3, dilation=1, ceil_mode=False)
  (renderer): Renderer()
)
loss: 1.89e+03:  75%|███████████████████████████████████████████████████████▌                  | 600/800.0 [01:28<00:30,  6.64it/s]PoseOptimizer(
  (pool): MaxPool2d(kernel_size=7, stride=1, padding=3, dilation=1, ceil_mode=False)
  (renderer): Renderer()
)
loss: 1.89e+03:  81%|████████████████████████████████████████████████████████████▏             | 650/800.0 [01:36<00:22,  6.81it/s]PoseOptimizer(
  (pool): MaxPool2d(kernel_size=7, stride=1, padding=3, dilation=1, ceil_mode=False)
  (renderer): Renderer()
)
loss: 1.89e+03:  88%|████████████████████████████████████████████████████████████████▊         | 700/800.0 [01:44<00:15,  6.28it/s]PoseOptimizer(
  (pool): MaxPool2d(kernel_size=7, stride=1, padding=3, dilation=1, ceil_mode=False)
  (renderer): Renderer()
)
loss: 1.84e+03:  94%|█████████████████████████████████████████████████████████████████████▍    | 750/800.0 [01:51<00:06,  7.16it/s]PoseOptimizer(
  (pool): MaxPool2d(kernel_size=7, stride=1, padding=3, dilation=1, ceil_mode=False)
  (renderer): Renderer()
)
loss: 1.84e+03: 100%|██████████████████████████████████████████████████████████████████████████| 800/800.0 [01:58<00:00,  6.73it/s]
Loss 8.3427: 100%|███████████████████████████████████████████████████████████████████████████████| 400/400 [02:04<00:00,  3.21it/s]
2021-03-31 03:46:01,843 INFO     Saved rendered image to output/bat_sidehold.jpg.
2021-03-31 03:46:01,854 INFO     Saved top-down image to output/bat_sidehold_top.jpg.


Screenshot from 2021-03-31 03-48-222474×1004 122 KB