Skip to content

Commit

Permalink
update docs and bump validation percentage to 20%
Browse files Browse the repository at this point in the history
  • Loading branch information
bourdakos1 committed Feb 26, 2020
1 parent 0b178b2 commit cfbd886
Show file tree
Hide file tree
Showing 13 changed files with 74 additions and 40 deletions.
1 change: 1 addition & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,4 @@ defaults:
type: "guides"
values:
layout: guides
title: poodoo
1 change: 1 addition & 0 deletions docs/_guides/auto-labeling.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
title_overide: Auto labeling
title: Documentation
description: Getting started - Preparing training data - Object Detection - Classification
# date: 1970-01-20
Expand Down
8 changes: 6 additions & 2 deletions docs/_guides/downloading-a-model-via-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ title: Downloading a model via CLI
# date: 1970-01-18
---

With the Cloud Annotations CLI [installed](#installing-the-cloud-annotations-cli-cacli), we will download our trained model. First we need the model ID. This can be obtained by running `cacli list` to list all training runs, find the ID of the model that you would like to download. Then run:
To download a trained model with the [Cloud Annotations CLI](#installing-the-cli), simply use the `cacli download` command.

`cacli download <model id>`.
```
cacli download <model-id>
```

> **Note** The `model-id` can be obtained by running `cacli list` to list all available training runs.
1 change: 0 additions & 1 deletion docs/_guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Getting started
# date: 1970-01-01
---
> **Note:** `Guides` are a work in progress and coming soon! Until they are completed check out some of the [workshops](/workshops).

Cloud Annotations makes labeling images and training machine learning models easy.
Whether you've never touched a line of code in your life or you're a TensorFlow ninja, these docs will help you build what you need. Let's get started!
Expand Down
2 changes: 1 addition & 1 deletion docs/_guides/installing-the-cli.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Installing the Cloud Annotations CLI (cacli)
title: Installing the CLI
# date: 1970-01-12
---

Expand Down
2 changes: 1 addition & 1 deletion docs/_guides/non-interactive-training.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Non-interactive training (useful for CI)
title: Non-interactive training
# date: 1970-01-15
---

Expand Down
16 changes: 15 additions & 1 deletion docs/_guides/using-a-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,18 @@ title: Using a model
# date: 1970-01-19
---

Documentation coming soon
You can use a model by copying the downloaded model folder into one of the following demos. Further usage instructions are provided on the demo's GitHub repo.

## Classification demos
- [React webapp](https://github.com/cloud-annotations/classification-react){:target="_blank"}
- [iOS app](https://github.com/cloud-annotations/classification-ios){:target="_blank"}
- [Android app](https://github.com/cloud-annotations/classification-android){:target="_blank"}

## Object detection demos
- [React webapp](https://github.com/cloud-annotations/object-detection-react){:target="_blank"}
- [iOS app](https://github.com/cloud-annotations/object-detection-ios){:target="_blank"}
- [Android app](https://github.com/cloud-annotations/object-detection-android){:target="_blank"}
- [Livestream](https://github.com/cloud-annotations/object-detection-live-stream){:target="_blank"}
- [Raspberry Pi](https://github.com/cloud-annotations/raspberrypi-streaming-object-detection){:target="_blank"}
- [Python](https://github.com/cloud-annotations/object-detection-python){:target="_blank"}

36 changes: 36 additions & 0 deletions docs/_layouts/base-guides.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: " en " }}">

{%- include head.html -%}

<body>
{{ content }}

<script>

const ID = function () {
// Math.random should be unique because of its seeding algorithm.
// Convert it to base 36 (numbers + letters), and grab the first 9 characters
// after the decimal.
return '-' + Math.random().toString(36).substr(2, 9);
};

$('body .markdown-body').find("h1").each(function() {
const h1ID = this.id
let listItems = []
$(this).next("section").find("h2").each(function() {
this.id = this.id + ID()
listItems.push('<li><a href="#' + this.id + '">'+$(this).text()+'</a></li>')
})
$("#nav-" + h1ID + ' .nav-stacked').html(listItems.join(''))
})

$('body').scrollspy({
target: '#the-nav-bar',
offset: 140
})

</script>
</body>

</html>
26 changes: 0 additions & 26 deletions docs/_layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,6 @@

<body>
{{ content }}

<script>

const ID = function () {
// Math.random should be unique because of its seeding algorithm.
// Convert it to base 36 (numbers + letters), and grab the first 9 characters
// after the decimal.
return '-' + Math.random().toString(36).substr(2, 9);
};

$('body .markdown-body').find("h1").each(function() {
const h1ID = this.id
let listItems = []
$(this).next("section").find("h2").each(function() {
this.id = this.id + ID()
listItems.push('<li><a href="#' + this.id + '">'+$(this).text()+'</a></li>')
})
$("#nav-" + h1ID + ' .nav-stacked').html(listItems.join(''))
})

$('body').scrollspy({
target: '#the-nav-bar',
offset: 140
})

</script>
</body>

</html>
12 changes: 8 additions & 4 deletions docs/_layouts/guides.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: base
layout: base-guides
---

{% include titlebar.html active="guides" %}
Expand All @@ -9,8 +9,10 @@
<nav class="col-xs-3 bs-docs-sidebar" id="the-nav-bar">
<ul id="sidebar" class="nav nav-stacked fixed">
{% for item in site[page.collection] %}
<li id="nav-{{ item.title | slugify }}">
<a href="#{{ item.title | slugify }}">{{ item.title }}</a>
<li id="nav-{{ item.title_overide | default: item.title | slugify }}">
<a href="#{{ item.title_overide | default: item.title | slugify }}"
>{{ item.title_overide | default: item.title }}</a
>
<ul class="nav nav-stacked"></ul>
</li>
{% endfor %}
Expand All @@ -20,7 +22,9 @@
<!--Main Content -->
<article class="content markdown-body">
{% for item in site[page.collection] %}
<h1 id="{{ item.title | slugify }}">{{ item.title }}</h1>
<h1 id="{{ item.title_overide | default: item.title | slugify }}">
{{ item.title_overide | default: item.title }}
</h1>
<section class="guide-section">
{{ item.content }}
</section>
Expand Down
4 changes: 2 additions & 2 deletions docs/demos.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

{% include titlebar.html active="demos" %}

<main>
<ul style="margin-top: 100px">
<main class="content markdown-body">
<ul style="padding-top: 80px">
<li>
<a href="https://github.com/cloud-annotations/object-detection-react"
>object-detection-react</a
Expand Down
4 changes: 2 additions & 2 deletions docs/sdks.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

{% include titlebar.html active="sdks" %}

<main>
<ul style="margin-top: 100px">
<main class="content markdown-body">
<ul style="padding-top: 80px">
<li>
<a href="https://github.com/cloud-annotations/object-detection-js"
>JavaScript</a
Expand Down
1 change: 1 addition & 0 deletions trainer/src/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ python -m classification.retrain \
--image_dir=data \
--saved_model_dir=$OUTPUT_DIRECTORY/saved_model \
--tfhub_module=https://tfhub.dev/google/imagenet/mobilenet_v1_100_224/feature_vector/1 \
--validation_percentage=20 \
--how_many_training_steps=$1 \
--output_labels=$OUTPUT_DIRECTORY/labels.txt
fi
Expand Down

0 comments on commit cfbd886

Please sign in to comment.