pyopengl
pyopengl copied to clipboard
OpenGL.error.NullFunctionError / GlutInit Problem
I have a problem if i run the script for downloading_trained_model.sh. GPT suggested to download the Model Manuelly... But after i had in next step even more problems this seemed to be not a good practice.
sh ./scripts/download_trained_model.sh
- mkdir -p checkpoints
- cd checkpoints
- wget https://dl.fbaipublicfiles.com/pifuhd/checkpoints/pifuhd.pt pifuhd.pt SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = C:\Mein-Computer\Programme\GnuWin32/etc/wgetrc --2023-12-07 12:36:30-- https://dl.fbaipublicfiles.com/pifuhd/checkpoints/pifuhd.pt Auflösen des Hostnamen »dl.fbaipublicfiles.com«.... 18.165.183.96, 18.165.183.84, 18.165.183.93, ... Verbindungsaufbau zu dl.fbaipublicfiles.com|18.165.183.96|:443... verbunden. OpenSSL: error:140773E8:SSL routines:SSL23_GET_SERVER_HELLO:reason(1000) Es ist nicht möglich, eine SSL-Verbindung herzustellen. --2023-12-07 12:36:30-- http://pifuhd.pt/ Auflösen des Hostnamen »pifuhd.pt«.... fehlgeschlagen: Host not found. C:\Mein-Computer\Programme\GnuWin32\bin\wget: kann die Host-Adresse »pifuhd.pt« nicht auflösen
Because after that my Running of demo had this error:
sh ./scripts/demo.sh
Resuming from ./checkpoints/pifuhd.pt
Warning: opt is overwritten.
test data size: 1
initialize network with normal
initialize network with normal
generate mesh (test) ...
0%| | 0/1 [00:00<?, ?it/s] Traceback (most recent call last):
File "C:\Users\lukas\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\lukas\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Mein-Computer\Projekte\pifuhd\apps\simple_test.py", line 30, in
ChatGPT recognized tat this numpy is not defined error comes because in some scripts is np.int used. Its deprecated and int is the working one so i changed in the script all this np.int and np.bool and removed the np. . After that it seemed to run a bit further... but still has errors... What is the matter... Shouldn't this package run with the dependencies it installs?
sh ./scripts/demo.sh
Traceback (most recent call last):
File "C:\Users\lukas\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\lukas\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Mein-Computer\Projekte\pifuhd\apps\simple_test.py", line 4, in
C:\Mein-Computer\Projekte\pifuhd(main -> origin) λ pip install 'matplotlib' ERROR: Invalid requirement: "'matplotlib'"
C:\Mein-Computer\Projekte\pifuhd(main -> origin) λ pip install matplotlib Collecting matplotlib Downloading matplotlib-3.8.2-cp310-cp310-win_amd64.whl.metadata (5.9 kB) Collecting contourpy>=1.0.1 (from matplotlib) Downloading contourpy-1.2.0-cp310-cp310-win_amd64.whl.metadata (5.8 kB) Collecting cycler>=0.10 (from matplotlib) Downloading cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB) Collecting fonttools>=4.22.0 (from matplotlib) Downloading fonttools-4.46.0-cp310-cp310-win_amd64.whl.metadata (159 kB) ---------------------------------------- 159.4/159.4 kB 867.2 kB/s eta 0:00:00 Collecting kiwisolver>=1.3.1 (from matplotlib) Downloading kiwisolver-1.4.5-cp310-cp310-win_amd64.whl.metadata (6.5 kB) Requirement already satisfied: numpy<2,>=1.21 in c:\users\lukas\appdata\local\programs\python\python310\lib\site-packages (from matplotlib) (1.26.2) Requirement already satisfied: packaging>=20.0 in c:\users\lukas\appdata\local\programs\python\python310\lib\site-packages (from matplotlib) (23.2) Requirement already satisfied: pillow>=8 in c:\users\lukas\appdata\local\programs\python\python310\lib\site-packages (from matplotlib) (10.1.0) Collecting pyparsing>=2.3.1 (from matplotlib) Downloading pyparsing-3.1.1-py3-none-any.whl.metadata (5.1 kB) Collecting python-dateutil>=2.7 (from matplotlib) Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) ---------------------------------------- 247.7/247.7 kB 949.8 kB/s eta 0:00:00 Collecting six>=1.5 (from python-dateutil>=2.7->matplotlib) Downloading six-1.16.0-py2.py3-none-any.whl (11 kB) Downloading matplotlib-3.8.2-cp310-cp310-win_amd64.whl (7.6 MB) ---------------------------------------- 7.6/7.6 MB 939.5 kB/s eta 0:00:00 Downloading contourpy-1.2.0-cp310-cp310-win_amd64.whl (186 kB) ---------------------------------------- 186.7/186.7 kB 1.6 MB/s eta 0:00:00 Downloading cycler-0.12.1-py3-none-any.whl (8.3 kB) Downloading fonttools-4.46.0-cp310-cp310-win_amd64.whl (2.2 MB) ---------------------------------------- 2.2/2.2 MB 877.3 kB/s eta 0:00:00 Downloading kiwisolver-1.4.5-cp310-cp310-win_amd64.whl (56 kB) ---------------------------------------- 56.1/56.1 kB 420.7 kB/s eta 0:00:00 Downloading pyparsing-3.1.1-py3-none-any.whl (103 kB) ---------------------------------------- 103.1/103.1 kB 743.2 kB/s eta 0:00:00 Installing collected packages: six, pyparsing, kiwisolver, fonttools, cycler, contourpy, python-dateutil, matplotlib Successfully installed contourpy-1.2.0 cycler-0.12.1 fonttools-4.46.0 kiwisolver-1.4.5 matplotlib-3.8.2 pyparsing-3.1.1 python-dateutil-2.8.2 six-1.16.0
C:\Mein-Computer\Projekte\pifuhd(main -> origin)
λ sh ./scripts/demo.sh
Resuming from ./checkpoints/pifuhd.pt
Warning: opt is overwritten.
test data size: 1
initialize network with normal
initialize network with normal
generate mesh (test) ...
0%| | 0/1 [00:00<?, ?it/s]./results/pifuhd_final/recon/result_test_256.obj
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:33<00:00, 33.76s/it] Traceback (most recent call last):
File "C:\Users\lukas\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\lukas\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Mein-Computer\Projekte\pifuhd\apps\render_turntable.py", line 69, in
My guess is that its maybe a problem of the wrong version of torch... he has installed automatically newest version but in readme the version 1.5.0 is mentioned. I guessed that maybe the readme is outdated.But unfortunetely this doesn't solve the matter. I hope you can help. I use windows.