Hugging Face's logo
jnaveed
/
Agents
Runtime error

runtime error

Exit code: 1. Reason: /usr/local/lib/python3.10/site-packages/tyro/_fields.py:330: UserWarning: The field server_name is annotated with type <class 'str'>, but the default value None has type <class 'NoneType'>. We'll try to handle this gracefully, but it may cause unexpected behavior. warnings.warn( Traceback (most recent call last): File "/app/app.py", line 33, in <module> gradio_pipeline = GradioPipeline( File "/app/src/gradio_pipeline.py", line 50, in __init__ super().__init__(inference_cfg, crop_cfg) File "/app/src/live_portrait_pipeline.py", line 38, in __init__ self.live_portrait_wrapper: LivePortraitWrapper = LivePortraitWrapper(cfg=inference_cfg) File "/app/src/live_portrait_wrapper.py", line 28, in __init__ self.appearance_feature_extractor = load_model(cfg.checkpoint_F, model_config, cfg.device_id, 'appearance_feature_extractor') File "/app/src/utils/helper.py", line 97, in load_model model = AppearanceFeatureExtractor(**model_params).cuda(device) File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1050, in cuda return self._apply(lambda t: t.cuda(device)) File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 900, in _apply module._apply(fn) File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 900, in _apply module._apply(fn) File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 927, in _apply param_applied = fn(param) File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1050, in <lambda> return self._apply(lambda t: t.cuda(device)) RuntimeError: Cannot access accelerator device when none is available.

Container logs:

Fetching error logs...