🚩Report: It doesn't work to duplicate the space

#1
by cavargas10 - opened

@hysts Hello, could you help me? I'm trying to duplicate the space. But when I try it I have an error cloning the repository. Is there any way to fix this?

runtime error
Exit code: 1. Reason: /gradio_app/custom_models/mvimg_prediction.py", line 10, in
from scripts.utils import session, simple_preprocess
File "/home/user/app/scripts/utils.py", line 25, in
session = new_session(providers=providers)
File "/usr/local/lib/python3.10/site-packages/rembg/session_factory.py", line 41, in new_session
return session_class(model_name, sess_opts, args, kwargs)
File "/usr/local/lib/python3.10/site-packages/rembg/sessions/base.py", line 26, in init
self.inner_session = ort.InferenceSession(
File "/usr/local/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 432, in init
raise fallback_error from e
File "/usr/local/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 427, in init
self._create_inference_session(self._fallback_providers, None)
File "/usr/local/lib/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 483, in _create_inference_session
sess.initialize_session(providers, provider_options, disabled_optimizers)
RuntimeError: /onnxruntime_src/onnxruntime/core/providers/cuda/cuda_call.cc:121 std::conditional_t<THRW, void, onnxruntime::common::Status> onnxruntime::CudaCall(ERRTYPE, const char
, const char
, ERRTYPE, const char
, const char*, int) [with ERRTYPE = cudaError; bool THRW = true; std::conditional_t<THRW, void, onnxruntime::common::Status> = void] /onnxruntime_src/onnxruntime/core/providers/cuda/cuda_call.cc:114 std::conditional_t<THRW, void, onnxruntime::common::Status> onnxruntime::CudaCall(ERRTYPE, const char*, const char*, ERRTYPE, const char*, const char*, int) [with ERRTYPE = cudaError; bool THRW = true; std::conditional_t<THRW, void, onnxruntime::common::Status> = void] CUDA failure 100: no CUDA-capable device is detected ; GPU=-1 ; hostname=r-cavargas10-unique3d-knkuoub5-b8063-u3g1w ; file=/onnxruntime_src/onnxruntime/core/providers/cuda/cuda_execution_provider.cc ; line=245 ; expr=cudaSetDevice(info_.device_id);

hysts-duplicates org

@cavargas10 Thanks for reporting! I can reproduce the error, but I don't know what's causing it. Not sure if I can fix it, but I'll take a look.

hysts-duplicates org

OK, I've updated this Space and you should be able to duplicate this Space without errors.

Really, thank you so much! <3 @hysts !

cavargas10 changed discussion status to closed
Your need to confirm your account before you can post a new comment.

Sign up or log in to comment