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

RuntimeError: <class 'SyntaxError'>: (unicode error) 'unicodeescape' - Download model weights #1

Open
allankouidri opened this issue Sep 20, 2023 · 0 comments
Assignees

Comments

@allankouidri
Copy link
Member

Hi, I am running this algorithm on Windows 11 using the API (v9.2.0) - Python 3.9.13.
I get the the following error:

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ C:\Users\allan\AppData\Local\Temp\ipykernel_31568\4011539685.py:14 in <module>                   │
│                                                                                                  │
│ [Errno 2] No such file or directory:                                                             │
│ 'C:\\Users\\allan\\AppData\\Local\\Temp\\ipykernel_31568\\4011539685.py'                         │
│                                                                                                  │
│ c:\Users\allan\OneDrive\Desktop\ik-desktop\envs\venvapi\lib\site-packages\ikomia\dataprocess\wor │
│ kflow.py:421 in run_on                                                                           │
│                                                                                                  │
│   418 │   │   │   else:                                                                          │
│   419 │   │   │   │   raise RuntimeError("Workflow run failed: unsupported input type.")         │
│   420 │   │   │                                                                                  │
│ ❱ 421 │   │   │   self.run()                                                                     │
│   422 │                                                                                          │
│   423 │   def prepare_runtime_env(self, path):                                                   │
│   424 │   │   tasks = self.get_required_tasks(path)                                              │
│                                                                                                  │
│ c:\Users\allan\OneDrive\Desktop\ik-desktop\envs\venvapi\lib\site-packages\ikomia\dataprocess\wor │
│ kflow.py:378 in run                                                                              │
│                                                                                                  │
│   375 │   │   run_mode = self._get_run_mode()                                                    │
│   376 │   │                                                                                      │
│   377 │   │   if run_mode == Workflow.RunMode.SINGLE:                                            │
│ ❱ 378 │   │   │   super().run()                                                                  │
│   379 │   │   │   metrics = self.get_time_metrics()                                              │
│   380 │   │   │   total_time = metrics['total_time']                                             │
│   381 │   │   else:                                                                              │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
RuntimeError: <class 'SyntaxError'>: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: 
truncated \UXXXXXXXX escape (<string>, line 5):   File 
"C:\Users\allan\Ikomia/Plugins/Python\infer_emotion_fer_plus\infer_emotion_fer_plus_process.py", line 89, in run
    self.download(model_url, param.model_path)
 (Code 18)
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