33 |
34 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 1/Examples/License.txt:
--------------------------------------------------------------------------------
1 | Licensed under the Apache License, Version 2.0 (the \"License\");
2 | you may not use this file except in compliance with the License.
3 | You may obtain a copy of the License at
4 |
5 | https://www.apache.org/licenses/LICENSE-2.0
6 |
7 | Unless required by applicable law or agreed to in writing, software
8 | distributed under the License is distributed on an \"AS IS\" BASIS,
9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 | See the License for the specific language governing permissions and
11 | limitations under the License.
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 1/Exercise/License.txt:
--------------------------------------------------------------------------------
1 | Licensed under the Apache License, Version 2.0 (the \"License\");
2 | you may not use this file except in compliance with the License.
3 | You may obtain a copy of the License at
4 |
5 | https://www.apache.org/licenses/LICENSE-2.0
6 |
7 | Unless required by applicable law or agreed to in writing, software
8 | distributed under the License is distributed on an \"AS IS\" BASIS,
9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 | See the License for the specific language governing permissions and
11 | limitations under the License.
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 2/Examples/License.txt:
--------------------------------------------------------------------------------
1 | Licensed under the Apache License, Version 2.0 (the \"License\");
2 | you may not use this file except in compliance with the License.
3 | You may obtain a copy of the License at
4 |
5 | https://www.apache.org/licenses/LICENSE-2.0
6 |
7 | Unless required by applicable law or agreed to in writing, software
8 | distributed under the License is distributed on an \"AS IS\" BASIS,
9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 | See the License for the specific language governing permissions and
11 | limitations under the License.
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 2/Examples/mnist.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
Handwriting Classifier!
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 2/Exercise/License.txt:
--------------------------------------------------------------------------------
1 | Licensed under the Apache License, Version 2.0 (the \"License\");
2 | you may not use this file except in compliance with the License.
3 | You may obtain a copy of the License at
4 |
5 | https://www.apache.org/licenses/LICENSE-2.0
6 |
7 | Unless required by applicable law or agreed to in writing, software
8 | distributed under the License is distributed on an \"AS IS\" BASIS,
9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 | See the License for the specific language governing permissions and
11 | limitations under the License.
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 2/Exercise/fashion-mnist.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
Fashion Classifier!
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 3/Examples/License.txt:
--------------------------------------------------------------------------------
1 | Licensed under the Apache License, Version 2.0 (the \"License\");
2 | you may not use this file except in compliance with the License.
3 | You may obtain a copy of the License at
4 |
5 | https://www.apache.org/licenses/LICENSE-2.0
6 |
7 | Unless required by applicable law or agreed to in writing, software
8 | distributed under the License is distributed on an \"AS IS\" BASIS,
9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 | See the License for the specific language governing permissions and
11 | limitations under the License.
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 3/Examples/coffee.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 3/Examples/coffee.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 3/Examples/group1-shard1of1.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 3/Examples/group1-shard1of1.bin
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 3/Examples/linear.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 3/Examples/mobilenet.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
22 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 3/Examples/model.json:
--------------------------------------------------------------------------------
1 | {"format": "layers-model", "generatedBy": "keras v2.2.4-tf", "convertedBy": "TensorFlow.js Converter v1.3.1.1", "modelTopology": {"keras_version": "2.2.4-tf", "backend": "tensorflow", "model_config": {"class_name": "Sequential", "config": {"name": "sequential", "layers": [{"class_name": "Dense", "config": {"name": "dense", "trainable": true, "batch_input_shape": [null, 1], "dtype": "float32", "units": 1, "activation": "linear", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}]}}, "training_config": {"loss": "mean_squared_error", "metrics": [], "weighted_metrics": null, "sample_weight_mode": null, "loss_weights": null, "optimizer_config": {"class_name": "SGD", "config": {"name": "SGD", "learning_rate": 0.009999999776482582, "decay": 0.0, "momentum": 0.0, "nesterov": false}}}}, "weightsManifest": [{"paths": ["group1-shard1of1.bin"], "weights": [{"name": "dense/kernel", "shape": [1, 1], "dtype": "float32"}, {"name": "dense/bias", "shape": [1], "dtype": "float32"}]}]}
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 3/Examples/toxicity.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 3/Exercise/License.txt:
--------------------------------------------------------------------------------
1 | Licensed under the Apache License, Version 2.0 (the \"License\");
2 | you may not use this file except in compliance with the License.
3 | You may obtain a copy of the License at
4 |
5 | https://www.apache.org/licenses/LICENSE-2.0
6 |
7 | Unless required by applicable law or agreed to in writing, software
8 | distributed under the License is distributed on an \"AS IS\" BASIS,
9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 | See the License for the specific language governing permissions and
11 | limitations under the License.
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 4/Examples/License.txt:
--------------------------------------------------------------------------------
1 | Licensed under the Apache License, Version 2.0 (the \"License\");
2 | you may not use this file except in compliance with the License.
3 | You may obtain a copy of the License at
4 |
5 | https://www.apache.org/licenses/LICENSE-2.0
6 |
7 | Unless required by applicable law or agreed to in writing, software
8 | distributed under the License is distributed on an \"AS IS\" BASIS,
9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 | See the License for the specific language governing permissions and
11 | limitations under the License.
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 4/Examples/retrain.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
Rock Samples:
17 |
Paper Samples:
18 |
Scissors Samples:
19 |
20 |
Once training is complete, click 'Start Predicting' to see predictions, and 'Stop Predicting' to end
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 4/Examples/rps-dataset.js:
--------------------------------------------------------------------------------
1 | class RPSDataset {
2 | constructor() {
3 | this.labels = []
4 | }
5 |
6 | addExample(example, label) {
7 | if (this.xs == null) {
8 | this.xs = tf.keep(example);
9 | this.labels.push(label);
10 | } else {
11 | const oldX = this.xs;
12 | this.xs = tf.keep(oldX.concat(example, 0));
13 | this.labels.push(label);
14 | oldX.dispose();
15 | }
16 | }
17 |
18 | encodeLabels(numClasses) {
19 | for (var i = 0; i < this.labels.length; i++) {
20 | if (this.ys == null) {
21 | this.ys = tf.keep(tf.tidy(
22 | () => {return tf.oneHot(
23 | tf.tensor1d([this.labels[i]]).toInt(), numClasses)}));
24 | } else {
25 | const y = tf.tidy(
26 | () => {return tf.oneHot(
27 | tf.tensor1d([this.labels[i]]).toInt(), numClasses)});
28 | const oldY = this.ys;
29 | this.ys = tf.keep(oldY.concat(y, 0));
30 | oldY.dispose();
31 | y.dispose();
32 | }
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 4/Exercise/License.txt:
--------------------------------------------------------------------------------
1 | Licensed under the Apache License, Version 2.0 (the \"License\");
2 | you may not use this file except in compliance with the License.
3 | You may obtain a copy of the License at
4 |
5 | https://www.apache.org/licenses/LICENSE-2.0
6 |
7 | Unless required by applicable law or agreed to in writing, software
8 | distributed under the License is distributed on an \"AS IS\" BASIS,
9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 | See the License for the specific language governing permissions and
11 | limitations under the License.
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 1 - TensorFlow-JS/Week 4/Exercise/rps-dataset.js:
--------------------------------------------------------------------------------
1 | class RPSDataset {
2 | constructor() {
3 | this.labels = []
4 | }
5 |
6 | addExample(example, label) {
7 | if (this.xs == null) {
8 | this.xs = tf.keep(example);
9 | this.labels.push(label);
10 | } else {
11 | const oldX = this.xs;
12 | this.xs = tf.keep(oldX.concat(example, 0));
13 | this.labels.push(label);
14 | oldX.dispose();
15 | }
16 | }
17 |
18 | encodeLabels(numClasses) {
19 | for (var i = 0; i < this.labels.length; i++) {
20 | if (this.ys == null) {
21 | this.ys = tf.keep(tf.tidy(
22 | () => {return tf.oneHot(
23 | tf.tensor1d([this.labels[i]]).toInt(), numClasses)}));
24 | } else {
25 | const y = tf.tidy(
26 | () => {return tf.oneHot(
27 | tf.tensor1d([this.labels[i]]).toInt(), numClasses)});
28 | const oldY = this.ys;
29 | this.ys = tf.keep(oldY.concat(y, 0));
30 | oldY.dispose();
31 | y.dispose();
32 | }
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/README.md:
--------------------------------------------------------------------------------
1 | Course 2 - Device-based Models with TensorFlow Lite – Examples and Exercises
2 | ===========================================================================
3 |
4 | This repository contains the examples and exercises that accompany Course 2 - Device-based Models with TensorFlow Lite of the TensorFlow for Data and Deployment Specialization at Coursera.
5 |
6 | # Jupyter Notebooks
7 |
8 | The Jupyter notebooks in the exercises and examples in this course can be run locally or in Google's [Colaboratory](https://colab.research.google.com/notebooks/welcome.ipynb). We should note that certain cells in the notebooks contain code or interactive forms that will only render when executed in the Colab environment. Therefore, we recommend running the notebooks in the Colab environment. You will still be able run the notebooks locally on your machine without any modifications to the code, so feel free to work locally if you prefer. If you work locally make sure you have installed TensorFlow 2.0 and TensorFlow Hub 0.7.0.
9 |
10 |
11 | Have fun learning TensorFlow Lite!
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 |
15 | /.gradle/
16 | /.idea/
17 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 |
15 | /.gradle/
16 | /.idea/
17 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | apply plugin: 'kotlin-android'
4 |
5 | apply plugin: 'kotlin-android-extensions'
6 |
7 | android {
8 | compileSdkVersion 28
9 | defaultConfig {
10 | applicationId "com.google.tflite.catvsdog"
11 | minSdkVersion 21
12 | targetSdkVersion 28
13 | versionCode 1
14 | versionName "1.0"
15 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
16 | }
17 | buildTypes {
18 | release {
19 | minifyEnabled false
20 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
21 | }
22 | }
23 | aaptOptions {
24 | noCompress "tflite"
25 | noCompress "lite"
26 | }
27 | }
28 |
29 | dependencies {
30 | implementation fileTree(dir: 'libs', include: ['*.jar'])
31 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
32 | implementation 'com.android.support:appcompat-v7:28.0.0'
33 | implementation 'com.android.support.constraint:constraint-layout:1.1.3'
34 | implementation 'org.tensorflow:tensorflow-lite:0.0.0-nightly'
35 | // implementation "io.reactivex.rxjava2:rxandroid:$versions.rxandroid"
36 | // implementation "io.reactivex.rxjava2:rxkotlin:$versions.rxkotlin"
37 | // implementation 'androidx.fragment:fragment:1.0.0'
38 | implementation "org.jetbrains.anko:anko-commons:0.10.0"
39 |
40 | implementation 'com.android.support:support-v4:28.0.0'
41 | }
42 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/assets/converted_model.tflite:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/assets/converted_model.tflite
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/assets/label.txt:
--------------------------------------------------------------------------------
1 | cat
2 | dog
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable-xxhdpi/ic_action_info.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable-xxhdpi/ic_action_info.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img0.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img0.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img1.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img17.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img17.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img2.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img22.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img22.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img3.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img4.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img5.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/drawable/img6.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #008577
4 | #00574B
5 | #D81B60
6 |
7 | #cc4285f4
8 |
9 |
10 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 112dp
4 | 20dp
5 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | CatVsDog
3 |
4 | Picture
5 | Info
6 | This sample needs camera and storage permission.
7 | This device doesn\'t support Camera2 API.
8 |
9 |
17 |
18 |
19 |
20 | Hello blank fragment
21 |
22 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | apply from: 'dependency.gradle'
5 | ext.kotlin_version = '1.3.31'
6 | repositories {
7 | google()
8 | jcenter()
9 |
10 | }
11 | dependencies {
12 | classpath 'com.android.tools.build:gradle:3.4.2'
13 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14 | // NOTE: Do not place your application dependencies here; they belong
15 | // in the individual module build.gradle files
16 | }
17 | }
18 |
19 | allprojects {
20 | repositories {
21 | google()
22 | jcenter()
23 |
24 | }
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx1536m
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # Kotlin code style for this project: "official" or "obsolete":
15 | kotlin.code.style=official
16 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Tue Jun 18 16:00:16 IST 2019
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
7 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/cats_vs_dogs/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 | /.idea
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 |
15 | /.gradle/
16 | /.idea/
17 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 | apply plugin: 'kotlin-android-extensions'
3 | apply plugin: 'kotlin-android'
4 |
5 | android {
6 | compileSdkVersion 28
7 | defaultConfig {
8 | applicationId "com.google.tflite.imageclassification.sample"
9 | minSdkVersion 21
10 | targetSdkVersion 28
11 | versionCode 1
12 | versionName "1.0"
13 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
14 | }
15 | buildTypes {
16 | release {
17 | minifyEnabled false
18 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
19 | }
20 | }
21 | aaptOptions {
22 | noCompress "tflite"
23 | noCompress "lite"
24 | }
25 | }
26 |
27 | dependencies {
28 | implementation fileTree(dir: 'libs', include: ['*.jar'])
29 | implementation 'com.android.support:appcompat-v7:28.0.0'
30 | testImplementation 'junit:junit:4.12'
31 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
32 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
33 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
34 | implementation 'org.tensorflow:tensorflow-lite:0.0.0-nightly'
35 | }
36 | repositories {
37 | mavenCentral()
38 | }
39 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/androidTest/java/com/google/tflite/imageclassification/sample/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.google.tflite.imageclassification.sample;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumented test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.google.tflite.imageclassification.sample", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/assets/mobilenet_v1_1.0_224_quant.tflite:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/assets/mobilenet_v1_1.0_224_quant.tflite
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/java/com/google/tflite/imageclassification/sample/camera/ActivityExtensions.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.google.tflite.imageclassification.sample.camera
18 |
19 | import android.support.v4.app.FragmentActivity
20 | import android.support.v4.content.ContextCompat
21 | import android.widget.Toast
22 |
23 | /**
24 | * This file illustrates Kotlin's Extension Functions by extending FragmentActivity.
25 | */
26 |
27 | /**
28 | * Shows a [Toast] on the UI thread.
29 | *
30 | * @param text The message to show
31 | */
32 | fun FragmentActivity.showToast(text: String) {
33 | runOnUiThread { Toast.makeText(this, text, Toast.LENGTH_SHORT).show() }
34 | }
35 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/java/com/google/tflite/imageclassification/sample/camera/CameraActivity.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.google.tflite.imageclassification.sample.camera
18 |
19 | import android.os.Bundle
20 | import android.support.v7.app.AppCompatActivity
21 | import com.google.tflite.imageclassification.sample.R
22 |
23 | class CameraActivity : AppCompatActivity() {
24 |
25 | override fun onCreate(savedInstanceState: Bundle?) {
26 | super.onCreate(savedInstanceState)
27 | setContentView(R.layout.activity_camera)
28 | savedInstanceState ?: supportFragmentManager.beginTransaction()
29 | .replace(R.id.container, Camera2BasicFragment.newInstance())
30 | .commit()
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/java/com/google/tflite/imageclassification/sample/camera/CompareSizesByArea.kt:
--------------------------------------------------------------------------------
1 | package com.google.tflite.imageclassification.sample.camera
2 |
3 | import android.util.Size
4 | import java.lang.Long.signum
5 |
6 | import java.util.Comparator
7 |
8 | /**
9 | * Compares two `Size`s based on their areas.
10 | */
11 | internal class CompareSizesByArea : Comparator {
12 |
13 | // We cast here to ensure the multiplications won't overflow
14 | override fun compare(lhs: Size, rhs: Size) =
15 | signum(lhs.width.toLong() * lhs.height - rhs.width.toLong() * rhs.height)
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/java/com/google/tflite/imageclassification/sample/camera/Constants.kt:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | @file:JvmName("Constants")
18 |
19 | package com.google.tflite.imageclassification.sample.camera
20 |
21 | @JvmField val REQUEST_CAMERA_PERMISSION = 1
22 | @JvmField val PIC_FILE_NAME = "pic_amlan.jpg"
23 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/layout/activity_camera.xml:
--------------------------------------------------------------------------------
1 |
16 |
23 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/layout/camera_connection_fragment.xml:
--------------------------------------------------------------------------------
1 |
16 |
19 |
20 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/layout/fragment_camera.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
13 |
14 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/layout/fragment_camera_preview_frament.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
12 |
13 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #008577
4 | #00574B
5 | #D81B60
6 |
7 | #cc4285f4
8 |
9 |
10 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 112dp
4 | 20dp
5 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Image classification
3 | Picture
4 | Info
5 | This sample needs camera and storage permission.
6 | This device doesn\'t support Camera2 API.
7 |
8 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/app/src/test/java/com/google/tflite/imageclassification/sample/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.google.tflite.imageclassification.sample;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | ext.kotlin_version = '1.3.41'
5 | repositories {
6 | google()
7 | jcenter()
8 |
9 | }
10 | dependencies {
11 | classpath 'com.android.tools.build:gradle:3.4.2'
12 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
13 |
14 | // NOTE: Do not place your application dependencies here; they belong
15 | // in the individual module build.gradle files
16 | }
17 | }
18 |
19 | allprojects {
20 | repositories {
21 | google()
22 | jcenter()
23 |
24 | }
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx1536m
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 |
15 |
16 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Tue Jul 09 12:48:54 IST 2019
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
7 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/image_classification/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 | /.idea
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 |
15 | /.gradle/
16 | /.idea
17 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 | apply plugin: 'kotlin-android-extensions'
3 | apply plugin: 'kotlin-android'
4 |
5 | android {
6 | compileSdkVersion 28
7 | defaultConfig {
8 | applicationId "com.google.tflite.objectdetection"
9 | minSdkVersion 21
10 | targetSdkVersion 28
11 | versionCode 1
12 | versionName "1.0"
13 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
14 | }
15 | buildTypes {
16 | release {
17 | minifyEnabled false
18 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
19 | }
20 | }
21 | aaptOptions {
22 | noCompress "tflite"
23 | noCompress "lite"
24 | }
25 | }
26 |
27 | dependencies {
28 | implementation fileTree(dir: 'libs', include: ['*.jar'])
29 | implementation 'androidx.appcompat:appcompat:1.0.0'
30 | testImplementation 'junit:junit:4.12'
31 | implementation 'com.google.android.material:material:1.0.0'
32 | androidTestImplementation 'androidx.test:runner:1.1.0'
33 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
34 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
35 | implementation 'org.tensorflow:tensorflow-lite:0.0.0-nightly'
36 | }
37 | repositories {
38 | mavenCentral()
39 | }
40 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
21 |
22 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/assets/detect.tflite:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/assets/detect.tflite
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/assets/labelmap.txt:
--------------------------------------------------------------------------------
1 | ???
2 | person
3 | bicycle
4 | car
5 | motorcycle
6 | airplane
7 | bus
8 | train
9 | truck
10 | boat
11 | traffic light
12 | fire hydrant
13 | ???
14 | stop sign
15 | parking meter
16 | bench
17 | bird
18 | cat
19 | dog
20 | horse
21 | sheep
22 | cow
23 | elephant
24 | bear
25 | zebra
26 | giraffe
27 | ???
28 | backpack
29 | umbrella
30 | ???
31 | ???
32 | handbag
33 | tie
34 | suitcase
35 | frisbee
36 | skis
37 | snowboard
38 | sports ball
39 | kite
40 | baseball bat
41 | baseball glove
42 | skateboard
43 | surfboard
44 | tennis racket
45 | bottle
46 | ???
47 | wine glass
48 | cup
49 | fork
50 | knife
51 | spoon
52 | bowl
53 | banana
54 | apple
55 | sandwich
56 | orange
57 | broccoli
58 | carrot
59 | hot dog
60 | pizza
61 | donut
62 | cake
63 | chair
64 | couch
65 | potted plant
66 | bed
67 | ???
68 | dining table
69 | ???
70 | ???
71 | toilet
72 | ???
73 | tv
74 | laptop
75 | mouse
76 | remote
77 | keyboard
78 | cell phone
79 | microwave
80 | oven
81 | toaster
82 | sink
83 | refrigerator
84 | ???
85 | book
86 | clock
87 | vase
88 | scissors
89 | teddy bear
90 | hair drier
91 | toothbrush
92 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/java/com/google/tflite/objectdetection/customview/ResultsView.kt:
--------------------------------------------------------------------------------
1 | /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.
14 | ==============================================================================*/
15 |
16 | package com.google.tflite.objectdetection.customview
17 |
18 | import com.google.tflite.objectdetection.tflite.Classifier.Recognition
19 |
20 | interface ResultsView {
21 | fun setResults(results: List)
22 | }
23 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xxhdpi/icn_chevron_down.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xxhdpi/icn_chevron_up.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xxhdpi/icn_tf_lite.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xxhdpi/icn_tf_lite.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xxhdpi/tfl_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xxhdpi/tfl_logo.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xxxhdpi/caret.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xxxhdpi/caret.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xxxhdpi/chair.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xxxhdpi/chair.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xxxhdpi/sample_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable-xxxhdpi/sample_image.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable/bottom_sheet_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable/ic_baseline_add.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable/ic_baseline_remove.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable/laptop.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable/laptop.jpeg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/drawable/rectangle.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/layout/camera_connection_fragment_tracking.xml:
--------------------------------------------------------------------------------
1 |
16 |
19 |
20 |
24 |
25 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/values/base-strings.xml:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 | TFL Detect
19 |
20 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #98999b
4 | #404041
5 | #d2d0d1
6 |
7 | #66000000
8 |
9 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 15dp
4 | 8dp
5 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Object Detection
3 | Picture
4 | This device doesn\'t support Camera2 API.
5 | Info
6 | This sample needs camera and storage permission.
7 |
8 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | ext.kotlin_version = '1.3.40'
5 | repositories {
6 | google()
7 | jcenter()
8 |
9 | }
10 | dependencies {
11 | classpath 'com.android.tools.build:gradle:3.4.2'
12 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
13 |
14 | // NOTE: Do not place your application dependencies here; they belong
15 | // in the individual module build.gradle files
16 | }
17 | }
18 |
19 | allprojects {
20 | repositories {
21 | google()
22 | jcenter()
23 |
24 | }
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | android.enableJetifier=true
10 | android.useAndroidX=true
11 | org.gradle.jvmargs=-Xmx1536m
12 | # When configured, Gradle will run in incubating parallel mode.
13 | # This option should only be used with decoupled projects. More details, visit
14 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
15 | # org.gradle.parallel=true
16 |
17 |
18 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 21 12:21:41 IST 2019
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
7 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 2/Examples/Android Apps/object_detection/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample.xcodeproj/xcuserdata/lmoroney.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | CatVsDogClassifierSample.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 3
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample.xcworkspace/xcuserdata/lmoroney.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample.xcworkspace/xcuserdata/lmoroney.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/0.imageset/0.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/0.imageset/0.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/0.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "0.jpg",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/1.imageset/1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/1.imageset/1.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/1.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "1.jpg",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/2.imageset/2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/2.imageset/2.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/2.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "2.jpg",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/3.imageset/3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/3.imageset/3.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/3.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "3.jpg",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/4.imageset/4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/4.imageset/4.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/4.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "4.jpg",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/5.imageset/5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/5.imageset/5.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/5.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "5.jpg",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/6.imageset/6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/6.imageset/6.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/6.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "6.jpg",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Cells/ImageCell.swift:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The TensorFlow Authors. All Rights Reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | import UIKit
16 |
17 | class ImageCell: UICollectionViewCell {
18 |
19 | @IBOutlet weak var imageView: UIImageView!
20 |
21 | @IBOutlet weak var inferenceLabel: UILabel!
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/Model/.gitignore:
--------------------------------------------------------------------------------
1 | *.txt
2 | *.tflite
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/converted_model.tflite:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/converted_model.tflite
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/CatVsDogClassifierSample/labels.txt:
--------------------------------------------------------------------------------
1 | cat
2 | dog
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment the next line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | target 'CatVsDogClassifierSample' do
5 | # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
6 | use_frameworks!
7 |
8 | # Pods for CatVsDogClassifierSample
9 | pod 'TensorFlowLiteSwift'
10 |
11 | end
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - TensorFlowLiteC (1.14.0)
3 | - TensorFlowLiteSwift (1.14.0):
4 | - TensorFlowLiteC (= 1.14.0)
5 |
6 | DEPENDENCIES:
7 | - TensorFlowLiteSwift
8 |
9 | SPEC REPOS:
10 | https://github.com/cocoapods/specs.git:
11 | - TensorFlowLiteC
12 | - TensorFlowLiteSwift
13 |
14 | SPEC CHECKSUMS:
15 | TensorFlowLiteC: a6702011fb661928634e59565b5fe262f69692d0
16 | TensorFlowLiteSwift: ac8c816ae2d65f631a96151e7991c46412aec7eb
17 |
18 | PODFILE CHECKSUM: 0cd9f237b47db72a414a4a3bf7edb4da8c933651
19 |
20 | COCOAPODS: 1.7.5
21 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/Manifest.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - TensorFlowLiteC (1.14.0)
3 | - TensorFlowLiteSwift (1.14.0):
4 | - TensorFlowLiteC (= 1.14.0)
5 |
6 | DEPENDENCIES:
7 | - TensorFlowLiteSwift
8 |
9 | SPEC REPOS:
10 | https://github.com/cocoapods/specs.git:
11 | - TensorFlowLiteC
12 | - TensorFlowLiteSwift
13 |
14 | SPEC CHECKSUMS:
15 | TensorFlowLiteC: a6702011fb661928634e59565b5fe262f69692d0
16 | TensorFlowLiteSwift: ac8c816ae2d65f631a96151e7991c46412aec7eb
17 |
18 | PODFILE CHECKSUM: 0cd9f237b47db72a414a4a3bf7edb4da8c933651
19 |
20 | COCOAPODS: 1.7.5
21 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/Pods.xcodeproj/xcuserdata/lmoroney.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | Pods-CatVsDogClassifierSample.xcscheme
8 |
9 | isShown
10 |
11 | orderHint
12 | 0
13 |
14 | TensorFlowLiteC.xcscheme
15 |
16 | isShown
17 |
18 | orderHint
19 | 1
20 |
21 | TensorFlowLiteSwift.xcscheme
22 |
23 | isShown
24 |
25 | orderHint
26 | 2
27 |
28 |
29 | SuppressBuildableAutocreation
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/Target Support Files/Pods-CatVsDogClassifierSample/Pods-CatVsDogClassifierSample-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | ${PRODUCT_BUNDLE_IDENTIFIER}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | ${CURRENT_PROJECT_VERSION}
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/Target Support Files/Pods-CatVsDogClassifierSample/Pods-CatVsDogClassifierSample-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_Pods_CatVsDogClassifierSample : NSObject
3 | @end
4 | @implementation PodsDummy_Pods_CatVsDogClassifierSample
5 | @end
6 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/Target Support Files/Pods-CatVsDogClassifierSample/Pods-CatVsDogClassifierSample-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
14 | FOUNDATION_EXPORT double Pods_CatVsDogClassifierSampleVersionNumber;
15 | FOUNDATION_EXPORT const unsigned char Pods_CatVsDogClassifierSampleVersionString[];
16 |
17 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/Target Support Files/Pods-CatVsDogClassifierSample/Pods-CatVsDogClassifierSample.debug.xcconfig:
--------------------------------------------------------------------------------
1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteSwift" "${PODS_ROOT}/TensorFlowLiteC/Frameworks"
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteSwift/TensorFlowLite.framework/Headers"
5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
6 | OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -framework "TensorFlowLite" -framework "TensorFlowLiteC"
7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS
8 | PODS_BUILD_DIR = ${BUILD_DIR}
9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
11 | PODS_ROOT = ${SRCROOT}/Pods
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/Target Support Files/Pods-CatVsDogClassifierSample/Pods-CatVsDogClassifierSample.modulemap:
--------------------------------------------------------------------------------
1 | framework module Pods_CatVsDogClassifierSample {
2 | umbrella header "Pods-CatVsDogClassifierSample-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/Target Support Files/Pods-CatVsDogClassifierSample/Pods-CatVsDogClassifierSample.release.xcconfig:
--------------------------------------------------------------------------------
1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteSwift" "${PODS_ROOT}/TensorFlowLiteC/Frameworks"
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteSwift/TensorFlowLite.framework/Headers"
5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
6 | OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -framework "TensorFlowLite" -framework "TensorFlowLiteC"
7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS
8 | PODS_BUILD_DIR = ${BUILD_DIR}
9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
11 | PODS_ROOT = ${SRCROOT}/Pods
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/Target Support Files/TensorFlowLiteC/TensorFlowLiteC.xcconfig:
--------------------------------------------------------------------------------
1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteC
2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/TensorFlowLiteC/Frameworks"
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | OTHER_LDFLAGS = $(inherited) -l"c++"
5 | PODS_BUILD_DIR = ${BUILD_DIR}
6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
7 | PODS_ROOT = ${SRCROOT}
8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/TensorFlowLiteC
9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
10 | SKIP_INSTALL = YES
11 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | ${PRODUCT_BUNDLE_IDENTIFIER}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.14.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | ${CURRENT_PROJECT_VERSION}
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_TensorFlowLiteSwift : NSObject
3 | @end
4 | @implementation PodsDummy_TensorFlowLiteSwift
5 | @end
6 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift-prefix.pch:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
14 | FOUNDATION_EXPORT double TensorFlowLiteVersionNumber;
15 | FOUNDATION_EXPORT const unsigned char TensorFlowLiteVersionString[];
16 |
17 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift.modulemap:
--------------------------------------------------------------------------------
1 | framework module TensorFlowLite {
2 | umbrella header "TensorFlowLiteSwift-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift.xcconfig:
--------------------------------------------------------------------------------
1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteSwift
2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/TensorFlowLiteC/Frameworks"
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS
5 | PODS_BUILD_DIR = ${BUILD_DIR}
6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
7 | PODS_ROOT = ${SRCROOT}
8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/TensorFlowLiteSwift
9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
10 | SKIP_INSTALL = YES
11 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/TensorFlowLiteC/Frameworks/TensorFlowLiteC.framework/Headers/TensorFlowLiteC.h:
--------------------------------------------------------------------------------
1 | #import "c_api.h"
2 | #import "c_api_types.h"
3 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/TensorFlowLiteC/Frameworks/TensorFlowLiteC.framework/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module TensorFlowLiteC {
2 | umbrella header "TensorFlowLiteC.h"
3 | export *
4 | module * { export * }
5 | }
6 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/TensorFlowLiteC/Frameworks/TensorFlowLiteC.framework/TensorFlowLiteC:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/TensorFlowLiteC/Frameworks/TensorFlowLiteC.framework/TensorFlowLiteC
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/TensorFlowLiteSwift/tensorflow/lite/experimental/swift/Sources/InterpreterOptions.swift:
--------------------------------------------------------------------------------
1 | // Copyright 2018 Google Inc. All rights reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at:
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | /// Custom configuration options for a TensorFlow Lite `Interpreter`.
16 | public struct InterpreterOptions: Equatable {
17 |
18 | /// Maximum number of CPU threads that the interpreter should run on. Default is `nil` which
19 | /// indicates that the `Interpreter` will decide the number of threads to use.
20 | public var threadCount: Int? = nil
21 |
22 | /// Creates a new instance of interpreter options.
23 | public init() {}
24 | }
25 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/TensorFlowLiteSwift/tensorflow/lite/experimental/swift/Sources/Model.swift:
--------------------------------------------------------------------------------
1 | // Copyright 2018 Google Inc. All rights reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at:
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | import TensorFlowLiteC
16 |
17 | /// A TensorFlow Lite model used by the 'Interpreter` to perform inference.
18 | final class Model {
19 |
20 | /// The `TFL_Model` C pointer type represented as an `UnsafePointer`.
21 | typealias CModel = OpaquePointer
22 |
23 | /// The underlying `TFL_Model` C pointer.
24 | let cModel: CModel?
25 |
26 | /// Creates a new model instance.
27 | ///
28 | /// - Precondition: Initialization can fail if the given `filePath` is invalid.
29 | /// - Parameters:
30 | /// - filePath: Local file path to a TensorFlow Lite model.
31 | init?(filePath: String) {
32 | guard !filePath.isEmpty, let cModel = TFL_NewModelFromFile(filePath) else { return nil }
33 | self.cModel = cModel
34 | }
35 |
36 | deinit {
37 | TFL_DeleteModel(cModel)
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/cats_vs_dogs/Pods/TensorFlowLiteSwift/tensorflow/lite/experimental/swift/Sources/TensorFlowLite.swift:
--------------------------------------------------------------------------------
1 | // Copyright 2019 Google Inc. All rights reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at:
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | import TensorFlowLiteC
16 |
17 | /// TensorFlow Lite runtime values.
18 | public enum Runtime {
19 | /// A string describing the semantic versioning information for the runtime. Is an empty string if
20 | /// the version could not be determined.
21 | public static var version: String { return TFL_Version().map { String(cString: $0) } ?? "" }
22 | }
23 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification.xcodeproj/xcuserdata/lmoroney.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | ImageClassification.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 3
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification.xcworkspace/xcuserdata/lmoroney.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification.xcworkspace/xcuserdata/lmoroney.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/AppDelegate/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The TensorFlow Authors. All Rights Reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | import UIKit
16 |
17 | @UIApplicationMain
18 | class AppDelegate: UIResponder, UIApplicationDelegate {
19 | var window: UIWindow?
20 |
21 | func application(
22 | _ application: UIApplication,
23 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
24 | ) -> Bool {
25 | return true
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/AppIcon.appiconset/icn_120x120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/AppIcon.appiconset/icn_120x120.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/AppIcon.appiconset/icn_152x152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/AppIcon.appiconset/icn_152x152.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/AppIcon.appiconset/icn_167x167.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/AppIcon.appiconset/icn_167x167.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/AppIcon.appiconset/icn_180x180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/AppIcon.appiconset/icn_180x180.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/AppIcon.appiconset/icn_76x76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/AppIcon.appiconset/icn_76x76.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/down_icon.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "icnChevronDown.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "icnChevronDown@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "icnChevronDown@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/down_icon.imageset/icnChevronDown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/down_icon.imageset/icnChevronDown.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/down_icon.imageset/icnChevronDown@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/down_icon.imageset/icnChevronDown@2x.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/down_icon.imageset/icnChevronDown@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/down_icon.imageset/icnChevronDown@3x.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/tfl_logo.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "tfl_logo.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "tfl_logo@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "tfl_logo@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/tfl_logo.imageset/tfl_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/tfl_logo.imageset/tfl_logo.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/tfl_logo.imageset/tfl_logo@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/tfl_logo.imageset/tfl_logo@2x.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/tfl_logo.imageset/tfl_logo@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/tfl_logo.imageset/tfl_logo@3x.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/up_icon.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "icnChevronUp.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "icnChevronUp@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "icnChevronUp@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/up_icon.imageset/icnChevronUp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/up_icon.imageset/icnChevronUp.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/up_icon.imageset/icnChevronUp@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/up_icon.imageset/icnChevronUp@2x.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/up_icon.imageset/icnChevronUp@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Assets.xcassets/up_icon.imageset/icnChevronUp@3x.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Camera Feed/PreviewView.swift:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The TensorFlow Authors. All Rights Reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | import UIKit
16 | import AVFoundation
17 |
18 | /**
19 | The camera frame is displayed on this view.
20 | */
21 | class PreviewView: UIView {
22 |
23 | var previewLayer: AVCaptureVideoPreviewLayer {
24 | guard let layer = layer as? AVCaptureVideoPreviewLayer else {
25 | fatalError("Layer expected is of type VideoPreviewLayer")
26 | }
27 | return layer
28 | }
29 |
30 | var session: AVCaptureSession? {
31 | get {
32 | return previewLayer.session
33 | }
34 | set {
35 | previewLayer.session = newValue
36 | }
37 | }
38 |
39 | override class var layerClass: AnyClass {
40 | return AVCaptureVideoPreviewLayer.self
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/ImageClassification/Model/.gitignore:
--------------------------------------------------------------------------------
1 | *.txt
2 | *.tflite
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment the next line to define a global platform for your project
2 | platform :ios, '12.0'
3 |
4 | target 'ImageClassification' do
5 | # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
6 | use_frameworks!
7 |
8 | # Pods for ImageClassification
9 | pod 'TensorFlowLiteSwift'
10 | end
11 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - TensorFlowLiteC (1.14.0)
3 | - TensorFlowLiteSwift (1.14.0):
4 | - TensorFlowLiteC (= 1.14.0)
5 |
6 | DEPENDENCIES:
7 | - TensorFlowLiteSwift
8 |
9 | SPEC REPOS:
10 | https://github.com/cocoapods/specs.git:
11 | - TensorFlowLiteC
12 | - TensorFlowLiteSwift
13 |
14 | SPEC CHECKSUMS:
15 | TensorFlowLiteC: a6702011fb661928634e59565b5fe262f69692d0
16 | TensorFlowLiteSwift: ac8c816ae2d65f631a96151e7991c46412aec7eb
17 |
18 | PODFILE CHECKSUM: 89f7867e5c2130babaa8402a0826ea3555a14089
19 |
20 | COCOAPODS: 1.7.5
21 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/Manifest.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - TensorFlowLiteC (1.14.0)
3 | - TensorFlowLiteSwift (1.14.0):
4 | - TensorFlowLiteC (= 1.14.0)
5 |
6 | DEPENDENCIES:
7 | - TensorFlowLiteSwift
8 |
9 | SPEC REPOS:
10 | https://github.com/cocoapods/specs.git:
11 | - TensorFlowLiteC
12 | - TensorFlowLiteSwift
13 |
14 | SPEC CHECKSUMS:
15 | TensorFlowLiteC: a6702011fb661928634e59565b5fe262f69692d0
16 | TensorFlowLiteSwift: ac8c816ae2d65f631a96151e7991c46412aec7eb
17 |
18 | PODFILE CHECKSUM: 89f7867e5c2130babaa8402a0826ea3555a14089
19 |
20 | COCOAPODS: 1.7.5
21 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/Pods.xcodeproj/xcuserdata/lmoroney.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | Pods-ImageClassification.xcscheme
8 |
9 | isShown
10 |
11 | orderHint
12 | 0
13 |
14 | TensorFlowLiteC.xcscheme
15 |
16 | isShown
17 |
18 | orderHint
19 | 1
20 |
21 | TensorFlowLiteSwift.xcscheme
22 |
23 | isShown
24 |
25 | orderHint
26 | 2
27 |
28 |
29 | SuppressBuildableAutocreation
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/Target Support Files/Pods-ImageClassification/Pods-ImageClassification-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | ${PRODUCT_BUNDLE_IDENTIFIER}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | ${CURRENT_PROJECT_VERSION}
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/Target Support Files/Pods-ImageClassification/Pods-ImageClassification-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_Pods_ImageClassification : NSObject
3 | @end
4 | @implementation PodsDummy_Pods_ImageClassification
5 | @end
6 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/Target Support Files/Pods-ImageClassification/Pods-ImageClassification-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
14 | FOUNDATION_EXPORT double Pods_ImageClassificationVersionNumber;
15 | FOUNDATION_EXPORT const unsigned char Pods_ImageClassificationVersionString[];
16 |
17 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/Target Support Files/Pods-ImageClassification/Pods-ImageClassification.debug.xcconfig:
--------------------------------------------------------------------------------
1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteSwift" "${PODS_ROOT}/TensorFlowLiteC/Frameworks"
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteSwift/TensorFlowLite.framework/Headers"
5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
6 | OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -framework "TensorFlowLite" -framework "TensorFlowLiteC"
7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS
8 | PODS_BUILD_DIR = ${BUILD_DIR}
9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
11 | PODS_ROOT = ${SRCROOT}/Pods
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/Target Support Files/Pods-ImageClassification/Pods-ImageClassification.modulemap:
--------------------------------------------------------------------------------
1 | framework module Pods_ImageClassification {
2 | umbrella header "Pods-ImageClassification-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/Target Support Files/Pods-ImageClassification/Pods-ImageClassification.release.xcconfig:
--------------------------------------------------------------------------------
1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteSwift" "${PODS_ROOT}/TensorFlowLiteC/Frameworks"
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteSwift/TensorFlowLite.framework/Headers"
5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
6 | OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -framework "TensorFlowLite" -framework "TensorFlowLiteC"
7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS
8 | PODS_BUILD_DIR = ${BUILD_DIR}
9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
11 | PODS_ROOT = ${SRCROOT}/Pods
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/Target Support Files/TensorFlowLiteC/TensorFlowLiteC.xcconfig:
--------------------------------------------------------------------------------
1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteC
2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/TensorFlowLiteC/Frameworks"
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | OTHER_LDFLAGS = $(inherited) -l"c++"
5 | PODS_BUILD_DIR = ${BUILD_DIR}
6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
7 | PODS_ROOT = ${SRCROOT}
8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/TensorFlowLiteC
9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
10 | SKIP_INSTALL = YES
11 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | ${PRODUCT_BUNDLE_IDENTIFIER}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.14.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | ${CURRENT_PROJECT_VERSION}
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_TensorFlowLiteSwift : NSObject
3 | @end
4 | @implementation PodsDummy_TensorFlowLiteSwift
5 | @end
6 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift-prefix.pch:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
14 | FOUNDATION_EXPORT double TensorFlowLiteVersionNumber;
15 | FOUNDATION_EXPORT const unsigned char TensorFlowLiteVersionString[];
16 |
17 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift.modulemap:
--------------------------------------------------------------------------------
1 | framework module TensorFlowLite {
2 | umbrella header "TensorFlowLiteSwift-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift.xcconfig:
--------------------------------------------------------------------------------
1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteSwift
2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/TensorFlowLiteC/Frameworks"
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS
5 | PODS_BUILD_DIR = ${BUILD_DIR}
6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
7 | PODS_ROOT = ${SRCROOT}
8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/TensorFlowLiteSwift
9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
10 | SKIP_INSTALL = YES
11 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/TensorFlowLiteC/Frameworks/TensorFlowLiteC.framework/Headers/TensorFlowLiteC.h:
--------------------------------------------------------------------------------
1 | #import "c_api.h"
2 | #import "c_api_types.h"
3 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/TensorFlowLiteC/Frameworks/TensorFlowLiteC.framework/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module TensorFlowLiteC {
2 | umbrella header "TensorFlowLiteC.h"
3 | export *
4 | module * { export * }
5 | }
6 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/TensorFlowLiteC/Frameworks/TensorFlowLiteC.framework/TensorFlowLiteC:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/TensorFlowLiteC/Frameworks/TensorFlowLiteC.framework/TensorFlowLiteC
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/TensorFlowLiteSwift/tensorflow/lite/experimental/swift/Sources/InterpreterOptions.swift:
--------------------------------------------------------------------------------
1 | // Copyright 2018 Google Inc. All rights reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at:
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | /// Custom configuration options for a TensorFlow Lite `Interpreter`.
16 | public struct InterpreterOptions: Equatable {
17 |
18 | /// Maximum number of CPU threads that the interpreter should run on. Default is `nil` which
19 | /// indicates that the `Interpreter` will decide the number of threads to use.
20 | public var threadCount: Int? = nil
21 |
22 | /// Creates a new instance of interpreter options.
23 | public init() {}
24 | }
25 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/TensorFlowLiteSwift/tensorflow/lite/experimental/swift/Sources/Model.swift:
--------------------------------------------------------------------------------
1 | // Copyright 2018 Google Inc. All rights reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at:
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | import TensorFlowLiteC
16 |
17 | /// A TensorFlow Lite model used by the 'Interpreter` to perform inference.
18 | final class Model {
19 |
20 | /// The `TFL_Model` C pointer type represented as an `UnsafePointer`.
21 | typealias CModel = OpaquePointer
22 |
23 | /// The underlying `TFL_Model` C pointer.
24 | let cModel: CModel?
25 |
26 | /// Creates a new model instance.
27 | ///
28 | /// - Precondition: Initialization can fail if the given `filePath` is invalid.
29 | /// - Parameters:
30 | /// - filePath: Local file path to a TensorFlow Lite model.
31 | init?(filePath: String) {
32 | guard !filePath.isEmpty, let cModel = TFL_NewModelFromFile(filePath) else { return nil }
33 | self.cModel = cModel
34 | }
35 |
36 | deinit {
37 | TFL_DeleteModel(cModel)
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/image_classification/Pods/TensorFlowLiteSwift/tensorflow/lite/experimental/swift/Sources/TensorFlowLite.swift:
--------------------------------------------------------------------------------
1 | // Copyright 2019 Google Inc. All rights reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at:
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | import TensorFlowLiteC
16 |
17 | /// TensorFlow Lite runtime values.
18 | public enum Runtime {
19 | /// A string describing the semantic versioning information for the runtime. Is an empty string if
20 | /// the version could not be determined.
21 | public static var version: String { return TFL_Version().map { String(cString: $0) } ?? "" }
22 | }
23 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection.xcodeproj/xcuserdata/lmoroney.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | ObjectDetection.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 3
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection.xcworkspace/xcuserdata/lmoroney.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection.xcworkspace/xcuserdata/lmoroney.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection.xcworkspace/xcuserdata/lmoroney.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/AppDelegate/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The TensorFlow Authors. All Rights Reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | import UIKit
16 |
17 | @UIApplicationMain
18 | class AppDelegate: UIResponder, UIApplicationDelegate {
19 | var window: UIWindow?
20 |
21 | func application(
22 | _ application: UIApplication,
23 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
24 | ) -> Bool {
25 | return true
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/AppIcon.appiconset/icn_120x120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/AppIcon.appiconset/icn_120x120.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/AppIcon.appiconset/icn_152x152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/AppIcon.appiconset/icn_152x152.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/AppIcon.appiconset/icn_167x167.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/AppIcon.appiconset/icn_167x167.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/AppIcon.appiconset/icn_180x180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/AppIcon.appiconset/icn_180x180.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/AppIcon.appiconset/icn_76x76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/AppIcon.appiconset/icn_76x76.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/down_icon.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "icnChevronDown.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "icnChevronDown@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "icnChevronDown@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/down_icon.imageset/icnChevronDown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/down_icon.imageset/icnChevronDown.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/down_icon.imageset/icnChevronDown@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/down_icon.imageset/icnChevronDown@2x.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/down_icon.imageset/icnChevronDown@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/down_icon.imageset/icnChevronDown@3x.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/tfl_logo.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "tfl_logo.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "tfl_logo@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "tfl_logo@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/tfl_logo.imageset/tfl_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/tfl_logo.imageset/tfl_logo.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/tfl_logo.imageset/tfl_logo@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/tfl_logo.imageset/tfl_logo@2x.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/tfl_logo.imageset/tfl_logo@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/tfl_logo.imageset/tfl_logo@3x.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/up_icon.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "icnChevronUp.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "icnChevronUp@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "icnChevronUp@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/up_icon.imageset/icnChevronUp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/up_icon.imageset/icnChevronUp.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/up_icon.imageset/icnChevronUp@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/up_icon.imageset/icnChevronUp@2x.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/up_icon.imageset/icnChevronUp@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Assets.xcassets/up_icon.imageset/icnChevronUp@3x.png
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Camera Feed/PreviewView.swift:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The TensorFlow Authors. All Rights Reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | import UIKit
16 | import AVFoundation
17 |
18 | /**
19 | The camera frame is displayed on this view.
20 | */
21 | class PreviewView: UIView {
22 |
23 | var previewLayer: AVCaptureVideoPreviewLayer {
24 | guard let layer = layer as? AVCaptureVideoPreviewLayer else {
25 | fatalError("Layer expected is of type VideoPreviewLayer")
26 | }
27 | return layer
28 | }
29 |
30 | var session: AVCaptureSession? {
31 | get {
32 | return previewLayer.session
33 | }
34 | set {
35 | previewLayer.session = newValue
36 | }
37 | }
38 |
39 | override class var layerClass: AnyClass {
40 | return AVCaptureVideoPreviewLayer.self
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Cells/InfoCell.swift:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The TensorFlow Authors. All Rights Reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | import UIKit
16 |
17 | class InfoCell: UITableViewCell {
18 | @IBOutlet weak var fieldNameLabel: UILabel!
19 | @IBOutlet weak var infoLabel: UILabel!
20 |
21 | override func awakeFromNib() {
22 | super.awakeFromNib()
23 | // Initialization code
24 | }
25 |
26 | override func setSelected(_ selected: Bool, animated: Bool) {
27 | super.setSelected(selected, animated: animated)
28 |
29 | // Configure the view for the selected state
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Extensions/StringExtension.swift:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The TensorFlow Authors. All Rights Reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | import UIKit
16 |
17 | extension String {
18 |
19 | /**This method gets size of a string with a particular font.
20 | */
21 | func size(usingFont font: UIFont) -> CGSize {
22 | let attributedString = NSAttributedString(string: self, attributes: [NSAttributedString.Key.font : font])
23 | return attributedString.size()
24 | }
25 |
26 | }
27 |
28 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Extensions/UIColorExtension.swift:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The TensorFlow Authors. All Rights Reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | import Foundation
16 | import UIKit
17 |
18 | extension UIColor {
19 |
20 | /**
21 | This method returns colors modified by percentage value of color represented by the current object.
22 | */
23 | func getModified(byPercentage percent: CGFloat) -> UIColor? {
24 |
25 | var red: CGFloat = 0.0
26 | var green: CGFloat = 0.0
27 | var blue: CGFloat = 0.0
28 | var alpha: CGFloat = 0.0
29 |
30 | guard self.getRed(&red, green: &green, blue: &blue, alpha: &alpha) else {
31 | return nil
32 | }
33 |
34 | // Returns the color comprised by percentage r g b values of the original color.
35 | let colorToReturn = UIColor(displayP3Red: min(red + percent / 100.0, 1.0), green: min(green + percent / 100.0, 1.0), blue: min(blue + percent / 100.0, 1.0), alpha: 1.0)
36 |
37 | return colorToReturn
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | TFL Detect
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | NSCameraUsageDescription
26 | This app will use camera to detect objects around you.
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UIRequiredDeviceCapabilities
32 |
33 | armv7
34 |
35 | UIRequiresFullScreen
36 |
37 | UISupportedInterfaceOrientations
38 |
39 | UIInterfaceOrientationPortrait
40 |
41 | UISupportedInterfaceOrientations~ipad
42 |
43 | UIInterfaceOrientationPortrait
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/ObjectDetection/Model/.gitignore:
--------------------------------------------------------------------------------
1 | *.txt
2 | *.tflite
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment the next line to define a global platform for your project
2 | platform :ios, '12.0'
3 |
4 | target 'ObjectDetection' do
5 | # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
6 | use_frameworks!
7 |
8 | # Pods for ObjectDetection
9 | pod 'TensorFlowLiteSwift'
10 |
11 | end
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - TensorFlowLiteC (1.14.0)
3 | - TensorFlowLiteSwift (1.14.0):
4 | - TensorFlowLiteC (= 1.14.0)
5 |
6 | DEPENDENCIES:
7 | - TensorFlowLiteSwift
8 |
9 | SPEC REPOS:
10 | https://github.com/cocoapods/specs.git:
11 | - TensorFlowLiteC
12 | - TensorFlowLiteSwift
13 |
14 | SPEC CHECKSUMS:
15 | TensorFlowLiteC: a6702011fb661928634e59565b5fe262f69692d0
16 | TensorFlowLiteSwift: ac8c816ae2d65f631a96151e7991c46412aec7eb
17 |
18 | PODFILE CHECKSUM: c5652649ac261f6bab7423641506d7c049f9ac7e
19 |
20 | COCOAPODS: 1.7.5
21 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/Manifest.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - TensorFlowLiteC (1.14.0)
3 | - TensorFlowLiteSwift (1.14.0):
4 | - TensorFlowLiteC (= 1.14.0)
5 |
6 | DEPENDENCIES:
7 | - TensorFlowLiteSwift
8 |
9 | SPEC REPOS:
10 | https://github.com/cocoapods/specs.git:
11 | - TensorFlowLiteC
12 | - TensorFlowLiteSwift
13 |
14 | SPEC CHECKSUMS:
15 | TensorFlowLiteC: a6702011fb661928634e59565b5fe262f69692d0
16 | TensorFlowLiteSwift: ac8c816ae2d65f631a96151e7991c46412aec7eb
17 |
18 | PODFILE CHECKSUM: c5652649ac261f6bab7423641506d7c049f9ac7e
19 |
20 | COCOAPODS: 1.7.5
21 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/Pods.xcodeproj/xcuserdata/lmoroney.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | Pods-ObjectDetection.xcscheme
8 |
9 | isShown
10 |
11 | orderHint
12 | 0
13 |
14 | TensorFlowLiteC.xcscheme
15 |
16 | isShown
17 |
18 | orderHint
19 | 1
20 |
21 | TensorFlowLiteSwift.xcscheme
22 |
23 | isShown
24 |
25 | orderHint
26 | 2
27 |
28 |
29 | SuppressBuildableAutocreation
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/Target Support Files/Pods-ObjectDetection/Pods-ObjectDetection-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | ${PRODUCT_BUNDLE_IDENTIFIER}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | ${CURRENT_PROJECT_VERSION}
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/Target Support Files/Pods-ObjectDetection/Pods-ObjectDetection-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_Pods_ObjectDetection : NSObject
3 | @end
4 | @implementation PodsDummy_Pods_ObjectDetection
5 | @end
6 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/Target Support Files/Pods-ObjectDetection/Pods-ObjectDetection-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
14 | FOUNDATION_EXPORT double Pods_ObjectDetectionVersionNumber;
15 | FOUNDATION_EXPORT const unsigned char Pods_ObjectDetectionVersionString[];
16 |
17 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/Target Support Files/Pods-ObjectDetection/Pods-ObjectDetection.debug.xcconfig:
--------------------------------------------------------------------------------
1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteSwift" "${PODS_ROOT}/TensorFlowLiteC/Frameworks"
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteSwift/TensorFlowLite.framework/Headers"
5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
6 | OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -framework "TensorFlowLite" -framework "TensorFlowLiteC"
7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS
8 | PODS_BUILD_DIR = ${BUILD_DIR}
9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
11 | PODS_ROOT = ${SRCROOT}/Pods
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/Target Support Files/Pods-ObjectDetection/Pods-ObjectDetection.modulemap:
--------------------------------------------------------------------------------
1 | framework module Pods_ObjectDetection {
2 | umbrella header "Pods-ObjectDetection-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/Target Support Files/Pods-ObjectDetection/Pods-ObjectDetection.release.xcconfig:
--------------------------------------------------------------------------------
1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteSwift" "${PODS_ROOT}/TensorFlowLiteC/Frameworks"
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteSwift/TensorFlowLite.framework/Headers"
5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
6 | OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -framework "TensorFlowLite" -framework "TensorFlowLiteC"
7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS
8 | PODS_BUILD_DIR = ${BUILD_DIR}
9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
11 | PODS_ROOT = ${SRCROOT}/Pods
12 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/Target Support Files/TensorFlowLiteC/TensorFlowLiteC.xcconfig:
--------------------------------------------------------------------------------
1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteC
2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/TensorFlowLiteC/Frameworks"
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | OTHER_LDFLAGS = $(inherited) -l"c++"
5 | PODS_BUILD_DIR = ${BUILD_DIR}
6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
7 | PODS_ROOT = ${SRCROOT}
8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/TensorFlowLiteC
9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
10 | SKIP_INSTALL = YES
11 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | ${PRODUCT_BUNDLE_IDENTIFIER}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.14.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | ${CURRENT_PROJECT_VERSION}
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift-dummy.m:
--------------------------------------------------------------------------------
1 | #import
2 | @interface PodsDummy_TensorFlowLiteSwift : NSObject
3 | @end
4 | @implementation PodsDummy_TensorFlowLiteSwift
5 | @end
6 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift-prefix.pch:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift-umbrella.h:
--------------------------------------------------------------------------------
1 | #ifdef __OBJC__
2 | #import
3 | #else
4 | #ifndef FOUNDATION_EXPORT
5 | #if defined(__cplusplus)
6 | #define FOUNDATION_EXPORT extern "C"
7 | #else
8 | #define FOUNDATION_EXPORT extern
9 | #endif
10 | #endif
11 | #endif
12 |
13 |
14 | FOUNDATION_EXPORT double TensorFlowLiteVersionNumber;
15 | FOUNDATION_EXPORT const unsigned char TensorFlowLiteVersionString[];
16 |
17 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift.modulemap:
--------------------------------------------------------------------------------
1 | framework module TensorFlowLite {
2 | umbrella header "TensorFlowLiteSwift-umbrella.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/Target Support Files/TensorFlowLiteSwift/TensorFlowLiteSwift.xcconfig:
--------------------------------------------------------------------------------
1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/TensorFlowLiteSwift
2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/TensorFlowLiteC/Frameworks"
3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
4 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS
5 | PODS_BUILD_DIR = ${BUILD_DIR}
6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
7 | PODS_ROOT = ${SRCROOT}
8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/TensorFlowLiteSwift
9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
10 | SKIP_INSTALL = YES
11 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/TensorFlowLiteC/Frameworks/TensorFlowLiteC.framework/Headers/TensorFlowLiteC.h:
--------------------------------------------------------------------------------
1 | #import "c_api.h"
2 | #import "c_api_types.h"
3 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/TensorFlowLiteC/Frameworks/TensorFlowLiteC.framework/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module TensorFlowLiteC {
2 | umbrella header "TensorFlowLiteC.h"
3 | export *
4 | module * { export * }
5 | }
6 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/TensorFlowLiteC/Frameworks/TensorFlowLiteC.framework/TensorFlowLiteC:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/TensorFlowLiteC/Frameworks/TensorFlowLiteC.framework/TensorFlowLiteC
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/TensorFlowLiteSwift/tensorflow/lite/experimental/swift/Sources/InterpreterOptions.swift:
--------------------------------------------------------------------------------
1 | // Copyright 2018 Google Inc. All rights reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at:
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | /// Custom configuration options for a TensorFlow Lite `Interpreter`.
16 | public struct InterpreterOptions: Equatable {
17 |
18 | /// Maximum number of CPU threads that the interpreter should run on. Default is `nil` which
19 | /// indicates that the `Interpreter` will decide the number of threads to use.
20 | public var threadCount: Int? = nil
21 |
22 | /// Creates a new instance of interpreter options.
23 | public init() {}
24 | }
25 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/TensorFlowLiteSwift/tensorflow/lite/experimental/swift/Sources/Model.swift:
--------------------------------------------------------------------------------
1 | // Copyright 2018 Google Inc. All rights reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at:
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | import TensorFlowLiteC
16 |
17 | /// A TensorFlow Lite model used by the 'Interpreter` to perform inference.
18 | final class Model {
19 |
20 | /// The `TFL_Model` C pointer type represented as an `UnsafePointer`.
21 | typealias CModel = OpaquePointer
22 |
23 | /// The underlying `TFL_Model` C pointer.
24 | let cModel: CModel?
25 |
26 | /// Creates a new model instance.
27 | ///
28 | /// - Precondition: Initialization can fail if the given `filePath` is invalid.
29 | /// - Parameters:
30 | /// - filePath: Local file path to a TensorFlow Lite model.
31 | init?(filePath: String) {
32 | guard !filePath.isEmpty, let cModel = TFL_NewModelFromFile(filePath) else { return nil }
33 | self.cModel = cModel
34 | }
35 |
36 | deinit {
37 | TFL_DeleteModel(cModel)
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 3/Examples/iOS Apps/object_detection/Pods/TensorFlowLiteSwift/tensorflow/lite/experimental/swift/Sources/TensorFlowLite.swift:
--------------------------------------------------------------------------------
1 | // Copyright 2019 Google Inc. All rights reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at:
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | import TensorFlowLiteC
16 |
17 | /// TensorFlow Lite runtime values.
18 | public enum Runtime {
19 | /// A string describing the semantic versioning information for the runtime. Is an empty string if
20 | /// the version could not be determined.
21 | public static var version: String { return TFL_Version().map { String(cString: $0) } ?? "" }
22 | }
23 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/hyperparameter_tuning/.gitignore:
--------------------------------------------------------------------------------
1 | # Byte-compiled / optimized / DLL files
2 | __pycache__/
3 |
4 | .idea/
5 | # Jupyter Notebook
6 | .ipynb_checkpoints
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/hyperparameter_tuning/README.md:
--------------------------------------------------------------------------------
1 | # Deploying a hyperparameter tuned model on Raspberry Pi
2 |
3 | We'll be performing Hyperparameter Tuning on an image classification dataset known as 'Horses or Humans'. You can run the trained model on a Raspberry Pi. To get started, go to [this](https://colab.research.google.com/drive/1WO2pcqhuGAclTIzmJUXIgQhnr1JTmlct) Python notebook. Generate the required TFLite assets from it and copy over to the Raspberry Pi device.
4 |
5 | ## Prerequisites
6 | To install the Python dependencies, run:
7 | ```
8 | pip install -r requirements.txt
9 | ```
10 |
11 | Next, to run the code on Raspberry Pi, use `classify.py` as follows:
12 |
13 | ```
14 | python3 classify.py --filename input.jpg --model_path converted_model.tflite
15 | ```
16 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/hyperparameter_tuning/requirements.txt:
--------------------------------------------------------------------------------
1 | numpy==1.16.4
2 | Pillow==6.1.0
3 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/image_classification/.gitignore:
--------------------------------------------------------------------------------
1 | # Byte-compiled / optimized / DLL files
2 | __pycache__/
3 |
4 | .idea/
5 | # Jupyter Notebook
6 | .ipynb_checkpoints
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/image_classification/README.md:
--------------------------------------------------------------------------------
1 | # Image Classification in Raspberry Pi
2 |
3 | This is the code repository of Image Classification module for running on Edge device of Raspberry Pi. To get started, you will have to download the pretrained model along with its label file. We recommend making use of the quantized MobileNet V1 model trained on the ImageNet dataset comprising of 1001 labels. To download and extract it, run the following:
4 |
5 | ```
6 | wget https://storage.googleapis.com/download.tensorflow.org/models/tflite/mobilenet_v1_1.0_224_quant_and_labels.zip
7 | unzip mobilenet_v1_1.0_224_quant_and_labels
8 | ```
9 |
10 | ## Prerequisites
11 | To install the Python dependencies, run:
12 | ```
13 | pip install -r requirements.txt
14 | ```
15 |
16 | Next, to run the code on Raspberry Pi, use `classify.py` as follows:
17 |
18 | ```
19 | python3 classify.py --filename dog.jpg --model_path mobilenet_v1_1.0_224_quant.tflite --label_path labels_mobilenet_quant_v1_224.txt
20 | ```
21 |
22 | We encourage you to look through all the available options in the code.
23 |
24 | For more information, go [here](https://www.tensorflow.org/lite/models/image_classification/overview).
25 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/image_classification/dog.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/image_classification/dog.jpg
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/image_classification/mobilenet_v1_1.0_224_quant.tflite:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/image_classification/mobilenet_v1_1.0_224_quant.tflite
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/image_classification/requirements.txt:
--------------------------------------------------------------------------------
1 | numpy==1.16.4
2 | Pillow==6.1.0
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/object_detection/.gitignore:
--------------------------------------------------------------------------------
1 | # Byte-compiled / optimized / DLL files
2 | __pycache__/
3 |
4 | .idea/
5 | # Jupyter Notebook
6 | .ipynb_checkpoints
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/object_detection/README.md:
--------------------------------------------------------------------------------
1 | # Object Detection in Raspberry Pi
2 | This is the code repository of Object Detection module for running on Edge device of Raspberry Pi. To get started, you will have to download the pretrained model along with its label file. We recommend making use of the quantized SSD MobileNet V1 model trained on COCO capable of classifying around 80 different common object categories. To download and extract it, run the following:
3 | ```
4 | wget http://storage.googleapis.com/download.tensorflow.org/models/tflite/coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.zip
5 | unzip coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.zip
6 | ```
7 |
8 | ## Prerequisites
9 | * PiCamera
10 | * matplotlib (with tkinter as backend)
11 | * python-tk
12 | * Pillow
13 | * numpy
14 |
15 | To install the Python dependencies, run:
16 | ```
17 | pip install -r requirements.txt
18 | ```
19 |
20 | Next, to run the code on Raspberry Pi, use `classify.py` as follows:
21 |
22 | ```
23 | python3 main.py --model_path detect.tflite --label_path labelmap.txt
24 | ```
25 |
26 | We encourage you to look through all the available options in the code.
27 |
28 | For more information, go [here](https://www.tensorflow.org/lite/models/object_detection/overview).
29 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/object_detection/arial.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/object_detection/arial.ttf
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/object_detection/detect.tflite:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lmoroney/dlaicourse/f9bb5f236da306d9f8a7c978ed37292105fd7254/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/object_detection/detect.tflite
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/object_detection/labelmap.txt:
--------------------------------------------------------------------------------
1 | ???
2 | person
3 | bicycle
4 | car
5 | motorcycle
6 | airplane
7 | bus
8 | train
9 | truck
10 | boat
11 | traffic light
12 | fire hydrant
13 | ???
14 | stop sign
15 | parking meter
16 | bench
17 | bird
18 | cat
19 | dog
20 | horse
21 | sheep
22 | cow
23 | elephant
24 | bear
25 | zebra
26 | giraffe
27 | ???
28 | backpack
29 | umbrella
30 | ???
31 | ???
32 | handbag
33 | tie
34 | suitcase
35 | frisbee
36 | skis
37 | snowboard
38 | sports ball
39 | kite
40 | baseball bat
41 | baseball glove
42 | skateboard
43 | surfboard
44 | tennis racket
45 | bottle
46 | ???
47 | wine glass
48 | cup
49 | fork
50 | knife
51 | spoon
52 | bowl
53 | banana
54 | apple
55 | sandwich
56 | orange
57 | broccoli
58 | carrot
59 | hot dog
60 | pizza
61 | donut
62 | cake
63 | chair
64 | couch
65 | potted plant
66 | bed
67 | ???
68 | dining table
69 | ???
70 | ???
71 | toilet
72 | ???
73 | tv
74 | laptop
75 | mouse
76 | remote
77 | keyboard
78 | cell phone
79 | microwave
80 | oven
81 | toaster
82 | sink
83 | refrigerator
84 | ???
85 | book
86 | clock
87 | vase
88 | scissors
89 | teddy bear
90 | hair drier
91 | toothbrush
92 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/object_detection/requirements.txt:
--------------------------------------------------------------------------------
1 | matplotlib==3.0.3
2 | numpy==1.16.4
3 | picamera==1.13
4 | Pillow==6.1.0
5 | python-tk==0.1
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/transfer_learning/.gitignore:
--------------------------------------------------------------------------------
1 | # Byte-compiled / optimized / DLL files
2 | __pycache__/
3 |
4 | .idea/
5 | # Jupyter Notebook
6 | .ipynb_checkpoints
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/transfer_learning/README.md:
--------------------------------------------------------------------------------
1 | # Classifying Cats and Dogs in Raspberry Pi
2 |
3 | This is the code repository of performing Transfer Learning on a pretrained model for Cats vs Dogs Image Classification task to be run on Edge device of Raspberry Pi. To get started, go through [this](https://colab.research.google.com/drive/1Fl7Fk20-G6KVg400bhCZOWlJHNNQiDiv) Python notebook. Generate the required TFLite assets from it.
4 |
5 | ## Prerequisites
6 | To install the Python dependencies, run:
7 | ```
8 | pip install -r requirements.txt
9 | ```
10 |
11 | Next, to run the code on Raspberry Pi, use `classify.py` as follows:
12 |
13 | ```
14 | python3 classify.py --filename input.jpg --model_path converted_model.tflite
15 | ```
16 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Examples/transfer_learning/requirements.txt:
--------------------------------------------------------------------------------
1 | numpy==1.16.4
2 | Pillow==6.1.0
3 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 2 - TensorFlow Lite/Week 4/Exercise/requirements.txt:
--------------------------------------------------------------------------------
1 | numpy==1.16.4
2 | Pillow==6.1.0
3 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 3 - TensorFlow Datasets/README.md:
--------------------------------------------------------------------------------
1 | Course 3 - Data Pipelines with TensorFlow Data Services – Examples and Exercises
2 | ================================================================================
3 |
4 | This repository contains the examples and exercises that accompany Course 3 - Data Pipelines with TensorFlow Data Services of the TensorFlow for Data and Deployment Specialization at Coursera.
5 |
6 | # Jupyter Notebooks
7 |
8 | The Jupyter notebooks in the exercises and examples in this course can be run locally or in Google's [Colaboratory](https://colab.research.google.com/notebooks/welcome.ipynb). We should note that the exercise of Week 4 requires over 16 GB of free disk space to download the IMDB Faces dataset. We should also note that certain cells in the notebooks contain code or interactive forms that will only render when executed in the Colab environment. Therefore, we recommend running the notebooks in the Colab environment. You will still be able run the notebooks locally on your machine, so feel free to work locally if you prefer. If you work locally make sure you have installed TensorFlow 2.0 and TensorFlow Datasets 1.3.0.
9 |
10 |
11 | Have fun learning about TensorFlow Datasets!
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 3 - TensorFlow Datasets/Week 1/Examples/tfds_horse-or-human.ipynb:
--------------------------------------------------------------------------------
1 | {
2 | "metadata" : {
3 | "kernel_info": {
4 | "name" : "the name of the kernel"
5 | },
6 | "language_info": {
7 | "name" : "the programming language of the kernel",
8 | "version": "the version of the language",
9 | "codemirror_mode": "The name of the codemirror mode to use [optional]"
10 | }
11 | },
12 | "nbformat": 4,
13 | "nbformat_minor": 0,
14 | "cells" : [
15 | ],
16 | }
17 |
--------------------------------------------------------------------------------
/TensorFlow Deployment/Course 4 - TensorFlow Serving/README.md:
--------------------------------------------------------------------------------
1 | Course 4 - Advanced Deployment Scenarios with TensorFlow – Examples and Exercises
2 | =================================================================================
3 |
4 | This repository contains the examples and exercises that accompany Course 4 - Advanced Deployment Scenarios with TensorFlow of the TensorFlow for Data and Deployment Specialization at Coursera.
5 |
6 | # Jupyter Notebooks
7 |
8 | The Jupyter notebooks in the exercises and examples in this course can be run locally or in Google's [Colaboratory](https://colab.research.google.com/notebooks/welcome.ipynb). We should note that certain cells in the notebooks contain code or interactive forms that will only render when executed in the Colab environment. Therefore, we recommend running the notebooks in the Colab environment. You will still be able run the notebooks locally on your machine, so feel free to work locally if you prefer. If you work locally make sure you have installed TensorFlow 2.x, TensorFlow Hub 0.7.0, and TensorFlow Datasets 2.0.0.
9 |
10 |
11 | Have fun learning about TensorFlow Serving!
--------------------------------------------------------------------------------