HumanSignal / HumanSignal/label-studio-ml-backend

FileNotFoundError: Can't resolve url, neither hostname or project_dir passed

Open
#143 8 comments 0 reactions 1 assignee Claimed by @KonstantinKorotaev View on GitHub
Dominant language
Python
Stars
1.1k
Forks
490
Avg merge
1d 14h
Merged PRs (30d)
3

Description

Hello,
I set up the label studio via python (conda) on windows 10.
I try to add label studio ml backend (using docker) , using the example mmdetection.
I added it properly in UI, the server is started.
But I get an error that i don t know how to solve.
Can someone please help me to solve it?
My image are actually in this folder: `C:\Users\user1\AppData\Local\label-studio\label-studio\media`

`FileNotFoundError: Can't resolve url, neither hostname or project_dir passed: /data/upload/3/`

`Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/label_studio_ml/exceptions.py", line 39, in exception_f
return f(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/label_studio_ml/api.py", line 32, in _predict
predictions, model = _manager.predict(tasks, project, label_config, force_reload, try_fetch, **params)
File "/usr/local/lib/python3.7/site-packages/label_studio_ml/model.py", line 584, in predict
predictions = m.model.predict(tasks, **kwargs)
File "./mmdetection.py", line 92, in predict
image_path = self.get_local_path(image_url)
File "/usr/local/lib/python3.7/site-packages/label_studio_ml/model.py", line 322, in get_local_path
return get_local_path(url, project_dir=project_dir, hostname=self.hostname, access_token=self.access_token)
File "/usr/local/lib/python3.7/site-packages/label_studio_tools/core/utils/io.py", line 76, in get_local_path
raise FileNotFoundError("Can't resolve url, neither hostname or project_dir passed: " + url)
FileNotFoundError: Can't resolve url, neither hostname or project_dir passed: /data/upload/3/698f8072-battery3.jpg`

Thank s in advance for your help.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.