Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment Setup (running succesful!) #81

Open
WhaSukGO opened this issue Aug 5, 2023 · 2 comments
Open

Environment Setup (running succesful!) #81

WhaSukGO opened this issue Aug 5, 2023 · 2 comments

Comments

@WhaSukGO
Copy link

WhaSukGO commented Aug 5, 2023

Tested on nvcr.io/nvidia/cuda:11.2.0-cudnn8-devel-ubuntu20.04

nvidia-smi

$ conda create -n pytorch-openpose-py38 python=3.8
$ conda activate pytorch-openpose-py38
$ conda install -y pytorch">=1.6.0" torchvision cudatoolkit">=9.2" -c pytorch
$ pip3 install -r requirements.txt
$ python3 demo.py

result

@chrissunny94
Copy link

  File "demo_camera.py", line 15, in <module>
    print(f"Torch device: {torch.cuda.get_device_name()}")
  File "/root/anaconda3/envs/pytorch-openpose-py38/lib/python3.8/site-packages/torch/cuda/__init__.py", line 419, in get_device_name
    return get_device_properties(device).name
  File "/root/anaconda3/envs/pytorch-openpose-py38/lib/python3.8/site-packages/torch/cuda/__init__.py", line 449, in get_device_properties
    _lazy_init()  # will define _get_device_properties
  File "/root/anaconda3/envs/pytorch-openpose-py38/lib/python3.8/site-packages/torch/cuda/__init__.py", line 289, in _lazy_init
    raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

@chrissunny94
Copy link

NVIDIA-SMI

Sun Oct 15 11:28:13 2023

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.199.02   Driver Version: 470.199.02   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| 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 ...  Off  | 00000000:01:00.0  On |                  N/A |
| N/A   53C    P5    N/A /  N/A |     71MiB /  4040MiB |     30%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      2127      G   /usr/lib/xorg/Xorg                 69MiB |
+-----------------------------------------------------------------------------+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants