Skip to content

Commit

Permalink
Release 0.9.1.post0 (HumanSignal#603)
Browse files Browse the repository at this point in the history
* Make branch for release 0.9.1.post0

* Updating example README

Making the steps a bit less error prone

* Fix tutorials layout - hide weird double search

* Update LSF version: add new TextArea behaviour. Update labeling config examples

* Fix spaces

* Update LSF build: take it from master branch

* Add onSubmitCompletion in docs

* Fix predict redirect to task on model page

* Change version on main page in docs

Co-authored-by: smoreface <[email protected]>
Co-authored-by: hlomzik <[email protected]>
  • Loading branch information
3 people committed Feb 17, 2021
1 parent 82b0905 commit ee8b6fa
Show file tree
Hide file tree
Showing 15 changed files with 83 additions and 29 deletions.
6 changes: 6 additions & 0 deletions docs/source/guide/frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,13 @@ You can use Label Studio Frontend separately in your own projects: just include
userGenerate: true
});
LS.completionStore.selectCompletion(c.id);
},
onSubmitCompletion: function(LS, completion) {
// retrive a completion
console.log(completion.serializeCompletion())
}
});
</script>
```
Expand Down
5 changes: 5 additions & 0 deletions docs/source/tutorials/dummy_model.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
title:
type: blog
order: 10
---

## Create the simplest Machine Learning backend

Expand Down
5 changes: 5 additions & 0 deletions docs/source/tutorials/pytorch-image-transfer-learning.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
title:
type: blog
order: 30
---

## Transfer learning for images with PyTorch

Expand Down
5 changes: 5 additions & 0 deletions docs/source/tutorials/sklearn-text-classifier.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
title:
type: blog
order: 20
---

## Text classification with Scikit-Learn

Expand Down
2 changes: 1 addition & 1 deletion docs/themes/htx/layout/partials/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ menu && menu.classList.add('main__page__header')
<div class="release__info">
<a href="/blog/release-090-data-management-improvements.html" class="release__info--inner">
<span>New</span>
<p>Release <span>0.9.0</span></p>
<p>Release <span>0.9.1.post0</span></p>
</a>
<p>Explore and improve your datasets!</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion label_studio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
package_name = 'label-studio'

# Package version
__version__ = '0.9.1'
__version__ = '0.9.1.post0'
13 changes: 8 additions & 5 deletions label_studio/examples/audio_transcribe/config.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<!-- {"title": "Speech Transcription", "category": "audio", "complexity": "basic"} -->
<View>
<Header value="Listen to the audio and write the transcription" />
<AudioPlus name="audio" value="$audio" />
<TextArea name="transcription" toName="audio" editable="true"
rows="4" transcription="true" maxSubmissions="1" />
<Header value="Audio transcription:"/>
<Audio name="audio" value="$url" height="46"/>
<TextArea name="answer" transcription="true"
toName="audio" rows="3" maxSubmissions="1"/>

<Style>
[dataneedsupdate]{display:flex;align-items:center}
[dataneedsupdate]>div:first-child{flex-grow:1;order:2}
[dataneedsupdate]>div:last-child{margin-top:0 !important;margin-right:1em}
[dataneedsupdate] button{height:46px}
[dataneedsupdate] button span:nth-child(2){display:none}
</Style>
</View>
</View>
8 changes: 4 additions & 4 deletions label_studio/examples/html_dialogues/config.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!-- {"title": "Dialogs & conversations", "category": "html", "complexity": "basic", "order": "1", "new": true} -->
<View>
<ParagraphLabels name="actions" toName="dialogue">
<Label value="Inform"></Label>
<Label value="Request"></Label>
<Label value="Negate"></Label>
<Label value="Affirm"></Label>
<Label value="Inform"/>
<Label value="Request"/>
<Label value="Negate"/>
<Label value="Affirm"/>
</ParagraphLabels>

<Paragraphs
Expand Down
6 changes: 6 additions & 0 deletions label_studio/ml/examples/huggingface/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---
title:
type: blog
order: 50
---

If you're going to build a new chatbot, or just want to play with GPT-based text generators, this [Machine Learning backend](https://labelstud.io/guide/ml.html) is for you! Powered by [HuggingFace's Transformers library](https://github.com/huggingface/transformers),
it connects GPT2-like language model to Label Studio UI, giving you an opportunity to explore different text responses based on the chat history.

Expand Down
6 changes: 6 additions & 0 deletions label_studio/ml/examples/mmdetection/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---
title:
type: blog
order: 40
---

This [Machine Learning backend](https://labelstud.io/guide/ml.html) allows you to automatically prelabel your images with bounding boxes. It is powered by amazing [OpenMMLab MMDetection library](https://github.com/open-mmlab/mmdetection), which gives you access to many existing state-of-the-art models like FasterRCNN, RetinaNet, YOLO and others.

Check this installation guide and then play around them, pick up the best model that suits your current dataset!
Expand Down
42 changes: 30 additions & 12 deletions label_studio/ml/examples/nemo/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---
title:
type: blog
order: 60
---

## Automatic Speech Recognition

This an example of using [Nvidia's NeMo toolkit](https://github.com/NVIDIA/NeMo) for creating ASR/NLU/TTS pre-labels.
Expand All @@ -8,38 +14,50 @@ With ASR models, you can do audio pre-annotations drawn within a text area, aka

## Start using it

1. Follow [this installation guide](https://github.com/NVIDIA/NeMo#installation) to set up NeMo environment.
1. Follow [this installation guide](https://github.com/NVIDIA/NeMo#installation) to set up the NeMo environment.

2. On the same server or Docker container as NeMo, [install Label Studio](https://labelstud.io/guide/#Quickstart).

2. Download <a href="https://github.com/heartexlabs/label-studio/tree/master/label_studio/ml/examples/nemo/asr.py">asr.py</a> from github into the current directory (or use `label_studio/ml/examples/nemo/asr.py` from LS package) and initialize Label Studio machine learning backend:
3. Create or download <a href="https://github.com/heartexlabs/label-studio/tree/master/label_studio/ml/examples/nemo/asr.py">asr.py</a> from Github into the current directory (or use `label_studio/ml/examples/nemo/asr.py` from the Label Studio package).

4. Initialize the Label Studio machine learning backend with the ASR example:
```bash
label-studio-ml init my_model --from asr.py
```

3. Start machine learning backend:
5. Start the machine learning backend:
```bash
label-studio-ml start my_model
```
Wait until ML backend app starts on the default 9090 port.

6. Start Label Studio:
```bash
label-studio start my_project --init
```

4. Open the project Settings page in Label Studio.
7. In Label Studio, open the project Settings page.

5. From the template list, select `Speech Transcription`. You can also create your own with `<TextArea>` and `<Audio>` tags. Or copy this labeling config into LS:
8. From the template list, select `Speech Transcription`. You can also create your own with `<TextArea>` and `<Audio>` tags. Or copy this labeling config into LS:
```xml
<View>
<Header value="Listen to the audio and write the transcription" />
<AudioPlus name="audio" value="$audio" />
<TextArea name="transcription" toName="audio" editable="true"
rows="4" transcription="true" maxSubmissions="1" />

<Header value="Audio transcription:"/>
<Audio name="audio" value="$url" height="46"/>
<TextArea name="answer" transcription="true"
toName="audio" rows="3" maxSubmissions="1"/>

<Style>
[dataneedsupdate]{display:flex;align-items:center}
[dataneedsupdate]>div:first-child{flex-grow:1;order:2}
[dataneedsupdate]>div:last-child{margin-top:0 !important;margin-right:1em}
[dataneedsupdate] button{height:46px}
[dataneedsupdate] button span:nth-child(2){display:none}
</Style>
</View>
```
6. Open the Model page in Label Studio.
9. Open the Model page in Label Studio.
> Note: The NeMo engine downloads models automatically. This can take some time and could cause Label Studio UI to hang on the Model page while the models download.
7. Add the ML backend using this address: `http:https://localhost:9090`
10. Add the ML backend using this address: `http:https://localhost:9090`

11. Import audio data and start reviewing pre-labels.
2 changes: 1 addition & 1 deletion label_studio/static/editor/js/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion label_studio/static/editor/js/main.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions label_studio/static/editor/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"message": "Merge pull request #168 from heartexlabs/feature/timeseries-fixedscale\n\nAdd `fixedScale` param to TimeSeries, default off",
"commit": "808858fe9cc17d372a89b1031c3e2e12e06ba1f3",
"message": "Merge pull request #169 from heartexlabs/feature/audio-transcription\n\nBetter audio transcription",
"commit": "7350e8c800c4d531d0a2b52a03217c7e6998789b",
"branch": "master",
"date": "2021-02-11T20:40:38Z"
"date": "2021-02-17T12:49:10Z"
}
2 changes: 1 addition & 1 deletion label_studio/templates/model.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
// stop upload wait
function stop_wait(obj, success) {
if (success) {
window.location = '?task_id=' + obj[0];
window.location = './?task_id=' + obj[0];
} else {
alert(obj);
}
Expand Down

0 comments on commit ee8b6fa

Please sign in to comment.