Deep3DFaceRecon_pytorch icon indicating copy to clipboard operation
Deep3DFaceRecon_pytorch copied to clipboard

[F glutil.cpp:338] eglInitialize() failed

Open nanak0k opened this issue 3 years ago • 1 comments

===================================================================================== root@9cc02a0fda9b:/docker_workspace/Deep3DFaceRecon_pytorch# python test.py --name=aiche --epoch=20 --img_folder=input /opt/conda/lib/python3.7/site-packages/kornia/augmentation/augmentation.py:1875: DeprecationWarning: GaussianBlur is no longer maintained and will be removed from the future versions. Please use RandomGaussianBlur instead. category=DeprecationWarning, /opt/conda/lib/python3.7/site-packages/torch/utils/tensorboard/init.py:5: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. tensorboard.version /opt/conda/lib/python3.7/site-packages/torch/utils/tensorboard/init.py:6: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. ) < LooseVersion("1.15"): ----------------- Options --------------- add_image: True bfm_folder: BFM bfm_model: BFM_model_front.mat camera_d: 10.0 center: 112.0 checkpoints_dir: ./checkpoints dataset_mode: None ddp_port: 12355 display_per_batch: True epoch: 20 [default: latest] eval_batch_nums: inf focal: 1015.0 gpu_ids: 0 img_folder: input [default: examples] init_path: checkpoints/init_model/resnet50-0676ba61.pth isTrain: False [default: None] model: facerecon name: aiche [default: face_recon] net_recon: resnet50 phase: test suffix: use_ddp: False [default: True] use_last_fc: False use_opengl: True verbose: False vis_batch_nums: 1 world_size: 1 z_far: 15.0 z_near: 5.0 ----------------- End ------------------- loading init net_recon resnet50 from checkpoints/init_model/resnet50-0676ba61.pth model [FaceReconModel] was created loading the model from ./checkpoints/aiche/epoch_20.pth 0 input/000002.jpg [F glutil.cpp:338] eglInitialize() failed Aborted

=================================================================================

my nvcc -V result :

root@9cc02a0fda9b:/docker_workspace/Deep3DFaceRecon_pytorch# nvcc -V

nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2021 NVIDIA Corporation Built on Mon_May__3_19:15:13_PDT_2021 Cuda compilation tools, release 11.3, V11.3.109 Build cuda_11.3.r11.3/compiler.29920130_0

=================================================================================

my nvidia-smi result :*

root@9cc02a0fda9b:/docker_workspace/Deep3DFaceRecon_pytorch# nvidia-smi Thu Oct 20 09:37:12 2022 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 510.68.02 Driver Version: 512.77 CUDA Version: 11.6 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 NVIDIA GeForce ... On | 00000000:01:00.0 On | N/A | | 0% 41C P8 12W / 130W | 1064MiB / 8192MiB | 4% Default | | | | N/A | +-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | No running processes found |

===============================================================================

I am trying to run the docker container in a GeForce RTX 3050

Using container image: pytorch/pytorch:1.21.1-cuda11.3-cudnn8-devel

[F glutil.cpp:338] eglInitialize() failed Aborted

I can't fix the error. Can I help you?

nanak0k avatar Oct 20 '22 09:10 nanak0k

You can use RasterizeCudaContext() by replacing opengl with cuda. See here

4396NeverBeSlaves avatar Oct 21 '22 14:10 4396NeverBeSlaves