Comments (11)
If you place your file to label-studio/backend/static/data/1.wav then it will be available as http://localhost:8200/static/data/1.wav. Or you can make symlink to your data folder:
ln -s /my/data label-studio/backend/static/data
from label-studio.
Hi YongWookHa,
Label Studio doesn't support local file paths, but URLs. If you can't host somewhere your images or audio files for some reason, I suggest the following aforementioned workaround:
- Copy your files or make a symlink to static dir:
ln -s my/dir/with/images label-studio/static/my_images
- Create your file.json with:
[
{"image": "http://localhost:8200/static/my_images/000.png"},
{"image": "http://localhost:8200/static/my_images/001.png"},
{"image": "http://localhost:8200/static/my_images/002.png"}
]
- Upload file.json via UI or start
label-studio start my-project -i file.json --init
from label-studio.
Hi.
I have similar problem.
I ran the server locally with this command.
label-studio start my-project -i sample-2020-01-22-09-10.json --init
and, in the json, I wrote like
[{"image": "000.png"},
{"image": "001.png"},
{"image": "002.png"}]
Where should i put the image?
I have put the image in cwd of label-studio start my-project ...
, but it doesn't work.
According to the server log, I can assume that the error is about 'not found'(404).
Please help me to solve!
Thanks in advance.
from label-studio.
Can you move you audio files over your hard disk? If you can place them nearby server.py, we will implement the fast solution.
from label-studio.
Can you move you audio files over your hard disk? If you can place them nearby server.py, we will implement the fast solution.
Yes I can! What is the fast solution?
from label-studio.
@checker20 Did you manage to solve this issue? @makseq suggested a quick solution for you.
But need to do the correct support of local data and if you can make such functionality, then we will approve PR for community. 👍
from label-studio.
I tried the suggested solution above with no success.
#config.xml
<View>
<Header value="Choose text sentiment:"/>
<Text name="my_text" value="$url"/>
<Choices name="sentiment" toName="my_text" choice="single" showInLine="true">
<Choice value="Positive"/>
<Choice value="Negative"/>
<Choice value="Neutral"/>
</Choices>
</View>
#task.json
[{
"url": "http://127.0.0.1:8200/static/file1.txt"
},
{
"url": "http://127.0.0.1:8200/static/file2.txt"
}
]
This yield the following result:
The file is correctly placed in backend/static/file*.txt
. I also tried text
key instead of url
.
from label-studio.
@maxpv
Currently, LS doesn't support .txt files, text format only:
[{
"text": "Lorem.."
}]
from label-studio.
Ok thanks for your answer, I came from #101
from label-studio.
Hi YongWookHa,
Label Studio doesn't support local file paths, but URLs. If you can't host somewhere your images or audio files for some reason, I suggest the following aforementioned workaround:
1. Copy your files or make a symlink to static dir:
ln -s my/dir/with/images label-studio/static/my_images1. Create your file.json with:
[ {"image": "http://localhost:8200/static/my_images/000.png"}, {"image": "http://localhost:8200/static/my_images/001.png"}, {"image": "http://localhost:8200/static/my_images/002.png"} ]1. Upload file.json via UI or start `label-studio start my-project -i file.json --init`
Hai, I installed label studio using pip, where is label-studio/static/
location? I've copy my-file-folder to anaconda3/envs/my_env/lib/python3.6/site-packages/label_studio/core/static/
and create file.json like you mentioned. But it still failed.
from label-studio.
This ticker is very outdated. Please, check this docs: https://labelstud.io/guide/tasks.html#Import-data-from-the-Label-Studio-UI
from label-studio.
Related Issues (20)
- why the label_studio unable to upload videos and pictures when i upload the code on my own computer? HOT 3
- there was an error saving your annotation HOT 1
- A bug with CSRF after update label-studio HOT 11
- How to remove the values of choice not selected HOT 1
- Trying to connect to postgresql but still seems to be sqlite HOT 3
- YOLOv8 OBB Export takes infinitely HOT 2
- Customise and display file path in the labelling interface
- How to create a custom component and scripts HOT 4
- interactive-annotating endpoint called on submit HOT 3
- Invalid task with a non-existing image [likely the containing folder in Azure] is created when syncing azure cloud storage HOT 3
- Cannot go through tasks by "labeling all tasks" HOT 1
- Is It Possible to Create a Custom Tag in Label Studio by Modifying the Codebase?
- Unable to upload new images in a created Visual Question Answering task
- To support panoptic segmentation dataset format
- I am using version 1.9.0 and recently found that tasks uploaded after creating a project cannot be seen HOT 1
- 打开项目时,无法显示已标注数据 HOT 9
- How to perform batch prediction? HOT 2
- Brush size does not keep as the previous setting size.
- tutorial not working: Text classification with Scikit-Learn
- Max retries exceeded with url: /pypi/label-studio/json & Temporary failure in name resolution' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from label-studio.