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

Img2Stl fails #174

Open
gerroon opened this issue Sep 14, 2024 · 3 comments
Open

Img2Stl fails #174

gerroon opened this issue Sep 14, 2024 · 3 comments

Comments

@gerroon
Copy link

gerroon commented Sep 14, 2024

Hi

I am getting some errors with Img2Stl. I am not sure if it is RF or my setup is the issue. I am on Win 11

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
RuinedFooocus version: 1.56.0
Comfy Backend update check complete.
Stable Fast 3D update check complete.
ComfyUI-GGUF update check complete.
IMPORTANT: You are using gradio version 3.50.2, however version 4.29.0 is available, please upgrade.

C:\RuinedFooocus\repositories\stable-fast-3d\sf3d\.slangtorch_cache\texture_baker\44136fa355b3678a\texture_baker_cuda.cu(869): warning #177-D: function "surfCubemapLayeredwrite(T, cudaSurfaceObject_t, int, int, int, cudaSurfaceBoundaryMode) [with T=__half]" was declared but never referenced
  template <> inline __declspec(__device__) void surfCubemapLayeredwrite<__half>(__half data, cudaSurfaceObject_t surfObj, int x, int y, int layerFace, cudaSurfaceBoundaryMode boundaryMode) { surfCubemapLayeredwrite<ushort>(__half_as_ushort(data), surfObj, x, y, layerFace, boundaryMode); } template <> inline __declspec(__device__) void surfCubemapLayeredwrite<__half2>(__half2 data, cudaSurfaceObject_t surfObj, int x, int y, int layerFace, cudaSurfaceBoundaryMode boundaryMode) { surfCubemapLayeredwrite<ushort2>(__half_as_ushort(data), surfObj, x, y, layerFace, boundaryMode); } template <> inline __declspec(__device__) void surfCubemapLayeredwrite<__half4>(__half4 data, cudaSurfaceObject_t surfObj, int x, int y, int layerFace, cudaSurfaceBoundaryMode boundaryMode) { surfCubemapLayeredwrite<ushort4>(__half_as_ushort(data), surfObj, x, y, layerFace, boundaryMode); }
                                                 ^

texture_baker_cuda.cu
tmpxft_00006cc4_00000000-10_texture_baker_cuda.cudafe1.cpp
[2/3] cl /showIncludes -DTORCH_EXTENSION_NAME=_slangtorch_texture_baker_44136fa355b3678a -DTORCH_API_INCLUDE_EXTENSION_H -IC:\RuinedFooocus\repositories\stable-fast-3d\sf3d -IC:\RuinedFooocus\venv\lib\site-packages\torch\include -IC:\RuinedFooocus\venv\lib\site-packages\torch\include\torch\csrc\api\include -IC:\RuinedFooocus\venv\lib\site-packages\torch\include\TH -IC:\RuinedFooocus\venv\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\include" -IC:\Python\Python310\Include -D_GLIBCXX_USE_CXX11_ABI=0 /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc /std:c++17 /std:c++17 -c C:\RuinedFooocus\repositories\stable-fast-3d\sf3d\.slangtorch_cache\texture_baker\44136fa355b3678a\texture_baker.cpp /Fotexture_baker.o
Microsoft (R) C/C++ Optimizing Compiler Version 19.40.33811 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

[3/3] "C:\VSTUDIO\2022\Community\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64/link.exe" texture_baker.o texture_baker_cuda.cuda.o /nologo /DLL c10.lib c10_cuda.lib torch_cpu.lib torch_cuda.lib -INCLUDE:?warp_size@cuda@at@@YAHXZ torch.lib /LIBPATH:C:\RuinedFooocus\venv\lib\site-packages\torch\lib torch_python.lib /LIBPATH:C:\RuinedFooocus\venv\Scripts\libs "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\lib\x64" cudart.lib /out:_slangtorch_texture_baker_44136fa355b3678a.pyd
FAILED: _slangtorch_texture_baker_44136fa355b3678a.pyd
"C:\VSTUDIO\2022\Community\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64/link.exe" texture_baker.o texture_baker_cuda.cuda.o /nologo /DLL c10.lib c10_cuda.lib torch_cpu.lib torch_cuda.lib -INCLUDE:?warp_size@cuda@at@@YAHXZ torch.lib /LIBPATH:C:\RuinedFooocus\venv\lib\site-packages\torch\lib torch_python.lib /LIBPATH:C:\RuinedFooocus\venv\Scripts\libs "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\lib\x64" cudart.lib /out:_slangtorch_texture_baker_44136fa355b3678a.pyd
LINK : fatal error LNK1104: cannot open file 'python310.lib'
ninja: build stopped: subcommand failed.

@runew0lf
Copy link
Owner

If you follow the instructions here , that should fix it for you!
https://github.com/runew0lf/RuinedFooocus/wiki/PowerUp#img2stl

@gerroon
Copy link
Author

gerroon commented Sep 14, 2024

If you follow the instructions here , that should fix it for you! https://github.com/runew0lf/RuinedFooocus/wiki/PowerUp#img2stl

Thanks but that is what I did. I already have the HF token in the prompt. It does not look like a HF token issue.

image

@meagerfindings
Copy link

in looking through the code, I think the prompt needs to start with the token: hg_....

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

3 participants