├── .github
├── ISSUE_TEMPLATE
│ ├── bug_form.yml
│ └── custom.md
├── pull_request_template.md
└── workflows
│ ├── eslint.yml
│ └── pylint.yml
├── .gitignore
├── .prettierignore
├── .prettierrc
├── CODE_OF_CONDUCT.md
├── LICENSE
├── README.md
├── SECURITY.md
├── build
├── asset-manifest.json
├── favicon.ico
├── index.html
├── logo192.png
├── logo512.png
├── manifest.json
├── model
│ ├── capstone_image_classification.ipynb
│ ├── group1-shard1of3.bin
│ ├── group1-shard2of3.bin
│ ├── group1-shard3of3.bin
│ └── model.json
├── robots.txt
└── static
│ ├── css
│ ├── main.2c1ddbd3.css
│ └── main.2c1ddbd3.css.map
│ ├── js
│ ├── main.450b991c.js
│ ├── main.450b991c.js.LICENSE.txt
│ └── main.450b991c.js.map
│ └── media
│ ├── daun1.a1ed788a04c6f4b3ab9e.png
│ ├── green.568f1ce07e66f95ed6d2.jpg
│ ├── hj.b6d280a9598fe5496df0.png
│ ├── revicons.57fd05d4ae650374c8de.ttf
│ ├── revicons.a77de540a38981833f9e.eot
│ ├── revicons.e8746a624ed098489406.woff
│ └── t.3d4636a2229ff28867e0.png
├── documentation
└── README.md
├── model
├── image_classification
│ └── image_classification.ipynb
└── object_detection
│ ├── capstone_object_detection.ipynb
│ └── model.pt
├── package.json
├── postcss.config.js
├── public
├── favicon.ico
├── index.html
├── logo192.png
├── logo512.png
├── manifest.json
├── model
│ ├── capstone_image_classification.ipynb
│ ├── group1-shard1of3.bin
│ ├── group1-shard2of3.bin
│ ├── group1-shard3of3.bin
│ └── model.json
└── robots.txt
├── src
├── App.jsx
├── assets
│ ├── ammar.jpeg
│ ├── daun1.png
│ ├── fakhrul.jpg
│ ├── galan.jpg
│ ├── green.jpg
│ ├── hj.png
│ ├── inoyy.jpeg
│ ├── t.png
│ └── tanaman.jpg
├── components
│ ├── About.jsx
│ ├── DescCard.jsx
│ ├── Features.jsx
│ ├── Footer.jsx
│ ├── Home.jsx
│ ├── ImageCard.jsx
│ ├── Navbar.jsx
│ └── Navigation.jsx
├── data
│ └── diseases.js
├── index.css
├── index.js
└── pages
│ ├── Classify.jsx
│ └── Homepage.jsx
└── tailwind.config.js
/.github/ISSUE_TEMPLATE/bug_form.yml:
--------------------------------------------------------------------------------
1 | name: Lapor Bug
2 | description: Lha kok error💢, lapor lah
3 | title: "[Bug] "
4 | labels: "bug"
5 | assignees: "manabil,mfakhrulam,pureism"
6 | body:
7 | - type: textarea
8 | id: what-happened
9 | attributes:
10 | label: "Gimana Errornya?"
11 | description: Ceritakan errornya secara kronologis (bisa tambah gambar biar jelas), lalu apa yang kamu harapkan saat program jalan?
12 | placeholder: Saat aku buka ...
13 | validations:
14 | required: true
15 | - type: dropdown
16 | id: operating-system
17 | attributes:
18 | label: Sistem Operasi
19 | description: Saat error, kamu pake OS apa?
20 | options:
21 | - Windows 10
22 | - Windows 8
23 | - Windows 7
24 | - Linux
25 | - Mac
26 | validations:
27 | required: true
28 | - type: dropdown
29 | id: browsers
30 | attributes:
31 | label: Browser
32 | description: Saat error, kamu pake browser apa? (Bisa memilih >1)
33 | multiple: true
34 | options:
35 | - Firefox
36 | - Chrome
37 | - Safari
38 | - Microsoft Edge
39 | validations:
40 | required: true
41 | - type: textarea
42 | id: logs
43 | attributes:
44 | label: Log Error
45 | description: Copy paste log error terkait.
46 | render: shell
47 | - type: markdown
48 | attributes:
49 | value: |
50 | Suwun dah sempetin waktu buat report bug! 🙏🤗
51 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/custom.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Custom issue template
3 | about: Describe this issue template's purpose here.
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.github/pull_request_template.md:
--------------------------------------------------------------------------------
1 | ## Deskripsi
2 |
3 | Pada PR ini saya ...
4 |
5 | ## Aktivitas:
6 |
7 | - [ ] Mengatasi issues
8 | - [ ] Memperbaiki dokumentasi.
9 | - [ ] Menambah dokumentasi.
10 |
11 | Issue #
12 |
--------------------------------------------------------------------------------
/.github/workflows/eslint.yml:
--------------------------------------------------------------------------------
1 | name: ESLint
2 |
3 | on:
4 | pull_request:
5 | branches: "main"
6 |
7 | jobs:
8 | Linting:
9 | name: Run ESlint scanning
10 | runs-on: ubuntu-latest
11 | steps:
12 | - name: Set up checkout code
13 | uses: actions/checkout@v3
14 |
15 | - name: Install dependencies
16 | run: |
17 | npm install eslint eslint-config-google prettier --save-dev
18 |
19 | - name: Analysing the code with ESlint
20 | run: npx eslint .
21 | --config config/.eslintrc.json
22 | --ext .js,
23 |
24 | - name: Analysing the style with Prettier
25 | run: npx prettier --check
--------------------------------------------------------------------------------
/.github/workflows/pylint.yml:
--------------------------------------------------------------------------------
1 | name: Pylint
2 |
3 | on:
4 | pull_request:
5 | branches: "main"
6 |
7 | jobs:
8 | build:
9 | name: Run pylint scanning
10 | runs-on: ubuntu-latest
11 | steps:
12 | - name: Set up checkout code
13 | uses: actions/checkout@v3
14 |
15 | - name: Set up Python 3.10
16 | uses: actions/setup-python@v3
17 | with:
18 | python-version: "3.10"
19 |
20 | - name: Install dependencies
21 | run: |
22 | python -m pip install --upgrade pip
23 | pip install pylint
24 |
25 | - name: Analysing the code with pylint
26 | run: |
27 | pylint $(git ls-files '*.py')
28 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
3 |
4 | # dependencies
5 | /node_modules
6 | package-lock.json
7 | /.pnp
8 | .pnp.js
9 |
10 | # testing
11 | /coverage
12 |
13 | # misc
14 | .DS_Store
15 | .env.local
16 | .env.development.local
17 | .env.test.local
18 | .env.production.local
19 |
20 | npm-debug.log*
21 | yarn-debug.log*
22 | yarn-error.log*
23 |
--------------------------------------------------------------------------------
/.prettierignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | *.json
3 | config/
4 | dist/
5 | .env
6 | *.md
7 | LICENSE
8 | .github/
9 | *.py
10 | documentation/
11 |
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "trailingComma": "es5",
3 | "tabWidth": 2,
4 | "semi": true,
5 | "singleQuote": true
6 | }
7 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | We as members, contributors, and leaders pledge to make participation in our
6 | community a harassment-free experience for everyone, regardless of age, body
7 | size, visible or invisible disability, ethnicity, sex characteristics, gender
8 | identity and expression, level of experience, education, socio-economic status,
9 | nationality, personal appearance, race, religion, or sexual identity
10 | and orientation.
11 |
12 | We pledge to act and interact in ways that contribute to an open, welcoming,
13 | diverse, inclusive, and healthy community.
14 |
15 | ## Our Standards
16 |
17 | Examples of behavior that contributes to a positive environment for our
18 | community include:
19 |
20 | * Demonstrating empathy and kindness toward other people
21 | * Being respectful of differing opinions, viewpoints, and experiences
22 | * Giving and gracefully accepting constructive feedback
23 | * Accepting responsibility and apologizing to those affected by our mistakes,
24 | and learning from the experience
25 | * Focusing on what is best not just for us as individuals, but for the
26 | overall community
27 |
28 | Examples of unacceptable behavior include:
29 |
30 | * The use of sexualized language or imagery, and sexual attention or
31 | advances of any kind
32 | * Trolling, insulting or derogatory comments, and personal or political attacks
33 | * Public or private harassment
34 | * Publishing others' private information, such as a physical or email
35 | address, without their explicit permission
36 | * Other conduct which could reasonably be considered inappropriate in a
37 | professional setting
38 |
39 | ## Enforcement Responsibilities
40 |
41 | Community leaders are responsible for clarifying and enforcing our standards of
42 | acceptable behavior and will take appropriate and fair corrective action in
43 | response to any behavior that they deem inappropriate, threatening, offensive,
44 | or harmful.
45 |
46 | Community leaders have the right and responsibility to remove, edit, or reject
47 | comments, commits, code, wiki edits, issues, and other contributions that are
48 | not aligned to this Code of Conduct, and will communicate reasons for moderation
49 | decisions when appropriate.
50 |
51 | ## Scope
52 |
53 | This Code of Conduct applies within all community spaces, and also applies when
54 | an individual is officially representing the community in public spaces.
55 | Examples of representing our community include using an official e-mail address,
56 | posting via an official social media account, or acting as an appointed
57 | representative at an online or offline event.
58 |
59 | ## Enforcement
60 |
61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
62 | reported to the community leaders responsible for enforcement at
63 | mammarnabil@students.unnes.ac.id.
64 | All complaints will be reviewed and investigated promptly and fairly.
65 |
66 | All community leaders are obligated to respect the privacy and security of the
67 | reporter of any incident.
68 |
69 | ## Enforcement Guidelines
70 |
71 | Community leaders will follow these Community Impact Guidelines in determining
72 | the consequences for any action they deem in violation of this Code of Conduct:
73 |
74 | ### 1. Correction
75 |
76 | **Community Impact**: Use of inappropriate language or other behavior deemed
77 | unprofessional or unwelcome in the community.
78 |
79 | **Consequence**: A private, written warning from community leaders, providing
80 | clarity around the nature of the violation and an explanation of why the
81 | behavior was inappropriate. A public apology may be requested.
82 |
83 | ### 2. Warning
84 |
85 | **Community Impact**: A violation through a single incident or series
86 | of actions.
87 |
88 | **Consequence**: A warning with consequences for continued behavior. No
89 | interaction with the people involved, including unsolicited interaction with
90 | those enforcing the Code of Conduct, for a specified period of time. This
91 | includes avoiding interactions in community spaces as well as external channels
92 | like social media. Violating these terms may lead to a temporary or
93 | permanent ban.
94 |
95 | ### 3. Temporary Ban
96 |
97 | **Community Impact**: A serious violation of community standards, including
98 | sustained inappropriate behavior.
99 |
100 | **Consequence**: A temporary ban from any sort of interaction or public
101 | communication with the community for a specified period of time. No public or
102 | private interaction with the people involved, including unsolicited interaction
103 | with those enforcing the Code of Conduct, is allowed during this period.
104 | Violating these terms may lead to a permanent ban.
105 |
106 | ### 4. Permanent Ban
107 |
108 | **Community Impact**: Demonstrating a pattern of violation of community
109 | standards, including sustained inappropriate behavior, harassment of an
110 | individual, or aggression toward or disparagement of classes of individuals.
111 |
112 | **Consequence**: A permanent ban from any sort of public interaction within
113 | the community.
114 |
115 | ## Attribution
116 |
117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118 | version 2.0, available at
119 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120 |
121 | Community Impact Guidelines were inspired by [Mozilla's code of conduct
122 | enforcement ladder](https://github.com/mozilla/diversity).
123 |
124 | [homepage]: https://www.contributor-covenant.org
125 |
126 | For answers to common questions about this code of conduct, see the FAQ at
127 | https://www.contributor-covenant.org/faq. Translations are available at
128 | https://www.contributor-covenant.org/translations.
129 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Muhammad Ammar Nabil
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
Dectma 🍅
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | 
12 |
13 |
14 | Fun Fact 💡
15 | Tomato seedlings have been grown in space before!
16 |
17 |
18 |
19 |
20 | ## Background 📄
21 |
22 | Tomato is one of the horticultural plants that are commonly found in Indonesia. Tomatoes are well known as plants that are susceptible to disease. These diseases can be identified by looking at the physical changes in the plant such as leaves. If it is infected with the disease, it is necessary to have proper handling so that crop failure does not occur. For this reason, this project was made to classify diseases in tomatoes based on the images of the leaves along with descriptions and treatment of the disease using machine learning. This project is called **Dectma**.
23 |
24 | ***Dectma*** (Detection Tomatoes) is a web application to detect diseases in tomatoes through image detection on tomato leaves using YoLo
25 |
26 | ## Features ⚙
27 | - 🍂 Classification of diseases in tomatoes
28 | - 📋 There is an explanation regarding the disease (such as the cause of the disease occurring)
29 | - 📌 Recommend appropriate treatment to overcome the disease
30 | - 🔎 Detect diseased tomatoes using leaf image
31 |
32 | ## Technology
33 |
34 | ### Machine Learning
35 | >
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 | ### Web Development
44 | >
45 |
46 |
47 |
48 |
49 |
50 |
51 | ### Tool
52 | >
53 |
54 |
55 |
56 |
57 | ## Dataset
58 | - Tomato Disease Multiple Sources (Qasim Khan, 2022) in [Kaggle](https://www.kaggle.com/datasets/cookiefinder/tomato-disease-multiple-sources)
59 | - Tomato leaf disease detection (Kaustubh B, 2019) in [Kaggle](https://www.kaggle.com/datasets/kaustubhb999/tomatoleaf)
60 | - Tomato Leaf Diseases Computer Vision Project (MFakhrulAM) in [Roboflow](https://universe.roboflow.com/mfakhrulamcapstone/tomato-leaf-diseases)
61 | - Tomato416_8c Image Dataset (pdata1) in [Roboflow](https://universe.roboflow.com/pdata1/tomato416_8c/dataset/3)
62 |
63 | ## How to use
64 | - Access dectma directly on [Vercel](https://dectma.vercel.app) or run `npm start` (you have to install ReactJS first)
65 | - Upload your image to classifying the disease
66 | - Wait until the prediction appear
67 | - If the prediction has appeared, read the prediction
68 |
69 | ## Contributing
70 |
71 | All code contributions - including those of people having commit access - must go through a pull request and be approved by a core developer before being merged. This is to ensure a proper review of all the code. We truly ❤️ pull requests! Feel free to open pull request.
72 |
73 | ## Security
74 | For security issues, kindly email us at [manabil](mailto:mammarnabil@students.unnes.ac.id) instead of posting a public issue on GitHub or other contributor.
75 |
76 | ## Code of Conduct
77 | This project has adopted a Code of Conduct that we expect project participants to adhere to. Please read [the code of conduct](./CODE_OF_CONDUCT.md) so that you can understand what actions will and will not be tolerated.
78 |
79 | ## License
80 | This repository is available under the [MIT License](./LICENSE).
81 |
82 | ## References
83 | - Chaerani, Reni, and Roeland E. Voorrips. “Tomato Early Blight (Alternaria Solani): The Pathogen, Genetics, and Breeding for Resistance.” Journal of General Plant Pathology, vol. 72, no. 6, 2006, pp. 335–47, https://doi.org/10.1007/s10327-006-0299-3.
84 | - Hong, Huiqun, et al. “Tomato Disease Detection and Classification by Deep Learning.” Proceedings - 2020 International Conference on Big Data, Artificial Intelligence and Internet of Things Engineering, ICBAIE 2020, 2020, pp. 25–29, https://doi.org/10.1109/ICBAIE49996.2020.00012.
85 | - Karegowda, Asha Gowda, et al. “State-of-Art Deep Learning Based Tomato Leaf Disease Detection.” Proceedings of the 3rd International Conference on Integrated Intelligent Computing Communication & Security (ICIIC 2021), vol. 4, no. Iciic, 2021, pp. 303–11, https://doi.org/10.2991/ahis.k.210913.038.
86 | - Khasawneh, Natheer, et al. “Automatic Detection of Tomato Diseases Using Deep Transfer Learning.” Applied Sciences (Switzerland), vol. 12, no. 17, 2022, https://doi.org/10.3390/app12178467.
87 | - Latin, Richard X. “Vegetable Disease Control Recommendations for 1987.” Historical Documents of the Purdue Cooperative Extension Service, 1987, https://docs.lib.purdue.edu/agext/420/.
88 | - Liu, Jun, and Xuewei Wang. “Tomato Diseases and Pests Detection Based on Improved Yolo V3 Convolutional Neural Network.” Frontiers in Plant Science, vol.11, no. June, 2020, pp. 1–12, https://doi.org/10.3389/fpls.2020.00898.
89 | - Rangarajan, Aravind Krishnaswamy, et al. “Tomato Crop Disease Classification Using Pre-Trained Deep Learning Algorithm.” Procedia Computer Science, vol.133, 2018, pp. 1040–47, https://doi.org/10.1016/j.procs.2018.07.070.
90 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Reporting Security Issues
2 |
3 | If you believe you have found a security vulnerability in this web, we encourage you to let us know right away. We will investigate all legitimate reports and do our best to quickly fix the problem.
4 |
5 | Please report it in the repo discussion and if the security vulnerability is critical please contact the contributor
6 |
7 | Thanks for your help
8 |
--------------------------------------------------------------------------------
/build/asset-manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "files": {
3 | "main.css": "/static/css/main.2c1ddbd3.css",
4 | "main.js": "/static/js/main.450b991c.js",
5 | "static/media/green.jpg": "/static/media/green.568f1ce07e66f95ed6d2.jpg",
6 | "static/media/t.png": "/static/media/t.3d4636a2229ff28867e0.png",
7 | "static/media/hj.png": "/static/media/hj.b6d280a9598fe5496df0.png",
8 | "static/media/daun1.png": "/static/media/daun1.a1ed788a04c6f4b3ab9e.png",
9 | "static/media/revicons.eot": "/static/media/revicons.a77de540a38981833f9e.eot",
10 | "static/media/revicons.ttf": "/static/media/revicons.57fd05d4ae650374c8de.ttf",
11 | "static/media/revicons.woff": "/static/media/revicons.e8746a624ed098489406.woff",
12 | "index.html": "/index.html",
13 | "main.2c1ddbd3.css.map": "/static/css/main.2c1ddbd3.css.map",
14 | "main.450b991c.js.map": "/static/js/main.450b991c.js.map"
15 | },
16 | "entrypoints": [
17 | "static/css/main.2c1ddbd3.css",
18 | "static/js/main.450b991c.js"
19 | ]
20 | }
--------------------------------------------------------------------------------
/build/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/build/favicon.ico
--------------------------------------------------------------------------------
/build/index.html:
--------------------------------------------------------------------------------
1 | Dectma | Classification and Detection Disease Tomato You need to enable JavaScript to run this app.
--------------------------------------------------------------------------------
/build/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/build/logo192.png
--------------------------------------------------------------------------------
/build/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/build/logo512.png
--------------------------------------------------------------------------------
/build/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/build/model/group1-shard1of3.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/build/model/group1-shard1of3.bin
--------------------------------------------------------------------------------
/build/model/group1-shard2of3.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/build/model/group1-shard2of3.bin
--------------------------------------------------------------------------------
/build/model/group1-shard3of3.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/build/model/group1-shard3of3.bin
--------------------------------------------------------------------------------
/build/model/model.json:
--------------------------------------------------------------------------------
1 | {"format": "layers-model", "generatedBy": "keras v2.9.0", "convertedBy": "TensorFlow.js Converter v4.1.0", "modelTopology": {"keras_version": "2.9.0", "backend": "tensorflow", "model_config": {"class_name": "Sequential", "config": {"name": "sequential", "layers": [{"class_name": "InputLayer", "config": {"batch_input_shape": [null, 224, 224, 3], "dtype": "float32", "sparse": false, "ragged": false, "name": "mobilenetv2_1.00_224_input"}}, {"class_name": "Functional", "config": {"name": "mobilenetv2_1.00_224", "layers": [{"class_name": "InputLayer", "config": {"batch_input_shape": [null, 224, 224, 3], "dtype": "float32", "sparse": false, "ragged": false, "name": "input_1"}, "name": "input_1", "inbound_nodes": []}, {"class_name": "Conv2D", "config": {"name": "Conv1", "trainable": true, "dtype": "float32", "filters": 32, "kernel_size": [3, 3], "strides": [2, 2], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "Conv1", "inbound_nodes": [[["input_1", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "bn_Conv1", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "bn_Conv1", "inbound_nodes": [[["Conv1", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "Conv1_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "Conv1_relu", "inbound_nodes": [[["bn_Conv1", 0, 0, {}]]]}, {"class_name": "DepthwiseConv2D", "config": {"name": "expanded_conv_depthwise", "trainable": true, "dtype": "float32", "kernel_size": [3, 3], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "bias_initializer": {"class_name": "Zeros", "config": {}}, "bias_regularizer": null, "activity_regularizer": null, "bias_constraint": null, "depth_multiplier": 1, "depthwise_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "depthwise_regularizer": null, "depthwise_constraint": null}, "name": "expanded_conv_depthwise", "inbound_nodes": [[["Conv1_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "expanded_conv_depthwise_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "expanded_conv_depthwise_BN", "inbound_nodes": [[["expanded_conv_depthwise", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "expanded_conv_depthwise_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "expanded_conv_depthwise_relu", "inbound_nodes": [[["expanded_conv_depthwise_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "expanded_conv_project", "trainable": true, "dtype": "float32", "filters": 16, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "expanded_conv_project", "inbound_nodes": [[["expanded_conv_depthwise_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "expanded_conv_project_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "expanded_conv_project_BN", "inbound_nodes": [[["expanded_conv_project", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_1_expand", "trainable": true, "dtype": "float32", "filters": 96, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_1_expand", "inbound_nodes": [[["expanded_conv_project_BN", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_1_expand_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_1_expand_BN", "inbound_nodes": [[["block_1_expand", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_1_expand_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_1_expand_relu", "inbound_nodes": [[["block_1_expand_BN", 0, 0, {}]]]}, {"class_name": "ZeroPadding2D", "config": {"name": "block_1_pad", "trainable": true, "dtype": "float32", "padding": [[0, 1], [0, 1]], "data_format": "channels_last"}, "name": "block_1_pad", "inbound_nodes": [[["block_1_expand_relu", 0, 0, {}]]]}, {"class_name": "DepthwiseConv2D", "config": {"name": "block_1_depthwise", "trainable": true, "dtype": "float32", "kernel_size": [3, 3], "strides": [2, 2], "padding": "valid", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "bias_initializer": {"class_name": "Zeros", "config": {}}, "bias_regularizer": null, "activity_regularizer": null, "bias_constraint": null, "depth_multiplier": 1, "depthwise_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "depthwise_regularizer": null, "depthwise_constraint": null}, "name": "block_1_depthwise", "inbound_nodes": [[["block_1_pad", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_1_depthwise_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_1_depthwise_BN", "inbound_nodes": [[["block_1_depthwise", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_1_depthwise_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_1_depthwise_relu", "inbound_nodes": [[["block_1_depthwise_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_1_project", "trainable": true, "dtype": "float32", "filters": 24, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_1_project", "inbound_nodes": [[["block_1_depthwise_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_1_project_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_1_project_BN", "inbound_nodes": [[["block_1_project", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_2_expand", "trainable": true, "dtype": "float32", "filters": 144, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_2_expand", "inbound_nodes": [[["block_1_project_BN", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_2_expand_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_2_expand_BN", "inbound_nodes": [[["block_2_expand", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_2_expand_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_2_expand_relu", "inbound_nodes": [[["block_2_expand_BN", 0, 0, {}]]]}, {"class_name": "DepthwiseConv2D", "config": {"name": "block_2_depthwise", "trainable": true, "dtype": "float32", "kernel_size": [3, 3], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "bias_initializer": {"class_name": "Zeros", "config": {}}, "bias_regularizer": null, "activity_regularizer": null, "bias_constraint": null, "depth_multiplier": 1, "depthwise_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "depthwise_regularizer": null, "depthwise_constraint": null}, "name": "block_2_depthwise", "inbound_nodes": [[["block_2_expand_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_2_depthwise_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_2_depthwise_BN", "inbound_nodes": [[["block_2_depthwise", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_2_depthwise_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_2_depthwise_relu", "inbound_nodes": [[["block_2_depthwise_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_2_project", "trainable": true, "dtype": "float32", "filters": 24, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_2_project", "inbound_nodes": [[["block_2_depthwise_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_2_project_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_2_project_BN", "inbound_nodes": [[["block_2_project", 0, 0, {}]]]}, {"class_name": "Add", "config": {"name": "block_2_add", "trainable": true, "dtype": "float32"}, "name": "block_2_add", "inbound_nodes": [[["block_1_project_BN", 0, 0, {}], ["block_2_project_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_3_expand", "trainable": true, "dtype": "float32", "filters": 144, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_3_expand", "inbound_nodes": [[["block_2_add", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_3_expand_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_3_expand_BN", "inbound_nodes": [[["block_3_expand", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_3_expand_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_3_expand_relu", "inbound_nodes": [[["block_3_expand_BN", 0, 0, {}]]]}, {"class_name": "ZeroPadding2D", "config": {"name": "block_3_pad", "trainable": true, "dtype": "float32", "padding": [[0, 1], [0, 1]], "data_format": "channels_last"}, "name": "block_3_pad", "inbound_nodes": [[["block_3_expand_relu", 0, 0, {}]]]}, {"class_name": "DepthwiseConv2D", "config": {"name": "block_3_depthwise", "trainable": true, "dtype": "float32", "kernel_size": [3, 3], "strides": [2, 2], "padding": "valid", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "bias_initializer": {"class_name": "Zeros", "config": {}}, "bias_regularizer": null, "activity_regularizer": null, "bias_constraint": null, "depth_multiplier": 1, "depthwise_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "depthwise_regularizer": null, "depthwise_constraint": null}, "name": "block_3_depthwise", "inbound_nodes": [[["block_3_pad", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_3_depthwise_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_3_depthwise_BN", "inbound_nodes": [[["block_3_depthwise", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_3_depthwise_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_3_depthwise_relu", "inbound_nodes": [[["block_3_depthwise_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_3_project", "trainable": true, "dtype": "float32", "filters": 32, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_3_project", "inbound_nodes": [[["block_3_depthwise_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_3_project_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_3_project_BN", "inbound_nodes": [[["block_3_project", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_4_expand", "trainable": true, "dtype": "float32", "filters": 192, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_4_expand", "inbound_nodes": [[["block_3_project_BN", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_4_expand_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_4_expand_BN", "inbound_nodes": [[["block_4_expand", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_4_expand_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_4_expand_relu", "inbound_nodes": [[["block_4_expand_BN", 0, 0, {}]]]}, {"class_name": "DepthwiseConv2D", "config": {"name": "block_4_depthwise", "trainable": true, "dtype": "float32", "kernel_size": [3, 3], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "bias_initializer": {"class_name": "Zeros", "config": {}}, "bias_regularizer": null, "activity_regularizer": null, "bias_constraint": null, "depth_multiplier": 1, "depthwise_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "depthwise_regularizer": null, "depthwise_constraint": null}, "name": "block_4_depthwise", "inbound_nodes": [[["block_4_expand_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_4_depthwise_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_4_depthwise_BN", "inbound_nodes": [[["block_4_depthwise", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_4_depthwise_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_4_depthwise_relu", "inbound_nodes": [[["block_4_depthwise_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_4_project", "trainable": true, "dtype": "float32", "filters": 32, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_4_project", "inbound_nodes": [[["block_4_depthwise_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_4_project_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_4_project_BN", "inbound_nodes": [[["block_4_project", 0, 0, {}]]]}, {"class_name": "Add", "config": {"name": "block_4_add", "trainable": true, "dtype": "float32"}, "name": "block_4_add", "inbound_nodes": [[["block_3_project_BN", 0, 0, {}], ["block_4_project_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_5_expand", "trainable": true, "dtype": "float32", "filters": 192, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_5_expand", "inbound_nodes": [[["block_4_add", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_5_expand_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_5_expand_BN", "inbound_nodes": [[["block_5_expand", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_5_expand_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_5_expand_relu", "inbound_nodes": [[["block_5_expand_BN", 0, 0, {}]]]}, {"class_name": "DepthwiseConv2D", "config": {"name": "block_5_depthwise", "trainable": true, "dtype": "float32", "kernel_size": [3, 3], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "bias_initializer": {"class_name": "Zeros", "config": {}}, "bias_regularizer": null, "activity_regularizer": null, "bias_constraint": null, "depth_multiplier": 1, "depthwise_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "depthwise_regularizer": null, "depthwise_constraint": null}, "name": "block_5_depthwise", "inbound_nodes": [[["block_5_expand_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_5_depthwise_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_5_depthwise_BN", "inbound_nodes": [[["block_5_depthwise", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_5_depthwise_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_5_depthwise_relu", "inbound_nodes": [[["block_5_depthwise_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_5_project", "trainable": true, "dtype": "float32", "filters": 32, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_5_project", "inbound_nodes": [[["block_5_depthwise_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_5_project_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_5_project_BN", "inbound_nodes": [[["block_5_project", 0, 0, {}]]]}, {"class_name": "Add", "config": {"name": "block_5_add", "trainable": true, "dtype": "float32"}, "name": "block_5_add", "inbound_nodes": [[["block_4_add", 0, 0, {}], ["block_5_project_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_6_expand", "trainable": true, "dtype": "float32", "filters": 192, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_6_expand", "inbound_nodes": [[["block_5_add", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_6_expand_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_6_expand_BN", "inbound_nodes": [[["block_6_expand", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_6_expand_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_6_expand_relu", "inbound_nodes": [[["block_6_expand_BN", 0, 0, {}]]]}, {"class_name": "ZeroPadding2D", "config": {"name": "block_6_pad", "trainable": true, "dtype": "float32", "padding": [[0, 1], [0, 1]], "data_format": "channels_last"}, "name": "block_6_pad", "inbound_nodes": [[["block_6_expand_relu", 0, 0, {}]]]}, {"class_name": "DepthwiseConv2D", "config": {"name": "block_6_depthwise", "trainable": true, "dtype": "float32", "kernel_size": [3, 3], "strides": [2, 2], "padding": "valid", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "bias_initializer": {"class_name": "Zeros", "config": {}}, "bias_regularizer": null, "activity_regularizer": null, "bias_constraint": null, "depth_multiplier": 1, "depthwise_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "depthwise_regularizer": null, "depthwise_constraint": null}, "name": "block_6_depthwise", "inbound_nodes": [[["block_6_pad", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_6_depthwise_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_6_depthwise_BN", "inbound_nodes": [[["block_6_depthwise", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_6_depthwise_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_6_depthwise_relu", "inbound_nodes": [[["block_6_depthwise_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_6_project", "trainable": true, "dtype": "float32", "filters": 64, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_6_project", "inbound_nodes": [[["block_6_depthwise_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_6_project_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_6_project_BN", "inbound_nodes": [[["block_6_project", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_7_expand", "trainable": true, "dtype": "float32", "filters": 384, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_7_expand", "inbound_nodes": [[["block_6_project_BN", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_7_expand_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_7_expand_BN", "inbound_nodes": [[["block_7_expand", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_7_expand_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_7_expand_relu", "inbound_nodes": [[["block_7_expand_BN", 0, 0, {}]]]}, {"class_name": "DepthwiseConv2D", "config": {"name": "block_7_depthwise", "trainable": true, "dtype": "float32", "kernel_size": [3, 3], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "bias_initializer": {"class_name": "Zeros", "config": {}}, "bias_regularizer": null, "activity_regularizer": null, "bias_constraint": null, "depth_multiplier": 1, "depthwise_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "depthwise_regularizer": null, "depthwise_constraint": null}, "name": "block_7_depthwise", "inbound_nodes": [[["block_7_expand_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_7_depthwise_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_7_depthwise_BN", "inbound_nodes": [[["block_7_depthwise", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_7_depthwise_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_7_depthwise_relu", "inbound_nodes": [[["block_7_depthwise_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_7_project", "trainable": true, "dtype": "float32", "filters": 64, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_7_project", "inbound_nodes": [[["block_7_depthwise_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_7_project_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_7_project_BN", "inbound_nodes": [[["block_7_project", 0, 0, {}]]]}, {"class_name": "Add", "config": {"name": "block_7_add", "trainable": true, "dtype": "float32"}, "name": "block_7_add", "inbound_nodes": [[["block_6_project_BN", 0, 0, {}], ["block_7_project_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_8_expand", "trainable": true, "dtype": "float32", "filters": 384, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_8_expand", "inbound_nodes": [[["block_7_add", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_8_expand_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_8_expand_BN", "inbound_nodes": [[["block_8_expand", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_8_expand_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_8_expand_relu", "inbound_nodes": [[["block_8_expand_BN", 0, 0, {}]]]}, {"class_name": "DepthwiseConv2D", "config": {"name": "block_8_depthwise", "trainable": true, "dtype": "float32", "kernel_size": [3, 3], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "bias_initializer": {"class_name": "Zeros", "config": {}}, "bias_regularizer": null, "activity_regularizer": null, "bias_constraint": null, "depth_multiplier": 1, "depthwise_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "depthwise_regularizer": null, "depthwise_constraint": null}, "name": "block_8_depthwise", "inbound_nodes": [[["block_8_expand_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_8_depthwise_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_8_depthwise_BN", "inbound_nodes": [[["block_8_depthwise", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_8_depthwise_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_8_depthwise_relu", "inbound_nodes": [[["block_8_depthwise_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_8_project", "trainable": true, "dtype": "float32", "filters": 64, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_8_project", "inbound_nodes": [[["block_8_depthwise_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_8_project_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_8_project_BN", "inbound_nodes": [[["block_8_project", 0, 0, {}]]]}, {"class_name": "Add", "config": {"name": "block_8_add", "trainable": true, "dtype": "float32"}, "name": "block_8_add", "inbound_nodes": [[["block_7_add", 0, 0, {}], ["block_8_project_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_9_expand", "trainable": true, "dtype": "float32", "filters": 384, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_9_expand", "inbound_nodes": [[["block_8_add", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_9_expand_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_9_expand_BN", "inbound_nodes": [[["block_9_expand", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_9_expand_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_9_expand_relu", "inbound_nodes": [[["block_9_expand_BN", 0, 0, {}]]]}, {"class_name": "DepthwiseConv2D", "config": {"name": "block_9_depthwise", "trainable": true, "dtype": "float32", "kernel_size": [3, 3], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "bias_initializer": {"class_name": "Zeros", "config": {}}, "bias_regularizer": null, "activity_regularizer": null, "bias_constraint": null, "depth_multiplier": 1, "depthwise_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "depthwise_regularizer": null, "depthwise_constraint": null}, "name": "block_9_depthwise", "inbound_nodes": [[["block_9_expand_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_9_depthwise_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_9_depthwise_BN", "inbound_nodes": [[["block_9_depthwise", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_9_depthwise_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_9_depthwise_relu", "inbound_nodes": [[["block_9_depthwise_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_9_project", "trainable": true, "dtype": "float32", "filters": 64, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_9_project", "inbound_nodes": [[["block_9_depthwise_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_9_project_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_9_project_BN", "inbound_nodes": [[["block_9_project", 0, 0, {}]]]}, {"class_name": "Add", "config": {"name": "block_9_add", "trainable": true, "dtype": "float32"}, "name": "block_9_add", "inbound_nodes": [[["block_8_add", 0, 0, {}], ["block_9_project_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_10_expand", "trainable": true, "dtype": "float32", "filters": 384, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_10_expand", "inbound_nodes": [[["block_9_add", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_10_expand_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_10_expand_BN", "inbound_nodes": [[["block_10_expand", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_10_expand_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_10_expand_relu", "inbound_nodes": [[["block_10_expand_BN", 0, 0, {}]]]}, {"class_name": "DepthwiseConv2D", "config": {"name": "block_10_depthwise", "trainable": true, "dtype": "float32", "kernel_size": [3, 3], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "bias_initializer": {"class_name": "Zeros", "config": {}}, "bias_regularizer": null, "activity_regularizer": null, "bias_constraint": null, "depth_multiplier": 1, "depthwise_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "depthwise_regularizer": null, "depthwise_constraint": null}, "name": "block_10_depthwise", "inbound_nodes": [[["block_10_expand_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_10_depthwise_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_10_depthwise_BN", "inbound_nodes": [[["block_10_depthwise", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_10_depthwise_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_10_depthwise_relu", "inbound_nodes": [[["block_10_depthwise_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_10_project", "trainable": true, "dtype": "float32", "filters": 96, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_10_project", "inbound_nodes": [[["block_10_depthwise_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_10_project_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_10_project_BN", "inbound_nodes": [[["block_10_project", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_11_expand", "trainable": true, "dtype": "float32", "filters": 576, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_11_expand", "inbound_nodes": [[["block_10_project_BN", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_11_expand_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_11_expand_BN", "inbound_nodes": [[["block_11_expand", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_11_expand_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_11_expand_relu", "inbound_nodes": [[["block_11_expand_BN", 0, 0, {}]]]}, {"class_name": "DepthwiseConv2D", "config": {"name": "block_11_depthwise", "trainable": true, "dtype": "float32", "kernel_size": [3, 3], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "bias_initializer": {"class_name": "Zeros", "config": {}}, "bias_regularizer": null, "activity_regularizer": null, "bias_constraint": null, "depth_multiplier": 1, "depthwise_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "depthwise_regularizer": null, "depthwise_constraint": null}, "name": "block_11_depthwise", "inbound_nodes": [[["block_11_expand_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_11_depthwise_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_11_depthwise_BN", "inbound_nodes": [[["block_11_depthwise", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_11_depthwise_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_11_depthwise_relu", "inbound_nodes": [[["block_11_depthwise_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_11_project", "trainable": true, "dtype": "float32", "filters": 96, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_11_project", "inbound_nodes": [[["block_11_depthwise_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_11_project_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_11_project_BN", "inbound_nodes": [[["block_11_project", 0, 0, {}]]]}, {"class_name": "Add", "config": {"name": "block_11_add", "trainable": true, "dtype": "float32"}, "name": "block_11_add", "inbound_nodes": [[["block_10_project_BN", 0, 0, {}], ["block_11_project_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_12_expand", "trainable": true, "dtype": "float32", "filters": 576, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_12_expand", "inbound_nodes": [[["block_11_add", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_12_expand_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_12_expand_BN", "inbound_nodes": [[["block_12_expand", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_12_expand_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_12_expand_relu", "inbound_nodes": [[["block_12_expand_BN", 0, 0, {}]]]}, {"class_name": "DepthwiseConv2D", "config": {"name": "block_12_depthwise", "trainable": true, "dtype": "float32", "kernel_size": [3, 3], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "bias_initializer": {"class_name": "Zeros", "config": {}}, "bias_regularizer": null, "activity_regularizer": null, "bias_constraint": null, "depth_multiplier": 1, "depthwise_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "depthwise_regularizer": null, "depthwise_constraint": null}, "name": "block_12_depthwise", "inbound_nodes": [[["block_12_expand_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_12_depthwise_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_12_depthwise_BN", "inbound_nodes": [[["block_12_depthwise", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_12_depthwise_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_12_depthwise_relu", "inbound_nodes": [[["block_12_depthwise_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_12_project", "trainable": true, "dtype": "float32", "filters": 96, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_12_project", "inbound_nodes": [[["block_12_depthwise_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_12_project_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_12_project_BN", "inbound_nodes": [[["block_12_project", 0, 0, {}]]]}, {"class_name": "Add", "config": {"name": "block_12_add", "trainable": true, "dtype": "float32"}, "name": "block_12_add", "inbound_nodes": [[["block_11_add", 0, 0, {}], ["block_12_project_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_13_expand", "trainable": true, "dtype": "float32", "filters": 576, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_13_expand", "inbound_nodes": [[["block_12_add", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_13_expand_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_13_expand_BN", "inbound_nodes": [[["block_13_expand", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_13_expand_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_13_expand_relu", "inbound_nodes": [[["block_13_expand_BN", 0, 0, {}]]]}, {"class_name": "ZeroPadding2D", "config": {"name": "block_13_pad", "trainable": true, "dtype": "float32", "padding": [[0, 1], [0, 1]], "data_format": "channels_last"}, "name": "block_13_pad", "inbound_nodes": [[["block_13_expand_relu", 0, 0, {}]]]}, {"class_name": "DepthwiseConv2D", "config": {"name": "block_13_depthwise", "trainable": true, "dtype": "float32", "kernel_size": [3, 3], "strides": [2, 2], "padding": "valid", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "bias_initializer": {"class_name": "Zeros", "config": {}}, "bias_regularizer": null, "activity_regularizer": null, "bias_constraint": null, "depth_multiplier": 1, "depthwise_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "depthwise_regularizer": null, "depthwise_constraint": null}, "name": "block_13_depthwise", "inbound_nodes": [[["block_13_pad", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_13_depthwise_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_13_depthwise_BN", "inbound_nodes": [[["block_13_depthwise", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_13_depthwise_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_13_depthwise_relu", "inbound_nodes": [[["block_13_depthwise_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_13_project", "trainable": true, "dtype": "float32", "filters": 160, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_13_project", "inbound_nodes": [[["block_13_depthwise_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_13_project_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_13_project_BN", "inbound_nodes": [[["block_13_project", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_14_expand", "trainable": true, "dtype": "float32", "filters": 960, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_14_expand", "inbound_nodes": [[["block_13_project_BN", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_14_expand_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_14_expand_BN", "inbound_nodes": [[["block_14_expand", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_14_expand_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_14_expand_relu", "inbound_nodes": [[["block_14_expand_BN", 0, 0, {}]]]}, {"class_name": "DepthwiseConv2D", "config": {"name": "block_14_depthwise", "trainable": true, "dtype": "float32", "kernel_size": [3, 3], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "bias_initializer": {"class_name": "Zeros", "config": {}}, "bias_regularizer": null, "activity_regularizer": null, "bias_constraint": null, "depth_multiplier": 1, "depthwise_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "depthwise_regularizer": null, "depthwise_constraint": null}, "name": "block_14_depthwise", "inbound_nodes": [[["block_14_expand_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_14_depthwise_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_14_depthwise_BN", "inbound_nodes": [[["block_14_depthwise", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_14_depthwise_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_14_depthwise_relu", "inbound_nodes": [[["block_14_depthwise_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_14_project", "trainable": true, "dtype": "float32", "filters": 160, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_14_project", "inbound_nodes": [[["block_14_depthwise_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_14_project_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_14_project_BN", "inbound_nodes": [[["block_14_project", 0, 0, {}]]]}, {"class_name": "Add", "config": {"name": "block_14_add", "trainable": true, "dtype": "float32"}, "name": "block_14_add", "inbound_nodes": [[["block_13_project_BN", 0, 0, {}], ["block_14_project_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_15_expand", "trainable": true, "dtype": "float32", "filters": 960, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_15_expand", "inbound_nodes": [[["block_14_add", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_15_expand_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_15_expand_BN", "inbound_nodes": [[["block_15_expand", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_15_expand_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_15_expand_relu", "inbound_nodes": [[["block_15_expand_BN", 0, 0, {}]]]}, {"class_name": "DepthwiseConv2D", "config": {"name": "block_15_depthwise", "trainable": true, "dtype": "float32", "kernel_size": [3, 3], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "bias_initializer": {"class_name": "Zeros", "config": {}}, "bias_regularizer": null, "activity_regularizer": null, "bias_constraint": null, "depth_multiplier": 1, "depthwise_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "depthwise_regularizer": null, "depthwise_constraint": null}, "name": "block_15_depthwise", "inbound_nodes": [[["block_15_expand_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_15_depthwise_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_15_depthwise_BN", "inbound_nodes": [[["block_15_depthwise", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_15_depthwise_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_15_depthwise_relu", "inbound_nodes": [[["block_15_depthwise_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_15_project", "trainable": true, "dtype": "float32", "filters": 160, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_15_project", "inbound_nodes": [[["block_15_depthwise_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_15_project_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_15_project_BN", "inbound_nodes": [[["block_15_project", 0, 0, {}]]]}, {"class_name": "Add", "config": {"name": "block_15_add", "trainable": true, "dtype": "float32"}, "name": "block_15_add", "inbound_nodes": [[["block_14_add", 0, 0, {}], ["block_15_project_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_16_expand", "trainable": true, "dtype": "float32", "filters": 960, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_16_expand", "inbound_nodes": [[["block_15_add", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_16_expand_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_16_expand_BN", "inbound_nodes": [[["block_16_expand", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_16_expand_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_16_expand_relu", "inbound_nodes": [[["block_16_expand_BN", 0, 0, {}]]]}, {"class_name": "DepthwiseConv2D", "config": {"name": "block_16_depthwise", "trainable": true, "dtype": "float32", "kernel_size": [3, 3], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "bias_initializer": {"class_name": "Zeros", "config": {}}, "bias_regularizer": null, "activity_regularizer": null, "bias_constraint": null, "depth_multiplier": 1, "depthwise_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "depthwise_regularizer": null, "depthwise_constraint": null}, "name": "block_16_depthwise", "inbound_nodes": [[["block_16_expand_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_16_depthwise_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_16_depthwise_BN", "inbound_nodes": [[["block_16_depthwise", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "block_16_depthwise_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "block_16_depthwise_relu", "inbound_nodes": [[["block_16_depthwise_BN", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "block_16_project", "trainable": true, "dtype": "float32", "filters": 320, "kernel_size": [1, 1], "strides": [1, 1], "padding": "same", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "block_16_project", "inbound_nodes": [[["block_16_depthwise_relu", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "block_16_project_BN", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "block_16_project_BN", "inbound_nodes": [[["block_16_project", 0, 0, {}]]]}, {"class_name": "Conv2D", "config": {"name": "Conv_1", "trainable": true, "dtype": "float32", "filters": 1280, "kernel_size": [1, 1], "strides": [1, 1], "padding": "valid", "data_format": "channels_last", "dilation_rate": [1, 1], "groups": 1, "activation": "linear", "use_bias": false, "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}, "name": "Conv_1", "inbound_nodes": [[["block_16_project_BN", 0, 0, {}]]]}, {"class_name": "BatchNormalization", "config": {"name": "Conv_1_bn", "trainable": true, "dtype": "float32", "axis": [3], "momentum": 0.999, "epsilon": 0.001, "center": true, "scale": true, "beta_initializer": {"class_name": "Zeros", "config": {}}, "gamma_initializer": {"class_name": "Ones", "config": {}}, "moving_mean_initializer": {"class_name": "Zeros", "config": {}}, "moving_variance_initializer": {"class_name": "Ones", "config": {}}, "beta_regularizer": null, "gamma_regularizer": null, "beta_constraint": null, "gamma_constraint": null}, "name": "Conv_1_bn", "inbound_nodes": [[["Conv_1", 0, 0, {}]]]}, {"class_name": "ReLU", "config": {"name": "out_relu", "trainable": true, "dtype": "float32", "max_value": 6.0, "negative_slope": 0.0, "threshold": 0.0}, "name": "out_relu", "inbound_nodes": [[["Conv_1_bn", 0, 0, {}]]]}], "input_layers": [["input_1", 0, 0]], "output_layers": [["out_relu", 0, 0]]}}, {"class_name": "GlobalAveragePooling2D", "config": {"name": "global_average_pooling2d", "trainable": true, "dtype": "float32", "data_format": "channels_last", "keepdims": false}}, {"class_name": "Dense", "config": {"name": "dense", "trainable": true, "dtype": "float32", "units": 256, "activation": "relu", "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}}, {"class_name": "Dropout", "config": {"name": "dropout", "trainable": true, "dtype": "float32", "rate": 0.4, "noise_shape": null, "seed": 123}}, {"class_name": "Dense", "config": {"name": "dense_1", "trainable": true, "dtype": "float32", "units": 10, "activation": "softmax", "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": "categorical_crossentropy", "metrics": [[{"class_name": "MeanMetricWrapper", "config": {"name": "accuracy", "dtype": "float32", "fn": "categorical_accuracy"}}]], "weighted_metrics": null, "loss_weights": null, "optimizer_config": {"class_name": "Adam", "config": {"name": "Adam", "learning_rate": 9.999999747378752e-06, "decay": 0.0, "beta_1": 0.8999999761581421, "beta_2": 0.9990000128746033, "epsilon": 1e-07, "amsgrad": false}}}}, "weightsManifest": [{"paths": ["group1-shard1of3.bin", "group1-shard2of3.bin", "group1-shard3of3.bin"], "weights": [{"name": "dense/kernel", "shape": [1280, 256], "dtype": "float32"}, {"name": "dense/bias", "shape": [256], "dtype": "float32"}, {"name": "dense_1/kernel", "shape": [256, 10], "dtype": "float32"}, {"name": "dense_1/bias", "shape": [10], "dtype": "float32"}, {"name": "Conv1/kernel", "shape": [3, 3, 3, 32], "dtype": "float32"}, {"name": "bn_Conv1/gamma", "shape": [32], "dtype": "float32"}, {"name": "bn_Conv1/beta", "shape": [32], "dtype": "float32"}, {"name": "expanded_conv_depthwise/depthwise_kernel", "shape": [3, 3, 32, 1], "dtype": "float32"}, {"name": "expanded_conv_depthwise_BN/gamma", "shape": [32], "dtype": "float32"}, {"name": "expanded_conv_depthwise_BN/beta", "shape": [32], "dtype": "float32"}, {"name": "expanded_conv_project/kernel", "shape": [1, 1, 32, 16], "dtype": "float32"}, {"name": "expanded_conv_project_BN/gamma", "shape": [16], "dtype": "float32"}, {"name": "expanded_conv_project_BN/beta", "shape": [16], "dtype": "float32"}, {"name": "block_1_expand/kernel", "shape": [1, 1, 16, 96], "dtype": "float32"}, {"name": "block_1_expand_BN/gamma", "shape": [96], "dtype": "float32"}, {"name": "block_1_expand_BN/beta", "shape": [96], "dtype": "float32"}, {"name": "block_1_depthwise/depthwise_kernel", "shape": [3, 3, 96, 1], "dtype": "float32"}, {"name": "block_1_depthwise_BN/gamma", "shape": [96], "dtype": "float32"}, {"name": "block_1_depthwise_BN/beta", "shape": [96], "dtype": "float32"}, {"name": "block_1_project/kernel", "shape": [1, 1, 96, 24], "dtype": "float32"}, {"name": "block_1_project_BN/gamma", "shape": [24], "dtype": "float32"}, {"name": "block_1_project_BN/beta", "shape": [24], "dtype": "float32"}, {"name": "block_2_expand/kernel", "shape": [1, 1, 24, 144], "dtype": "float32"}, {"name": "block_2_expand_BN/gamma", "shape": [144], "dtype": "float32"}, {"name": "block_2_expand_BN/beta", "shape": [144], "dtype": "float32"}, {"name": "block_2_depthwise/depthwise_kernel", "shape": [3, 3, 144, 1], "dtype": "float32"}, {"name": "block_2_depthwise_BN/gamma", "shape": [144], "dtype": "float32"}, {"name": "block_2_depthwise_BN/beta", "shape": [144], "dtype": "float32"}, {"name": "block_2_project/kernel", "shape": [1, 1, 144, 24], "dtype": "float32"}, {"name": "block_2_project_BN/gamma", "shape": [24], "dtype": "float32"}, {"name": "block_2_project_BN/beta", "shape": [24], "dtype": "float32"}, {"name": "block_3_expand/kernel", "shape": [1, 1, 24, 144], "dtype": "float32"}, {"name": "block_3_expand_BN/gamma", "shape": [144], "dtype": "float32"}, {"name": "block_3_expand_BN/beta", "shape": [144], "dtype": "float32"}, {"name": "block_3_depthwise/depthwise_kernel", "shape": [3, 3, 144, 1], "dtype": "float32"}, {"name": "block_3_depthwise_BN/gamma", "shape": [144], "dtype": "float32"}, {"name": "block_3_depthwise_BN/beta", "shape": [144], "dtype": "float32"}, {"name": "block_3_project/kernel", "shape": [1, 1, 144, 32], "dtype": "float32"}, {"name": "block_3_project_BN/gamma", "shape": [32], "dtype": "float32"}, {"name": "block_3_project_BN/beta", "shape": [32], "dtype": "float32"}, {"name": "block_4_expand/kernel", "shape": [1, 1, 32, 192], "dtype": "float32"}, {"name": "block_4_expand_BN/gamma", "shape": [192], "dtype": "float32"}, {"name": "block_4_expand_BN/beta", "shape": [192], "dtype": "float32"}, {"name": "block_4_depthwise/depthwise_kernel", "shape": [3, 3, 192, 1], "dtype": "float32"}, {"name": "block_4_depthwise_BN/gamma", "shape": [192], "dtype": "float32"}, {"name": "block_4_depthwise_BN/beta", "shape": [192], "dtype": "float32"}, {"name": "block_4_project/kernel", "shape": [1, 1, 192, 32], "dtype": "float32"}, {"name": "block_4_project_BN/gamma", "shape": [32], "dtype": "float32"}, {"name": "block_4_project_BN/beta", "shape": [32], "dtype": "float32"}, {"name": "block_5_expand/kernel", "shape": [1, 1, 32, 192], "dtype": "float32"}, {"name": "block_5_expand_BN/gamma", "shape": [192], "dtype": "float32"}, {"name": "block_5_expand_BN/beta", "shape": [192], "dtype": "float32"}, {"name": "block_5_depthwise/depthwise_kernel", "shape": [3, 3, 192, 1], "dtype": "float32"}, {"name": "block_5_depthwise_BN/gamma", "shape": [192], "dtype": "float32"}, {"name": "block_5_depthwise_BN/beta", "shape": [192], "dtype": "float32"}, {"name": "block_5_project/kernel", "shape": [1, 1, 192, 32], "dtype": "float32"}, {"name": "block_5_project_BN/gamma", "shape": [32], "dtype": "float32"}, {"name": "block_5_project_BN/beta", "shape": [32], "dtype": "float32"}, {"name": "block_6_expand/kernel", "shape": [1, 1, 32, 192], "dtype": "float32"}, {"name": "block_6_expand_BN/gamma", "shape": [192], "dtype": "float32"}, {"name": "block_6_expand_BN/beta", "shape": [192], "dtype": "float32"}, {"name": "block_6_depthwise/depthwise_kernel", "shape": [3, 3, 192, 1], "dtype": "float32"}, {"name": "block_6_depthwise_BN/gamma", "shape": [192], "dtype": "float32"}, {"name": "block_6_depthwise_BN/beta", "shape": [192], "dtype": "float32"}, {"name": "block_6_project/kernel", "shape": [1, 1, 192, 64], "dtype": "float32"}, {"name": "block_6_project_BN/gamma", "shape": [64], "dtype": "float32"}, {"name": "block_6_project_BN/beta", "shape": [64], "dtype": "float32"}, {"name": "block_7_expand/kernel", "shape": [1, 1, 64, 384], "dtype": "float32"}, {"name": "block_7_expand_BN/gamma", "shape": [384], "dtype": "float32"}, {"name": "block_7_expand_BN/beta", "shape": [384], "dtype": "float32"}, {"name": "block_7_depthwise/depthwise_kernel", "shape": [3, 3, 384, 1], "dtype": "float32"}, {"name": "block_7_depthwise_BN/gamma", "shape": [384], "dtype": "float32"}, {"name": "block_7_depthwise_BN/beta", "shape": [384], "dtype": "float32"}, {"name": "block_7_project/kernel", "shape": [1, 1, 384, 64], "dtype": "float32"}, {"name": "block_7_project_BN/gamma", "shape": [64], "dtype": "float32"}, {"name": "block_7_project_BN/beta", "shape": [64], "dtype": "float32"}, {"name": "block_8_expand/kernel", "shape": [1, 1, 64, 384], "dtype": "float32"}, {"name": "block_8_expand_BN/gamma", "shape": [384], "dtype": "float32"}, {"name": "block_8_expand_BN/beta", "shape": [384], "dtype": "float32"}, {"name": "block_8_depthwise/depthwise_kernel", "shape": [3, 3, 384, 1], "dtype": "float32"}, {"name": "block_8_depthwise_BN/gamma", "shape": [384], "dtype": "float32"}, {"name": "block_8_depthwise_BN/beta", "shape": [384], "dtype": "float32"}, {"name": "block_8_project/kernel", "shape": [1, 1, 384, 64], "dtype": "float32"}, {"name": "block_8_project_BN/gamma", "shape": [64], "dtype": "float32"}, {"name": "block_8_project_BN/beta", "shape": [64], "dtype": "float32"}, {"name": "block_9_expand/kernel", "shape": [1, 1, 64, 384], "dtype": "float32"}, {"name": "block_9_expand_BN/gamma", "shape": [384], "dtype": "float32"}, {"name": "block_9_expand_BN/beta", "shape": [384], "dtype": "float32"}, {"name": "block_9_depthwise/depthwise_kernel", "shape": [3, 3, 384, 1], "dtype": "float32"}, {"name": "block_9_depthwise_BN/gamma", "shape": [384], "dtype": "float32"}, {"name": "block_9_depthwise_BN/beta", "shape": [384], "dtype": "float32"}, {"name": "block_9_project/kernel", "shape": [1, 1, 384, 64], "dtype": "float32"}, {"name": "block_9_project_BN/gamma", "shape": [64], "dtype": "float32"}, {"name": "block_9_project_BN/beta", "shape": [64], "dtype": "float32"}, {"name": "block_10_expand/kernel", "shape": [1, 1, 64, 384], "dtype": "float32"}, {"name": "block_10_expand_BN/gamma", "shape": [384], "dtype": "float32"}, {"name": "block_10_expand_BN/beta", "shape": [384], "dtype": "float32"}, {"name": "block_10_depthwise/depthwise_kernel", "shape": [3, 3, 384, 1], "dtype": "float32"}, {"name": "block_10_depthwise_BN/gamma", "shape": [384], "dtype": "float32"}, {"name": "block_10_depthwise_BN/beta", "shape": [384], "dtype": "float32"}, {"name": "block_10_project/kernel", "shape": [1, 1, 384, 96], "dtype": "float32"}, {"name": "block_10_project_BN/gamma", "shape": [96], "dtype": "float32"}, {"name": "block_10_project_BN/beta", "shape": [96], "dtype": "float32"}, {"name": "block_11_expand/kernel", "shape": [1, 1, 96, 576], "dtype": "float32"}, {"name": "block_11_expand_BN/gamma", "shape": [576], "dtype": "float32"}, {"name": "block_11_expand_BN/beta", "shape": [576], "dtype": "float32"}, {"name": "block_11_depthwise/depthwise_kernel", "shape": [3, 3, 576, 1], "dtype": "float32"}, {"name": "block_11_depthwise_BN/gamma", "shape": [576], "dtype": "float32"}, {"name": "block_11_depthwise_BN/beta", "shape": [576], "dtype": "float32"}, {"name": "block_11_project/kernel", "shape": [1, 1, 576, 96], "dtype": "float32"}, {"name": "block_11_project_BN/gamma", "shape": [96], "dtype": "float32"}, {"name": "block_11_project_BN/beta", "shape": [96], "dtype": "float32"}, {"name": "block_12_expand/kernel", "shape": [1, 1, 96, 576], "dtype": "float32"}, {"name": "block_12_expand_BN/gamma", "shape": [576], "dtype": "float32"}, {"name": "block_12_expand_BN/beta", "shape": [576], "dtype": "float32"}, {"name": "block_12_depthwise/depthwise_kernel", "shape": [3, 3, 576, 1], "dtype": "float32"}, {"name": "block_12_depthwise_BN/gamma", "shape": [576], "dtype": "float32"}, {"name": "block_12_depthwise_BN/beta", "shape": [576], "dtype": "float32"}, {"name": "block_12_project/kernel", "shape": [1, 1, 576, 96], "dtype": "float32"}, {"name": "block_12_project_BN/gamma", "shape": [96], "dtype": "float32"}, {"name": "block_12_project_BN/beta", "shape": [96], "dtype": "float32"}, {"name": "block_13_expand/kernel", "shape": [1, 1, 96, 576], "dtype": "float32"}, {"name": "block_13_expand_BN/gamma", "shape": [576], "dtype": "float32"}, {"name": "block_13_expand_BN/beta", "shape": [576], "dtype": "float32"}, {"name": "block_13_depthwise/depthwise_kernel", "shape": [3, 3, 576, 1], "dtype": "float32"}, {"name": "block_13_depthwise_BN/gamma", "shape": [576], "dtype": "float32"}, {"name": "block_13_depthwise_BN/beta", "shape": [576], "dtype": "float32"}, {"name": "block_13_project/kernel", "shape": [1, 1, 576, 160], "dtype": "float32"}, {"name": "block_13_project_BN/gamma", "shape": [160], "dtype": "float32"}, {"name": "block_13_project_BN/beta", "shape": [160], "dtype": "float32"}, {"name": "block_14_expand/kernel", "shape": [1, 1, 160, 960], "dtype": "float32"}, {"name": "block_14_expand_BN/gamma", "shape": [960], "dtype": "float32"}, {"name": "block_14_expand_BN/beta", "shape": [960], "dtype": "float32"}, {"name": "block_14_depthwise/depthwise_kernel", "shape": [3, 3, 960, 1], "dtype": "float32"}, {"name": "block_14_depthwise_BN/gamma", "shape": [960], "dtype": "float32"}, {"name": "block_14_depthwise_BN/beta", "shape": [960], "dtype": "float32"}, {"name": "block_14_project/kernel", "shape": [1, 1, 960, 160], "dtype": "float32"}, {"name": "block_14_project_BN/gamma", "shape": [160], "dtype": "float32"}, {"name": "block_14_project_BN/beta", "shape": [160], "dtype": "float32"}, {"name": "block_15_expand/kernel", "shape": [1, 1, 160, 960], "dtype": "float32"}, {"name": "block_15_expand_BN/gamma", "shape": [960], "dtype": "float32"}, {"name": "block_15_expand_BN/beta", "shape": [960], "dtype": "float32"}, {"name": "block_15_depthwise/depthwise_kernel", "shape": [3, 3, 960, 1], "dtype": "float32"}, {"name": "block_15_depthwise_BN/gamma", "shape": [960], "dtype": "float32"}, {"name": "block_15_depthwise_BN/beta", "shape": [960], "dtype": "float32"}, {"name": "block_15_project/kernel", "shape": [1, 1, 960, 160], "dtype": "float32"}, {"name": "block_15_project_BN/gamma", "shape": [160], "dtype": "float32"}, {"name": "block_15_project_BN/beta", "shape": [160], "dtype": "float32"}, {"name": "block_16_expand/kernel", "shape": [1, 1, 160, 960], "dtype": "float32"}, {"name": "block_16_expand_BN/gamma", "shape": [960], "dtype": "float32"}, {"name": "block_16_expand_BN/beta", "shape": [960], "dtype": "float32"}, {"name": "block_16_depthwise/depthwise_kernel", "shape": [3, 3, 960, 1], "dtype": "float32"}, {"name": "block_16_depthwise_BN/gamma", "shape": [960], "dtype": "float32"}, {"name": "block_16_depthwise_BN/beta", "shape": [960], "dtype": "float32"}, {"name": "block_16_project/kernel", "shape": [1, 1, 960, 320], "dtype": "float32"}, {"name": "block_16_project_BN/gamma", "shape": [320], "dtype": "float32"}, {"name": "block_16_project_BN/beta", "shape": [320], "dtype": "float32"}, {"name": "Conv_1/kernel", "shape": [1, 1, 320, 1280], "dtype": "float32"}, {"name": "Conv_1_bn/gamma", "shape": [1280], "dtype": "float32"}, {"name": "Conv_1_bn/beta", "shape": [1280], "dtype": "float32"}, {"name": "bn_Conv1/moving_mean", "shape": [32], "dtype": "float32"}, {"name": "bn_Conv1/moving_variance", "shape": [32], "dtype": "float32"}, {"name": "expanded_conv_depthwise_BN/moving_mean", "shape": [32], "dtype": "float32"}, {"name": "expanded_conv_depthwise_BN/moving_variance", "shape": [32], "dtype": "float32"}, {"name": "expanded_conv_project_BN/moving_mean", "shape": [16], "dtype": "float32"}, {"name": "expanded_conv_project_BN/moving_variance", "shape": [16], "dtype": "float32"}, {"name": "block_1_expand_BN/moving_mean", "shape": [96], "dtype": "float32"}, {"name": "block_1_expand_BN/moving_variance", "shape": [96], "dtype": "float32"}, {"name": "block_1_depthwise_BN/moving_mean", "shape": [96], "dtype": "float32"}, {"name": "block_1_depthwise_BN/moving_variance", "shape": [96], "dtype": "float32"}, {"name": "block_1_project_BN/moving_mean", "shape": [24], "dtype": "float32"}, {"name": "block_1_project_BN/moving_variance", "shape": [24], "dtype": "float32"}, {"name": "block_2_expand_BN/moving_mean", "shape": [144], "dtype": "float32"}, {"name": "block_2_expand_BN/moving_variance", "shape": [144], "dtype": "float32"}, {"name": "block_2_depthwise_BN/moving_mean", "shape": [144], "dtype": "float32"}, {"name": "block_2_depthwise_BN/moving_variance", "shape": [144], "dtype": "float32"}, {"name": "block_2_project_BN/moving_mean", "shape": [24], "dtype": "float32"}, {"name": "block_2_project_BN/moving_variance", "shape": [24], "dtype": "float32"}, {"name": "block_3_expand_BN/moving_mean", "shape": [144], "dtype": "float32"}, {"name": "block_3_expand_BN/moving_variance", "shape": [144], "dtype": "float32"}, {"name": "block_3_depthwise_BN/moving_mean", "shape": [144], "dtype": "float32"}, {"name": "block_3_depthwise_BN/moving_variance", "shape": [144], "dtype": "float32"}, {"name": "block_3_project_BN/moving_mean", "shape": [32], "dtype": "float32"}, {"name": "block_3_project_BN/moving_variance", "shape": [32], "dtype": "float32"}, {"name": "block_4_expand_BN/moving_mean", "shape": [192], "dtype": "float32"}, {"name": "block_4_expand_BN/moving_variance", "shape": [192], "dtype": "float32"}, {"name": "block_4_depthwise_BN/moving_mean", "shape": [192], "dtype": "float32"}, {"name": "block_4_depthwise_BN/moving_variance", "shape": [192], "dtype": "float32"}, {"name": "block_4_project_BN/moving_mean", "shape": [32], "dtype": "float32"}, {"name": "block_4_project_BN/moving_variance", "shape": [32], "dtype": "float32"}, {"name": "block_5_expand_BN/moving_mean", "shape": [192], "dtype": "float32"}, {"name": "block_5_expand_BN/moving_variance", "shape": [192], "dtype": "float32"}, {"name": "block_5_depthwise_BN/moving_mean", "shape": [192], "dtype": "float32"}, {"name": "block_5_depthwise_BN/moving_variance", "shape": [192], "dtype": "float32"}, {"name": "block_5_project_BN/moving_mean", "shape": [32], "dtype": "float32"}, {"name": "block_5_project_BN/moving_variance", "shape": [32], "dtype": "float32"}, {"name": "block_6_expand_BN/moving_mean", "shape": [192], "dtype": "float32"}, {"name": "block_6_expand_BN/moving_variance", "shape": [192], "dtype": "float32"}, {"name": "block_6_depthwise_BN/moving_mean", "shape": [192], "dtype": "float32"}, {"name": "block_6_depthwise_BN/moving_variance", "shape": [192], "dtype": "float32"}, {"name": "block_6_project_BN/moving_mean", "shape": [64], "dtype": "float32"}, {"name": "block_6_project_BN/moving_variance", "shape": [64], "dtype": "float32"}, {"name": "block_7_expand_BN/moving_mean", "shape": [384], "dtype": "float32"}, {"name": "block_7_expand_BN/moving_variance", "shape": [384], "dtype": "float32"}, {"name": "block_7_depthwise_BN/moving_mean", "shape": [384], "dtype": "float32"}, {"name": "block_7_depthwise_BN/moving_variance", "shape": [384], "dtype": "float32"}, {"name": "block_7_project_BN/moving_mean", "shape": [64], "dtype": "float32"}, {"name": "block_7_project_BN/moving_variance", "shape": [64], "dtype": "float32"}, {"name": "block_8_expand_BN/moving_mean", "shape": [384], "dtype": "float32"}, {"name": "block_8_expand_BN/moving_variance", "shape": [384], "dtype": "float32"}, {"name": "block_8_depthwise_BN/moving_mean", "shape": [384], "dtype": "float32"}, {"name": "block_8_depthwise_BN/moving_variance", "shape": [384], "dtype": "float32"}, {"name": "block_8_project_BN/moving_mean", "shape": [64], "dtype": "float32"}, {"name": "block_8_project_BN/moving_variance", "shape": [64], "dtype": "float32"}, {"name": "block_9_expand_BN/moving_mean", "shape": [384], "dtype": "float32"}, {"name": "block_9_expand_BN/moving_variance", "shape": [384], "dtype": "float32"}, {"name": "block_9_depthwise_BN/moving_mean", "shape": [384], "dtype": "float32"}, {"name": "block_9_depthwise_BN/moving_variance", "shape": [384], "dtype": "float32"}, {"name": "block_9_project_BN/moving_mean", "shape": [64], "dtype": "float32"}, {"name": "block_9_project_BN/moving_variance", "shape": [64], "dtype": "float32"}, {"name": "block_10_expand_BN/moving_mean", "shape": [384], "dtype": "float32"}, {"name": "block_10_expand_BN/moving_variance", "shape": [384], "dtype": "float32"}, {"name": "block_10_depthwise_BN/moving_mean", "shape": [384], "dtype": "float32"}, {"name": "block_10_depthwise_BN/moving_variance", "shape": [384], "dtype": "float32"}, {"name": "block_10_project_BN/moving_mean", "shape": [96], "dtype": "float32"}, {"name": "block_10_project_BN/moving_variance", "shape": [96], "dtype": "float32"}, {"name": "block_11_expand_BN/moving_mean", "shape": [576], "dtype": "float32"}, {"name": "block_11_expand_BN/moving_variance", "shape": [576], "dtype": "float32"}, {"name": "block_11_depthwise_BN/moving_mean", "shape": [576], "dtype": "float32"}, {"name": "block_11_depthwise_BN/moving_variance", "shape": [576], "dtype": "float32"}, {"name": "block_11_project_BN/moving_mean", "shape": [96], "dtype": "float32"}, {"name": "block_11_project_BN/moving_variance", "shape": [96], "dtype": "float32"}, {"name": "block_12_expand_BN/moving_mean", "shape": [576], "dtype": "float32"}, {"name": "block_12_expand_BN/moving_variance", "shape": [576], "dtype": "float32"}, {"name": "block_12_depthwise_BN/moving_mean", "shape": [576], "dtype": "float32"}, {"name": "block_12_depthwise_BN/moving_variance", "shape": [576], "dtype": "float32"}, {"name": "block_12_project_BN/moving_mean", "shape": [96], "dtype": "float32"}, {"name": "block_12_project_BN/moving_variance", "shape": [96], "dtype": "float32"}, {"name": "block_13_expand_BN/moving_mean", "shape": [576], "dtype": "float32"}, {"name": "block_13_expand_BN/moving_variance", "shape": [576], "dtype": "float32"}, {"name": "block_13_depthwise_BN/moving_mean", "shape": [576], "dtype": "float32"}, {"name": "block_13_depthwise_BN/moving_variance", "shape": [576], "dtype": "float32"}, {"name": "block_13_project_BN/moving_mean", "shape": [160], "dtype": "float32"}, {"name": "block_13_project_BN/moving_variance", "shape": [160], "dtype": "float32"}, {"name": "block_14_expand_BN/moving_mean", "shape": [960], "dtype": "float32"}, {"name": "block_14_expand_BN/moving_variance", "shape": [960], "dtype": "float32"}, {"name": "block_14_depthwise_BN/moving_mean", "shape": [960], "dtype": "float32"}, {"name": "block_14_depthwise_BN/moving_variance", "shape": [960], "dtype": "float32"}, {"name": "block_14_project_BN/moving_mean", "shape": [160], "dtype": "float32"}, {"name": "block_14_project_BN/moving_variance", "shape": [160], "dtype": "float32"}, {"name": "block_15_expand_BN/moving_mean", "shape": [960], "dtype": "float32"}, {"name": "block_15_expand_BN/moving_variance", "shape": [960], "dtype": "float32"}, {"name": "block_15_depthwise_BN/moving_mean", "shape": [960], "dtype": "float32"}, {"name": "block_15_depthwise_BN/moving_variance", "shape": [960], "dtype": "float32"}, {"name": "block_15_project_BN/moving_mean", "shape": [160], "dtype": "float32"}, {"name": "block_15_project_BN/moving_variance", "shape": [160], "dtype": "float32"}, {"name": "block_16_expand_BN/moving_mean", "shape": [960], "dtype": "float32"}, {"name": "block_16_expand_BN/moving_variance", "shape": [960], "dtype": "float32"}, {"name": "block_16_depthwise_BN/moving_mean", "shape": [960], "dtype": "float32"}, {"name": "block_16_depthwise_BN/moving_variance", "shape": [960], "dtype": "float32"}, {"name": "block_16_project_BN/moving_mean", "shape": [320], "dtype": "float32"}, {"name": "block_16_project_BN/moving_variance", "shape": [320], "dtype": "float32"}, {"name": "Conv_1_bn/moving_mean", "shape": [1280], "dtype": "float32"}, {"name": "Conv_1_bn/moving_variance", "shape": [1280], "dtype": "float32"}]}]}
--------------------------------------------------------------------------------
/build/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/build/static/js/main.450b991c.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*!
2 | Copyright (c) 2018 Jed Watson.
3 | Licensed under the MIT License (MIT), see
4 | http://jedwatson.github.io/classnames
5 | */
6 |
7 | /*! exports provided: default */
8 |
9 | /*! no static exports found */
10 |
11 | /*! react */
12 |
13 | /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
14 |
15 | /*!******************************!*\
16 | !*** ./src/react-webcam.tsx ***!
17 | \******************************/
18 |
19 | /*!**************************************************************************************!*\
20 | !*** external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"} ***!
21 | \**************************************************************************************/
22 |
23 | /**
24 | * @license
25 | * Copyright 2017 Google LLC. All Rights Reserved.
26 | * Licensed under the Apache License, Version 2.0 (the "License");
27 | * you may not use this file except in compliance with the License.
28 | * You may obtain a copy of the License at
29 | *
30 | * http://www.apache.org/licenses/LICENSE-2.0
31 | *
32 | * Unless required by applicable law or agreed to in writing, software
33 | * distributed under the License is distributed on an "AS IS" BASIS,
34 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
35 | * See the License for the specific language governing permissions and
36 | * limitations under the License.
37 | * =============================================================================
38 | */
39 |
40 | /**
41 | * @license
42 | * Copyright 2018 Google LLC
43 | *
44 | * Use of this source code is governed by an MIT-style
45 | * license that can be found in the LICENSE file or at
46 | * https://opensource.org/licenses/MIT.
47 | * =============================================================================
48 | */
49 |
50 | /**
51 | * @license
52 | * Copyright 2018 Google LLC. All Rights Reserved.
53 | * Licensed under the Apache License, Version 2.0 (the "License");
54 | * you may not use this file except in compliance with the License.
55 | * You may obtain a copy of the License at
56 | *
57 | * http://www.apache.org/licenses/LICENSE-2.0
58 | *
59 | * Unless required by applicable law or agreed to in writing, software
60 | * distributed under the License is distributed on an "AS IS" BASIS,
61 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
62 | * See the License for the specific language governing permissions and
63 | * limitations under the License.
64 | *
65 | * =============================================================================
66 | */
67 |
68 | /**
69 | * @license
70 | * Copyright 2018 Google LLC. All Rights Reserved.
71 | * Licensed under the Apache License, Version 2.0 (the "License");
72 | * you may not use this file except in compliance with the License.
73 | * You may obtain a copy of the License at
74 | *
75 | * http://www.apache.org/licenses/LICENSE-2.0
76 | *
77 | * Unless required by applicable law or agreed to in writing, software
78 | * distributed under the License is distributed on an "AS IS" BASIS,
79 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
80 | * See the License for the specific language governing permissions and
81 | * limitations under the License.
82 | * =============================================================================
83 | */
84 |
85 | /**
86 | * @license
87 | * Copyright 2019 Google LLC
88 | *
89 | * Use of this source code is governed by an MIT-style
90 | * license that can be found in the LICENSE file or at
91 | * https://opensource.org/licenses/MIT.
92 | * =============================================================================
93 | */
94 |
95 | /**
96 | * @license
97 | * Copyright 2019 Google LLC. All Rights Reserved.
98 | * Licensed under the Apache License, Version 2.0 (the "License");
99 | * you may not use this file except in compliance with the License.
100 | * You may obtain a copy of the License at
101 | *
102 | * http://www.apache.org/licenses/LICENSE-2.0
103 | *
104 | * Unless required by applicable law or agreed to in writing, software
105 | * distributed under the License is distributed on an "AS IS" BASIS,
106 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
107 | * See the License for the specific language governing permissions and
108 | * limitations under the License.
109 | * =============================================================================
110 | */
111 |
112 | /**
113 | * @license
114 | * Copyright 2020 Google Inc. All Rights Reserved.
115 | * Licensed under the Apache License, Version 2.0 (the "License");
116 | * you may not use this file except in compliance with the License.
117 | * You may obtain a copy of the License at
118 | *
119 | * http://www.apache.org/licenses/LICENSE-2.0
120 | *
121 | * Unless required by applicable law or agreed to in writing, software
122 | * distributed under the License is distributed on an "AS IS" BASIS,
123 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
124 | * See the License for the specific language governing permissions and
125 | * limitations under the License.
126 | * =============================================================================
127 | */
128 |
129 | /**
130 | * @license
131 | * Copyright 2020 Google LLC
132 | *
133 | * Use of this source code is governed by an MIT-style
134 | * license that can be found in the LICENSE file or at
135 | * https://opensource.org/licenses/MIT.
136 | * =============================================================================
137 | */
138 |
139 | /**
140 | * @license
141 | * Copyright 2020 Google LLC. All Rights Reserved.
142 | * Licensed under the Apache License, Version 2.0 (the "License");
143 | * you may not use this file except in compliance with the License.
144 | * You may obtain a copy of the License at
145 | *
146 | * http://www.apache.org/licenses/LICENSE-2.0
147 | *
148 | * Unless required by applicable law or agreed to in writing, software
149 | * distributed under the License is distributed on an "AS IS" BASIS,
150 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
151 | * See the License for the specific language governing permissions and
152 | * limitations under the License.
153 | * =============================================================================
154 | */
155 |
156 | /**
157 | * @license
158 | * Copyright 2020 Google LLC. All Rights Reserved.
159 | * Licensed under the Apache License, Version 2.0 (the License);
160 | * you may not use this file except in compliance with the License.
161 | * You may obtain a copy of the License at
162 | *
163 | * http://www.apache.org/licenses/LICENSE-2.0
164 | *
165 | * Unless required by applicable law or agreed to in writing, software
166 | * distributed under the License is distributed on an AS IS BASIS,
167 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
168 | * See the License for the specific language governing permissions and
169 | * limitations under the License.
170 | * =============================================================================
171 | */
172 |
173 | /**
174 | * @license
175 | * Copyright 2021 Google LLC. All Rights Reserved.
176 | * Licensed under the Apache License, Version 2.0 (the "License");
177 | * you may not use this file except in compliance with the License.
178 | * You may obtain a copy of the License at
179 | *
180 | * http://www.apache.org/licenses/LICENSE-2.0
181 | *
182 | * Unless required by applicable law or agreed to in writing, software
183 | * distributed under the License is distributed on an "AS IS" BASIS,
184 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
185 | * See the License for the specific language governing permissions and
186 | * limitations under the License.
187 | * =============================================================================
188 | */
189 |
190 | /**
191 | * @license
192 | * Copyright 2021 Google LLC. All Rights Reserved.
193 | * Licensed under the Apache License, Version 2.0 (the "License");
194 | * you may not use this file except in compliance with the License.
195 | * You may obtain a copy of the License at
196 | *
197 | * https://www.apache.org/licenses/LICENSE-2.0
198 | *
199 | * Unless required by applicable law or agreed to in writing, software
200 | * distributed under the License is distributed on an "AS IS" BASIS,
201 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202 | * See the License for the specific language governing permissions and
203 | * limitations under the License.
204 | * =============================================================================
205 | */
206 |
207 | /**
208 | * @license
209 | * Copyright 2022 CodeSmith LLC
210 | *
211 | * Use of this source code is governed by an MIT-style
212 | * license that can be found in the LICENSE file or at
213 | * https://opensource.org/licenses/MIT.
214 | * =============================================================================
215 | */
216 |
217 | /**
218 | * @license
219 | * Copyright 2022 Google Inc. All Rights Reserved.
220 | * Licensed under the Apache License, Version 2.0 (the "License");
221 | * you may not use this file except in compliance with the License.
222 | * You may obtain a copy of the License at
223 | *
224 | * http://www.apache.org/licenses/LICENSE-2.0
225 | *
226 | * Unless required by applicable law or agreed to in writing, software
227 | * distributed under the License is distributed on an "AS IS" BASIS,
228 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
229 | * See the License for the specific language governing permissions and
230 | * limitations under the License.
231 | * =============================================================================
232 | */
233 |
234 | /**
235 | * @license
236 | * Copyright 2022 Google LLC.
237 | * Licensed under the Apache License, Version 2.0 (the "License");
238 | * you may not use this file except in compliance with the License.
239 | * You may obtain a copy of the License at
240 | *
241 | * http://www.apache.org/licenses/LICENSE-2.0
242 | *
243 | * Unless required by applicable law or agreed to in writing, software
244 | * distributed under the License is distributed on an "AS IS" BASIS,
245 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
246 | * See the License for the specific language governing permissions and
247 | * limitations under the License.
248 | * =============================================================================
249 | */
250 |
251 | /**
252 | * @license
253 | * Copyright 2022 Google LLC. All Rights Reserved.
254 | * Licensed under the Apache License, Version 2.0 (the "License");
255 | * you may not use this file except in compliance with the License.
256 | * You may obtain a copy of the License at
257 | *
258 | * http://www.apache.org/licenses/LICENSE-2.0
259 | *
260 | * Unless required by applicable law or agreed to in writing, software
261 | * distributed under the License is distributed on an "AS IS" BASIS,
262 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
263 | * See the License for the specific language governing permissions and
264 | * limitations under the License.
265 | * =============================================================================
266 | */
267 |
268 | /**
269 | * @license
270 | * Copyright 2022 Google LLC. All Rights Reserved.
271 | * Licensed under the Apache License, Version 2.0 (the 'License');
272 | * you may not use this file except in compliance with the License.
273 | * You may obtain a copy of the License at
274 | *
275 | * http://www.apache.org/licenses/LICENSE-2.0
276 | *
277 | * Unless required by applicable law or agreed to in writing, software
278 | * distributed under the License is distributed on an 'AS IS' BASIS,
279 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
280 | * See the License for the specific language governing permissions and
281 | * limitations under the License.
282 | * =============================================================================
283 | */
284 |
285 | /**
286 | * @license React
287 | * react-dom.production.min.js
288 | *
289 | * Copyright (c) Facebook, Inc. and its affiliates.
290 | *
291 | * This source code is licensed under the MIT license found in the
292 | * LICENSE file in the root directory of this source tree.
293 | */
294 |
295 | /**
296 | * @license React
297 | * react-jsx-runtime.production.min.js
298 | *
299 | * Copyright (c) Facebook, Inc. and its affiliates.
300 | *
301 | * This source code is licensed under the MIT license found in the
302 | * LICENSE file in the root directory of this source tree.
303 | */
304 |
305 | /**
306 | * @license React
307 | * react.production.min.js
308 | *
309 | * Copyright (c) Facebook, Inc. and its affiliates.
310 | *
311 | * This source code is licensed under the MIT license found in the
312 | * LICENSE file in the root directory of this source tree.
313 | */
314 |
315 | /**
316 | * @license React
317 | * scheduler.production.min.js
318 | *
319 | * Copyright (c) Facebook, Inc. and its affiliates.
320 | *
321 | * This source code is licensed under the MIT license found in the
322 | * LICENSE file in the root directory of this source tree.
323 | */
324 |
325 | /**
326 | * @remix-run/router v1.0.5
327 | *
328 | * Copyright (c) Remix Software Inc.
329 | *
330 | * This source code is licensed under the MIT license found in the
331 | * LICENSE.md file in the root directory of this source tree.
332 | *
333 | * @license MIT
334 | */
335 |
336 | /** @license See the LICENSE file. */
337 |
--------------------------------------------------------------------------------
/build/static/media/daun1.a1ed788a04c6f4b3ab9e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/build/static/media/daun1.a1ed788a04c6f4b3ab9e.png
--------------------------------------------------------------------------------
/build/static/media/green.568f1ce07e66f95ed6d2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/build/static/media/green.568f1ce07e66f95ed6d2.jpg
--------------------------------------------------------------------------------
/build/static/media/hj.b6d280a9598fe5496df0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/build/static/media/hj.b6d280a9598fe5496df0.png
--------------------------------------------------------------------------------
/build/static/media/revicons.57fd05d4ae650374c8de.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/build/static/media/revicons.57fd05d4ae650374c8de.ttf
--------------------------------------------------------------------------------
/build/static/media/revicons.a77de540a38981833f9e.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/build/static/media/revicons.a77de540a38981833f9e.eot
--------------------------------------------------------------------------------
/build/static/media/revicons.e8746a624ed098489406.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/build/static/media/revicons.e8746a624ed098489406.woff
--------------------------------------------------------------------------------
/build/static/media/t.3d4636a2229ff28867e0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/build/static/media/t.3d4636a2229ff28867e0.png
--------------------------------------------------------------------------------
/documentation/README.md:
--------------------------------------------------------------------------------
1 | # Documentation
2 |
3 | This folder contain of detail documentation such as:
4 | - API Endpoint
5 | - Wireframe UI
6 | - Mockup UI
7 | - Machine Learning Method
8 |
9 | ## API Endpoints
10 |
11 |
12 |
13 | ## Wireframe UI
14 |
15 |
16 |
17 | ## Mockup UI
18 |
19 |
20 |
21 | ## Machine Learning Method
22 |
23 |
--------------------------------------------------------------------------------
/model/object_detection/model.pt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/model/object_detection/model.pt
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "dectma",
3 | "version": "0.0.1",
4 | "description": "A web application to detect diseases in tomatoes through image detection on tomato leaves using YoLo",
5 | "main": "index.js",
6 | "scripts": {
7 | "start": "react-scripts start",
8 | "build": "react-scripts build",
9 | "test": "react-scripts test",
10 | "eject": "react-scripts eject"
11 | },
12 | "repository": {
13 | "type": "git",
14 | "url": "git+https://github.com/manabil/Dectma.git"
15 | },
16 | "keywords": [
17 | "machine-learning",
18 | "artificial-intelligence",
19 | "CNN",
20 | "web",
21 | "flask",
22 | "object-detection"
23 | ],
24 | "author": "manabil",
25 | "license": "MIT",
26 | "dependencies": {
27 | "@tensorflow/tfjs": "^4.1.0",
28 | "@testing-library/jest-dom": "^5.16.5",
29 | "@testing-library/react": "^13.4.0",
30 | "@testing-library/user-event": "^13.5.0",
31 | "bootstrap": "^5.2.3",
32 | "daisyui": "^2.42.1",
33 | "react": "^18.2.0",
34 | "react-bootstrap": "^2.7.0",
35 | "react-dom": "^18.2.0",
36 | "react-multi-carousel": "^2.8.2",
37 | "react-router-dom": "^6.4.5",
38 | "react-scripts": "5.0.1",
39 | "react-webcam": "^7.0.1",
40 | "tata-js": "^0.1.5",
41 | "web-vitals": "^2.1.4"
42 | },
43 | "bugs": {
44 | "url": "https://github.com/manabil/Dectma/issues"
45 | },
46 | "eslintConfig": {
47 | "extends": [
48 | "react-app",
49 | "react-app/jest"
50 | ]
51 | },
52 | "browserslist": {
53 | "production": [
54 | ">0.2%",
55 | "not dead",
56 | "not op_mini all"
57 | ],
58 | "development": [
59 | "last 1 chrome version",
60 | "last 1 firefox version",
61 | "last 1 safari version"
62 | ]
63 | },
64 | "devDependencies": {
65 | "autoprefixer": "^10.4.13",
66 | "babel-plugin-react-html-attrs": "^3.0.5",
67 | "postcss": "^8.4.19",
68 | "prettier": "^2.8.1",
69 | "prettier-plugin-tailwindcss": "^0.2.0",
70 | "tailwindcss": "^3.2.4"
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | autoprefixer: {},
5 | ...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {}),
6 | },
7 | };
8 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/public/favicon.ico
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
14 |
15 |
16 | Dectma | Classification and Detection Disease Tomato
17 |
18 |
19 | You need to enable JavaScript to run this app.
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/public/logo192.png
--------------------------------------------------------------------------------
/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/public/logo512.png
--------------------------------------------------------------------------------
/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/public/model/group1-shard1of3.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/public/model/group1-shard1of3.bin
--------------------------------------------------------------------------------
/public/model/group1-shard2of3.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/public/model/group1-shard2of3.bin
--------------------------------------------------------------------------------
/public/model/group1-shard3of3.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/public/model/group1-shard3of3.bin
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/src/App.jsx:
--------------------------------------------------------------------------------
1 | import { Classify } from './pages/Classify';
2 | import { Homepage } from './pages/Homepage';
3 |
4 | function App() {
5 | let component = null;
6 |
7 | switch (window.location.pathname) {
8 | case '/':
9 | component = ;
10 | break;
11 | case '/classify':
12 | component = ;
13 | break;
14 | default:
15 | component = ;
16 | break;
17 | }
18 | return {component}
;
19 | }
20 |
21 | export default App;
22 |
--------------------------------------------------------------------------------
/src/assets/ammar.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/src/assets/ammar.jpeg
--------------------------------------------------------------------------------
/src/assets/daun1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/src/assets/daun1.png
--------------------------------------------------------------------------------
/src/assets/fakhrul.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/src/assets/fakhrul.jpg
--------------------------------------------------------------------------------
/src/assets/galan.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/src/assets/galan.jpg
--------------------------------------------------------------------------------
/src/assets/green.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/src/assets/green.jpg
--------------------------------------------------------------------------------
/src/assets/hj.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/src/assets/hj.png
--------------------------------------------------------------------------------
/src/assets/inoyy.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/src/assets/inoyy.jpeg
--------------------------------------------------------------------------------
/src/assets/t.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/src/assets/t.png
--------------------------------------------------------------------------------
/src/assets/tanaman.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/manabil/Dectma/51938d101d4457d75101ef631498814e7ad33e96/src/assets/tanaman.jpg
--------------------------------------------------------------------------------
/src/components/About.jsx:
--------------------------------------------------------------------------------
1 | import { Container } from 'react-bootstrap';
2 | import Carousel from "react-multi-carousel";
3 | import "react-multi-carousel/lib/styles.css";
4 | import daun from "../assets/daun1.png";
5 | import user1 from "../assets/inoyy.jpeg";
6 | import user2 from "../assets/galan.jpg";
7 | import user3 from "../assets/fakhrul.jpg";
8 | import user4 from "../assets/ammar.jpeg";
9 |
10 | export const About = () => {
11 | const responsive = {
12 | superLargeDesktop: {
13 | // the naming can be any, depends on you.
14 | breakpoint: { max: 4000, min: 3000 },
15 | items: 5,
16 | },
17 | desktop: {
18 | breakpoint: { max: 3000, min: 1024 },
19 | items: 4,
20 | },
21 | tablet: {
22 | breakpoint: { max: 1024, min: 464 },
23 | items: 2,
24 | },
25 | mobile: {
26 | breakpoint: { max: 464, min: 0 },
27 | items: 1,
28 | },
29 | };
30 | return (
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
About
39 |
40 | Tomat merupakan salah satu tanaman hortikultura yang banyak
41 | ditemukan di Indonesia. Tomat terkenal sebagai tanaman yang rentan
42 | terhadap penyakit. Penyakit ini dapat dikenali dengan melihat
43 | perubahan fisik pada tanaman seperti daun. Jika sudah terjangkit
44 | penyakit tersebut, perlu adanya penanganan yang tepat agar tidak
45 | terjadi gagal panen. Untuk itu dibuatlah proyek ini untuk
46 | mengklasifikasikan penyakit pada tomat berdasarkan gambar daun
47 | beserta deskripsi dan pengobatan penyakit tersebut menggunakan
48 | machine learning. Proyek ini disebut Dectma.
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
61 |
62 |
63 |
Sutrisno
64 |
65 |
66 |
67 |
Muhammad Ammar Nabil
68 |
69 |
70 |
71 |
Muhammad Fakhrul Amin
72 |
73 |
74 |
75 |
Galan Ahmad Defanka
76 |
77 |
78 |
79 |
80 |
81 |
82 | );
83 | };
84 |
--------------------------------------------------------------------------------
/src/components/DescCard.jsx:
--------------------------------------------------------------------------------
1 | import { diseases } from '../data/diseases';
2 |
3 | export const DescCard = ({ progressState, result }) => {
4 | return (
5 |
6 |
7 |
8 | {progressState === 'idle' ? (
9 |
14 |
15 |
16 | ) : progressState === 'process' ? (
17 |
22 |
23 |
24 | ) : progressState === 'error' ? (
25 |
30 |
31 |
32 | ) : (
33 | ''
34 | )}
35 |
36 |
37 |
38 | {progressState === 'idle'
39 | ? 'Your prediction goes here'
40 | : progressState === 'process'
41 | ? 'Predicting Image'
42 | : progressState === 'error'
43 | ? 'Error to Predict, please try again or check your file'
44 | : diseases[result[0]].name}
45 | 70 ? 'text-green-600' : 'text-orange-600') +
48 | ' text-xs'
49 | }
50 | >
51 | {progressState === 'finish' ? result[1] + ' %' : ''}
52 |
53 |
54 |
55 |
56 | {progressState === 'finish' ? '🦠 Penyebab' : ''}
57 |
58 |
{progressState === 'finish' ? diseases[result[0]].cause : ''}
59 |
60 |
61 |
62 | {progressState === 'finish' ? '⁉ Gejala' : ''}
63 |
64 |
65 | {progressState === 'finish' ? diseases[result[0]].symptoms : ''}
66 |
67 |
68 |
69 |
70 | {progressState === 'finish' ? '🛡 Pencegahan' : ''}
71 |
72 | {progressState === 'finish'
73 | ? diseases[result[0]].prevention.map((a, i) => {
74 | return (
75 | <>
76 |
79 | >
80 | );
81 | })
82 | : ''}
83 |
84 |
85 |
86 | {progressState === 'finish' ? '💊 Penanganan' : ''}
87 |
88 | {progressState === 'finish'
89 | ? diseases[result[0]].treatment.map((a, i) => {
90 | return (
91 | <>
92 |
95 | >
96 | );
97 | })
98 | : ''}
99 |
100 |
101 |
102 | {progressState === 'finish' ? '📄 Referensi' : ''}
103 |
104 | {progressState === 'finish'
105 | ? diseases[result[0]].ref.map((a, i) => {
106 | return (
107 | <>
108 |
115 | >
116 | );
117 | })
118 | : ''}
119 |
120 |
121 |
122 |
123 | );
124 | };
125 |
--------------------------------------------------------------------------------
/src/components/Features.jsx:
--------------------------------------------------------------------------------
1 | import Carousel from 'react-multi-carousel';
2 | import meter1 from '../assets/hj.png';
3 | import 'react-multi-carousel/lib/styles.css';
4 |
5 | export const Features = () => {
6 | const responsive = {
7 | superLargeDesktop: {
8 | // the naming can be any, depends on you.
9 | breakpoint: { max: 4000, min: 3000 },
10 | items: 5,
11 | },
12 | desktop: {
13 | breakpoint: { max: 3000, min: 1024 },
14 | items: 3,
15 | },
16 | tablet: {
17 | breakpoint: { max: 1024, min: 464 },
18 | items: 2,
19 | },
20 | mobile: {
21 | breakpoint: { max: 464, min: 0 },
22 | items: 1,
23 | },
24 | };
25 | return (
26 |
27 |
28 |
29 |
30 |
31 |
Features
32 |
37 |
38 |
39 |
Deteksi Penyakit tomat menggunakan gambar daun
40 |
41 |
42 |
43 |
Klasifikasi penyakit pada tomat
44 |
45 |
46 |
47 |
Penjelasan terkait penyakit
48 |
49 |
50 |
51 |
52 | Merekomendasikan pengobatan yang tepat untuk mengatasi
53 | penyakit
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 | );
63 | };
64 |
--------------------------------------------------------------------------------
/src/components/Footer.jsx:
--------------------------------------------------------------------------------
1 | import { Container, Row, Col } from 'react-bootstrap';
2 |
3 | export const Footer = () => {
4 | return (
5 |
6 |
7 |
8 |
9 | Dectma
10 |
11 |
12 |
17 | Copyright 2022. All Rights Reserved
18 |
19 |
20 |
21 |
22 | );
23 | };
24 |
--------------------------------------------------------------------------------
/src/components/Home.jsx:
--------------------------------------------------------------------------------
1 | import { Container } from 'react-bootstrap';
2 | import vector from '../assets/t.png';
3 |
4 | export const Home = () => {
5 | return (
6 |
7 |
8 |
9 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | );
23 | };
24 |
--------------------------------------------------------------------------------
/src/components/ImageCard.jsx:
--------------------------------------------------------------------------------
1 | import Webcam from 'react-webcam';
2 |
3 | export const ImageCard = ({
4 | handleInput,
5 | imgPreview,
6 | handleClick,
7 | progressState,
8 | useWebcam,
9 | handleWebcam,
10 | webcamRef,
11 | canvasRef,
12 | loadWebcam,
13 | }) => {
14 | const videoConstraints = {
15 | width: 640,
16 | height: 480,
17 | };
18 |
19 | return (
20 |
21 |
22 | {useWebcam ? (
23 | <>
24 |
25 |
31 |
35 |
36 | >
37 | ) : (
38 | <>
39 |
40 | {!imgPreview ? (
41 |
45 |
46 |
47 | ) : (
48 |
49 | )}
50 |
51 | >
52 | )}
53 |
54 | {!useWebcam && (
55 | <>
56 | {!imgPreview && (
57 |
Upload Your Image
58 | )}
59 |
64 |
67 | >
68 | )}
69 |
70 | {useWebcam && loadWebcam && (
71 | <>
72 |
73 | Load the Model
74 |
75 | >
76 | )}
77 |
78 | Use Camera{' '}
79 |
80 |
85 |
86 |
87 |
88 |
89 |
95 |
96 | {!useWebcam && (
97 | <>
98 |
99 |
107 | {progressState === 'process' ? 'Classifying' : 'Classify'}
108 |
109 |
110 | >
111 | )}
112 |
113 |
114 |
115 | );
116 | };
117 |
--------------------------------------------------------------------------------
/src/components/Navbar.jsx:
--------------------------------------------------------------------------------
1 | export const Navbar = () => {
2 | return (
3 |
4 |
5 |
8 |
9 |
10 |
16 |
22 |
23 |
24 |
25 |
26 |
27 | );
28 | };
29 |
--------------------------------------------------------------------------------
/src/components/Navigation.jsx:
--------------------------------------------------------------------------------
1 | import { Container, Nav, Navbar } from 'react-bootstrap';
2 | import { BrowserRouter as Router } from 'react-router-dom';
3 | import { useState, useEffect } from 'react';
4 |
5 | export const Navigation = () => {
6 | const [activeLink, setActiveLink] = useState('home');
7 | const [scrolled, setScrolled] = useState(false);
8 |
9 | useEffect(() => {
10 | const onScroll = () => {
11 | if (window.scrollY > 50) {
12 | setScrolled(true);
13 | } else {
14 | setScrolled(false);
15 | }
16 | };
17 |
18 | window.addEventListener('scroll', onScroll);
19 |
20 | return () => window.removeEventListener('scroll', onScroll);
21 | }, []);
22 |
23 | const onUpdateActiveLink = (value) => {
24 | setActiveLink(value);
25 | };
26 |
27 | return (
28 |
29 |
30 |
31 | Dectma
32 |
33 |
34 |
35 | onUpdateActiveLink('home')}
41 | >
42 | Home
43 |
44 |
45 | onUpdateActiveLink('about')}
51 | >
52 | About
53 |
54 |
55 | onUpdateActiveLink('features')}
63 | >
64 | Features
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 | );
73 | };
74 |
--------------------------------------------------------------------------------
/src/data/diseases.js:
--------------------------------------------------------------------------------
1 | export const diseases = [
2 | {
3 | id: 0,
4 | slug: 'bacterial_spot',
5 | name: 'Bacterial Spot',
6 | symptoms:
7 | 'Bintik-bintik basah air berwarna coklat tua muncul di daun. Kemudian bintik-bintik ini menjadi kehitaman, dan akhirnya jaringan yang terkena rontok meninggalkan lubang di daun. Bintik-bintik hitam timbul yang kemudian menjadi bintik bintik seperti keropeng muncul bersamaan pada buah.',
8 | cause: 'Bakteri Xanthomonas Perforans',
9 | prevention: [
10 | 'Hanya gunakan benih dan tanaman bersertifikat bebas penyakit',
11 | 'Hindari area yang ditanami paprika atau tomat selama setahun sebelumnya',
12 | 'Hindari penyiraman di atas tanaman dengan menggunakan air irigasi',
13 | 'Pangkas tanaman untuk meningkatkan sirkulasi udara',
14 | 'Lakukan sanitasi yang baik seperti membajak jerami',
15 | 'Lakukan pengendalian gulma',
16 | ],
17 | treatment: [
18 | 'Penyemprotan dengan fungisida tembaga akan memberikan kontrol penyakit bakteri yang cukup baik',
19 | ],
20 | ref: [
21 | {
22 | name_ref: 'HGIC Clemson',
23 | link: 'Https://hgic.clemson.edu/factsheet/tomato-diseases-disorders/',
24 | },
25 | {
26 | name_ref: 'Aggie Horticulture',
27 | link: 'Https://aggie-horticulture.tamu.edu/vegetable/problem-solvers/tomato-problem-solver/leaves/',
28 | },
29 | ],
30 | },
31 | {
32 | id: 1,
33 | slug: 'early_blight',
34 | name: 'Early Blight',
35 | symptoms:
36 | 'Bercak besar tidak beraturan berwarna hitam, kematian jaringan yang dikelilingi oleh area kuning yang lebih besar. Bintik-bintik daun memiliki penampilan pita konsentris yang khas (cangkang tiram atau mata banteng).',
37 | cause: 'Jamur Alternaria Linariae (A. solani)',
38 | prevention: [
39 | 'Gunakan kultivar tomat yang tahan atau toleran',
40 | 'Gunakan benih bebas patogen',
41 | 'Jangan menanam tanaman sakit di lapangan',
42 | 'Gunakan rotasi tanaman, basmi gulma tanaman tomat',
43 | 'Pupuk tanaman dengan benar',
44 | 'Jangan basahi dedaunan tomat dengan air irigasi',
45 | 'Uji tanah kebun setiap tahun dan pertahankan tingkat potasium yang cukup',
46 | ],
47 | treatment: [
48 | 'Penyemprotan dengan fungisida chlorothalonil, mancozeb, atau fungisida copper dapat mengendalikan penyakit ini',
49 | 'Pangkas dan buang cabang dan daun bagian bawah yang terinfeksi.',
50 | ],
51 | ref: [
52 | {
53 | name_ref: 'HGIC Clemson',
54 | link: 'Https://hgic.clemson.edu/factsheet/tomato-diseases-disorders/',
55 | },
56 | {
57 | name_ref: 'Aggie Horticulture',
58 | link: 'Https://aggie-horticulture.tamu.edu/vegetable/problem-solvers/tomato-problem-solver/leaves/',
59 | },
60 | ],
61 | },
62 | {
63 | id: 2,
64 | slug: 'late_blight',
65 | name: 'Late Blight',
66 | symptoms:
67 | 'Pada area daun sebagian besar tampak basah kuyup, yang akhirnya berubah menjadi coklat dan tipis. Pada buah juga nampak bercak besar berwarna coklat kehijauan yang tidak beraturan dengan penampilan kasar berminyak. Pada batang terlihat tidak beraturan berwarna hijau hingga hitam',
68 | cause: 'Pathogen Phytophthora Infestans',
69 | prevention: [
70 | 'Jaga agar dedaunan tetap kering. tempatkan tanaman di tempat yang akan menerima sinar matahari pagi',
71 | 'Berikan ruang ekstra di antara tanaman, dan hindari penyiraman di atas tanaman, terutama di sore hari',
72 | 'Beli benih dan tanaman bersertifikat bebas penyakit',
73 | 'Lakukan penanganan gulma',
74 | 'Jangan membuat kompos busuk',
75 | ],
76 | treatment: [
77 | 'Penyemprotan dengan fungisida chlorothalonil, mancozeb, atau fungisida copper dapat mengendalikan penyakit ini',
78 | 'Pangkas dan buang cabang dan daun bagian bawah yang terinfeksi',
79 | ],
80 | ref: [
81 | {
82 | name_ref: 'HGIC Clemson',
83 | link: 'Https://hgic.clemson.edu/factsheet/tomato-diseases-disorders/',
84 | },
85 | {
86 | name_ref: 'Aggie Horticulture',
87 | link: 'Https://aggie-horticulture.tamu.edu/vegetable/problem-solvers/tomato-problem-solver/leaves/',
88 | },
89 | ],
90 | },
91 | {
92 | id: 3,
93 | slug: 'leaf_mold',
94 | name: 'Leaf Mold',
95 | symptoms:
96 | 'Muncul sebagai bercak hijau muda di permukaan atas daun yang lebih tua. Di bawah daun di area ini, terlihat bercak keunguan atau hijau zaitun dari pertumbuhan jamur. Daun yang terinfeksi menguning dan menggugurkan tanaman.',
97 | cause: 'Jamur Passalora Fulva',
98 | prevention: [
99 | 'Tanaman sisa / lama harus dibuang dari lapangan',
100 | 'Mengecek dan memangkas tanaman untuk meningkatkan sirkulasi udara membantu mengendalikan penyakit',
101 | 'Tempatkan tanaman tomat lebih jauh untuk sirkulasi udara yang lebih baik antar tanaman',
102 | 'Hindari membasahi daun saat menyiram',
103 | 'Putar dengan sayuran selain tomat',
104 | ],
105 | treatment: [
106 | 'Penyemprotan dengan fungisida chlorothalonil, mancozeb, atau fungisida copper dapat mengendalikan penyakit ini',
107 | 'Pangkas dan buang cabang dan daun bagian bawah yang terinfeksi',
108 | ],
109 | ref: [
110 | {
111 | name_ref: 'HGIC Clemson',
112 | link: 'Https://hgic.clemson.edu/factsheet/tomato-diseases-disorders/',
113 | },
114 | {
115 | name_ref: 'Aggie Horticulture',
116 | link: 'Https://aggie-horticulture.tamu.edu/vegetable/problem-solvers/tomato-problem-solver/leaves/',
117 | },
118 | ],
119 | },
120 | {
121 | id: 4,
122 | slug: 'septoria_leaf_spot',
123 | name: 'Septoria Leaf Spot',
124 | symptoms:
125 | 'Lesi melingkar seperti basah air terjadi pertama kali pada daun yang lebih tua. Bintik-bintik ini kemudian berubah menjadi coklat dengan bagian tengah berwarna abu-abu dan mati, dan jika infeksi cukup parah, seluruh daun akan mati',
126 | cause: 'Jamur Septoria Lycopersici',
127 | prevention: [
128 | 'Jangan menanam tomat kultivar karena sebagian besar tomat kultivar yang ditanam saat ini rentan terhadap bercak daun Septoria',
129 | 'Rotasi / putar tanaman 3 tahun dan sanitasi (pembuangan sisa-sisa tanaman)',
130 | 'Jangan gunakan irigasi overhead',
131 | ],
132 | treatment: [
133 | 'Penyemprotan dengan fungisida chlorothalonil, mancozeb, atau fungisida copper dapat mengendalikan penyakit ini',
134 | 'Pangkas dan buang cabang dan daun bagian bawah yang terinfeksi',
135 | ],
136 | ref: [
137 | {
138 | name_ref: 'HGIC Clemson',
139 | link: 'Https://hgic.clemson.edu/factsheet/tomato-diseases-disorders/',
140 | },
141 | {
142 | name_ref: 'Aggie Horticulture',
143 | link: 'Https://aggie-horticulture.tamu.edu/vegetable/problem-solvers/tomato-problem-solver/leaves/',
144 | },
145 | ],
146 | },
147 | {
148 | id: 5,
149 | slug: 'spider_mites/two_spotted_spider_mite',
150 | name: 'Spider Mites / Two-Spotted Spider Mite',
151 | symptoms:
152 | 'Daun menjadi putih kekuningan dan berbintik-bintik. Ditemukan tungau laba-laba merah tomat dapat ditemukan di kedua sisi daun tetapi lebih menyukai bagian bawah dekat urat daun. Terdapat jaring kecil seperti anyaman terutama di bagian bawah daun.',
153 | cause: 'Tetranychus evansi',
154 | prevention: [
155 | 'Menjaga kebersihan lahan dengan baik',
156 | 'Membersihkan gulma secara berkala',
157 | 'Pantau tanaman Anda secara teratur',
158 | 'Menyimpan catatan terkait datangnya penyakit untuk menjadi bahan persiapan selanjutnya kedepan',
159 | ],
160 | treatment: [
161 | 'Merawat, membuang atau mengkarantina tanaman yang terserang untuk mencegah penyebaran',
162 | 'Masih belum terdapat mitisida untuk melawan hama ini',
163 | ],
164 | ref: [
165 | {
166 | name_ref: 'DPI NSW',
167 | link: 'Https://www.dpi.nsw.gov.au/biosecurity/plant/insect-pests-and-plant-diseases/Tomato-red-spider-mite',
168 | },
169 | ],
170 | },
171 | {
172 | id: 6,
173 | slug: 'target_spot',
174 | name: 'Target Spot',
175 | symptoms:
176 | 'Gejala awal pada daun adalah bercak-bercak kecil yang basah oleh air pada permukaan daun bagian atas. Bintik-bintik berkembang menjadi lesi nekrotik kecil yang memiliki bagian tengah berwarna coklat muda dan tepian gelap',
177 | cause: 'Pathogen Corynespora Cassiicola',
178 | prevention: [
179 | 'Meningkatkan aliran udara melalui kanopi dengan jarak tanam yang lebih lebar',
180 | 'Menghindari pemupukan berlebihan dengan nitrogen, yang dapat menyebabkan pembentukan kanopi yang terlalu rimbun. Pemangkasan anakan dan daun tua di kanopi bawah juga dapat meningkatkan aliran udara dan mengurangi kebasahan daun',
181 | 'Hindari menanam tomat di dekat tanaman tua',
182 | 'Periksa bibit untuk mengetahui gejala titik target sebelum dipindahkan',
183 | 'Kelola gulma, yang dapat berfungsi sebagai inang alternatif',
184 | 'Hindari penggunaan irigasi di atas kepala',
185 | 'Hancurkan sisa tanaman segera setelah panen terakhir',
186 | 'Pindahkan dari tomat dan inang lain yang diketahui selama setidaknya tiga tahun',
187 | ],
188 | treatment: [
189 | 'Penyemprotan dengan fungisida chlorothalonil, mancozeb, atau fungisida copper dapat mengendalikan penyakit ini',
190 | 'Pangkas dan buang cabang dan daun bagian bawah yang terinfeksi.',
191 | ],
192 | ref: [
193 | {
194 | name_ref: 'Vegetables Bayer',
195 | link: 'Https://www.vegetables.bayer.com/ca/en-ca/resources/agronomic-spotlights/target-spot-of-tomato.html',
196 | },
197 | ],
198 | },
199 | {
200 | id: 7,
201 | slug: 'yellow_leaf_curl_virus',
202 | name: 'Tomato Yellow Leaf Curl Virus',
203 | symptoms:
204 | 'Daun melengkung ke atas, tepi daun kuning (klorosis), daun lebih kecil dari biasanya, tanaman kerdil, dan bunga rontok. Jika tanaman tomat terinfeksi di awal pertumbuhannya, mungkin tidak ada buah yang terbentuk. Tanaman yang terinfeksi dapat muncul secara acak di seluruh taman',
205 | cause: 'Lalat putih',
206 | prevention: [
207 | 'Penghapusan tanaman dengan gejala awal dapat memperlambat penyebaran penyakit',
208 | 'Tanaman terinfeksi yang dicabut (dicabut) harus segera dikantongi untuk mencegah penyebaran',
209 | 'Kendalikan gulma di dalam dan di sekitar lokasi kebun, karena ini mungkin menjadi inang alternatif bagi lalat putih',
210 | ],
211 | treatment: [
212 | 'Membuat semprotan minyak hortikultura atau minyak canola konsentrasi rendah akan bertindak sebagai penolak hama',
213 | 'Di akhir musim, singkirkan semua tanaman yang rentan dan bakar atau buang',
214 | ],
215 | ref: [
216 | {
217 | name_ref: 'HGIC Clemson',
218 | link: 'Https://hgic.clemson.edu/factsheet/tomato-diseases-disorders/',
219 | },
220 | {
221 | name_ref: 'Aggie Horticulture',
222 | link: 'Https://aggie-horticulture.tamu.edu/vegetable/problem-solvers/tomato-problem-solver/leaves/',
223 | },
224 | ],
225 | },
226 | {
227 | id: 8,
228 | slug: 'mosaic_virus',
229 | name: 'Tomato Mosaic Virus',
230 | symptoms:
231 | 'Tanaman yang terinfeksi virus menjadi kerdil, seringkali dengan daun yang tidak berkembang dengan baik. Tanaman tampak lebat. Daun mungkin berbintik-bintik, dan seringkali memiliki penampilan "tali sepatu". Buahnya kecil dan bentuknya salah.',
232 | cause: 'Virus Tobacco Mosaic',
233 | prevention: [
234 | 'Hapus dan musnahkan tanaman yang terinfeksi segera',
235 | 'Cuci tangan sampai bersih setelah merokok (virus mosaik Tembakau mungkin ada pada jenis tembakau tertentu) dan sebelum bekerja di kebun',
236 | 'Hilangkan gulma dan singkirkan tanaman yang terinfeksi dari lahan segera setelah terlihat',
237 | 'Kendalikan serangga (thrips dan lalat putih) yang membawa virus (lihat HGIC 2218, Hama Serangga Tomat)',
238 | ],
239 | treatment: [
240 | 'Gunakan mulsa reflektif',
241 | 'Gunakan kultivar tomat yang tahan virus',
242 | 'Banyak kultivar memiliki ketahanan Tobacco mosaic virus (TMV) (huruf T mengikuti nama kultivar), seperti Bush Celebrity, Bush Early Girl, Jetsetter, Big Beef, Celebrity, Sweet Cluster, Sweet Million (cherry), dan Super Marzano (paste )',
243 | ],
244 | ref: [
245 | {
246 | name_ref: 'HGIC Clemson',
247 | link: 'Https://hgic.clemson.edu/factsheet/tomato-diseases-disorders/',
248 | },
249 | {
250 | name_ref: 'Aggie Horticulture',
251 | link: 'Https://aggie-horticulture.tamu.edu/vegetable/problem-solvers/tomato-problem-solver/leaves/',
252 | },
253 | ],
254 | },
255 | {
256 | id: 9,
257 | slug: 'healthy',
258 | name: 'Healthy',
259 | symptoms: 'Tanaman tampak sehat dan tidak ada penyakit apapun',
260 | cause: 'Petani yang rajin membersihkan dan merawat tanaman',
261 | prevention: ['Lebih baik terus dilakukan kebiasaan tersebut'],
262 | treatment: ['Tidak ada penanganan yang harus dilakukan'],
263 | ref: [
264 | {
265 | name_ref: '',
266 | link: '',
267 | },
268 | ],
269 | },
270 | ];
271 |
--------------------------------------------------------------------------------
/src/index.css:
--------------------------------------------------------------------------------
1 | @tailwind base;
2 | @tailwind components;
3 | @tailwind utilities;
4 |
5 | body {
6 | margin: 0;
7 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
8 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
9 | sans-serif;
10 | -webkit-font-smoothing: antialiased;
11 | -moz-osx-font-smoothing: grayscale;
12 | }
13 |
14 | code {
15 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
16 | monospace;
17 | }
18 | .App {
19 | background-color: #f0e9d2;
20 | }
21 |
22 | nav.navbar .navbar-nav .nav-link.navbar-link:hover,
23 | nav.navbar .navbar-nav .nav-link.navbar-link.active {
24 | opacity: 1;
25 | }
26 | nav.navbar .navbar-text i,
27 | nav.navbar .navbar-nav .nav-link.navbar-link i {
28 | display: none;
29 | }
30 | nav.navbar {
31 | padding: 18px 0;
32 | position: fixed;
33 | width: 100%;
34 | top: 0;
35 | z-index: 99;
36 | transition: 0.3s ease-in-out;
37 | }
38 | nav.navbar a.navbar-brand {
39 | width: 10%;
40 | color: #000;
41 | font-family: Georgia, 'Times New Roman', Times, serif;
42 | font-weight: 600;
43 | text-shadow: 2px 1px 2px rgba(0, 0, 0, 0.3);
44 | }
45 | nav.navbar .navbar-nav .nav-link.navbar-link {
46 | font-family: Montserrat, sans-serif;
47 | font-weight: 400;
48 | font-size: 18px;
49 | padding: 0 25px;
50 | letter-spacing: 0.8px;
51 | opacity: 0.8;
52 | color: #000;
53 | }
54 | nav.navbar .theme-toggle {
55 | padding-left: 15px;
56 | cursor: pointer;
57 | }
58 | nav.navbar .theme-toggle i {
59 | font-size: 40px;
60 | }
61 | /* home section */
62 |
63 | .home {
64 | background-color: #fff;
65 | height: 100vh;
66 | top: 0;
67 | padding: 250px 0 100px 0;
68 | background-image: url(./assets/green.jpg);
69 | background-position: top center;
70 | background-repeat: no-repeat;
71 | background-size: cover;
72 | }
73 | .image img {
74 | height: 250px;
75 | }
76 | .home .tagline {
77 | color: #fff;
78 | font-weight: 700;
79 | letter-spacing: 0.8px;
80 | padding: 8px 10px;
81 | font-size: 20px;
82 | margin-bottom: 18px;
83 | display: inline-block;
84 | background: linear-gradient(
85 | 90.21deg,
86 | rgba(38, 159, 147, 0.5) -5.91%,
87 | rgba(26, 2, 131, 0.5) 111.58%
88 | );
89 | border: 1px solid rgba(255, 255, 255, 0.5);
90 | }
91 | .home h1 {
92 | color: #000;
93 | font-weight: 700;
94 | letter-spacing: 0.8px;
95 | font-size: 40px;
96 | line-height: 1em;
97 | margin-bottom: 20px;
98 | display: block;
99 | width: 90%;
100 | }
101 | .home .image {
102 | width: 100%;
103 | }
104 | .home .image img {
105 | animation: updown 3s linear infinite;
106 | }
107 | @keyframes updown {
108 | 0% {
109 | transform: translateY(-15px);
110 | }
111 | 50% {
112 | transform: translateY(15px);
113 | }
114 | 100% {
115 | transform: translateY(-15px);
116 | }
117 | }
118 |
119 | /* Features */
120 | .feature {
121 | padding: 0 0 50px 0;
122 | position: relative;
123 | }
124 | .feature-bx {
125 | background: #e6ddc4;
126 | border-radius: 64px;
127 | text-align: center;
128 | padding: 60px 50px;
129 | margin-top: -60px;
130 | }
131 | .feature h2 {
132 | font-family: Georgia, 'Times New Roman', Times, serif;
133 | }
134 | .feature h5 {
135 | font-size: 18px;
136 | font-weight: 700;
137 | font-family: Montserrat, sans-serif;
138 | }
139 | .feature-slider {
140 | width: 80%;
141 | margin: 0 auto;
142 | position: relative;
143 | }
144 | .feature .item {
145 | display: block;
146 | }
147 | .feature-slider .item img {
148 | width: 50%;
149 | margin: 0 auto 15px auto;
150 | }
151 |
152 | /* About */
153 |
154 | .about h2 {
155 | font-family: Georgia, 'Times New Roman', Times, serif;
156 | }
157 | .about .image {
158 | width: 100%;
159 | }
160 | .about p {
161 | font-family: Montserrat, sans-serif;
162 | font-size: 18px;
163 | }
164 | .about .image img {
165 | animation: updown 3s linear infinite;
166 | }
167 | @keyframes updown {
168 | 0% {
169 | transform: translateY(-15px);
170 | }
171 | 50% {
172 | transform: translateY(15px);
173 | }
174 | 100% {
175 | transform: translateY(-15px);
176 | }
177 | }
178 |
179 | .about {
180 | padding: 0 0 50px 0;
181 | position: relative;
182 | }
183 | .about-bx {
184 | border-radius: 64px;
185 | text-align: center;
186 | padding: 60px 50px;
187 | margin-top: -60px;
188 | }
189 | .about h5 {
190 | font-size: 18px;
191 | font-weight: 700;
192 | font-family: Montserrat, sans-serif;
193 | }
194 | .about-slider {
195 | width: 80%;
196 | margin: 0 auto;
197 | position: relative;
198 | }
199 | .about .item {
200 | display: block;
201 | }
202 | .about-slider .item img {
203 | margin: 0 auto 15px auto;
204 | object-fit: cover;
205 | width: 150px;
206 | height: 150px;
207 | margin-top: 20px;
208 | margin-bottom: 30px;
209 | border-radius: 50%;
210 | box-shadow: 0 4px 4px 4px rgba(0, 0, 0, 0.2);
211 | }
212 |
213 | .footer .tagline {
214 | width: 10%;
215 | color: #000;
216 | font-family: Georgia, 'Times New Roman', Times, serif;
217 | font-weight: 600;
218 | text-shadow: 2px 1px 2px rgba(0, 0, 0, 0.3);
219 | }
220 |
221 | @media (max-width: 768px) {
222 | /* Home */
223 |
224 | .home {
225 | padding: 150px 0 100px 0;
226 | }
227 | .home .tagline {
228 | font-size: 18px;
229 | }
230 | .home h1 {
231 | letter-spacing: 0.5px;
232 | font-size: 30px;
233 | }
234 | .home .d-flex {
235 | position: relative;
236 | }
237 | .home .wrap-text {
238 | z-index: 1;
239 | }
240 | .home .image {
241 | position: absolute;
242 | right: 0;
243 | top: -20%;
244 | width: 50%;
245 | }
246 | .image img {
247 | height: 125px;
248 | }
249 | }
250 | /* Footer */
251 | .footer .tagline {
252 | display: block;
253 | }
254 | .footer .text-center p {
255 | font-size: 15px;
256 | }
257 | .footer i {
258 | font-size: 40px;
259 | }
260 |
261 | @media (max-width: 575.98px) {
262 | nav.navbar .collapse {
263 | margin-left: 0;
264 | }
265 | .home .tagline {
266 | font-size: 15px;
267 | }
268 | .home h1 {
269 | letter-spacing: 0.5px;
270 | font-size: 32px;
271 | }
272 | }
273 |
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom/client';
3 | import './index.css';
4 | import App from './App';
5 |
6 | const root = ReactDOM.createRoot(document.getElementById('root'));
7 | root.render(
8 |
9 |
10 |
11 | );
12 |
--------------------------------------------------------------------------------
/src/pages/Classify.jsx:
--------------------------------------------------------------------------------
1 | import React, { useState, useRef, useEffect } from 'react';
2 | import { ImageCard } from '../components/ImageCard';
3 | import { DescCard } from '../components/DescCard';
4 | import { diseases } from '../data/diseases';
5 | import * as tf from '@tensorflow/tfjs';
6 | const roboflow = window.roboflow;
7 |
8 | export const Classify = () => {
9 | const [progress, setProgress] = useState('idle');
10 | const [imgPreview, setImgPreview] = useState();
11 | const [predict, setPredict] = useState([]);
12 | const [webcam, setWebcam] = useState(false);
13 | const [loadWebcam, setLoadWebcam] = useState(false);
14 | const webcamRef = useRef(null);
15 | const canvasRef = useRef(null);
16 | let model = null;
17 |
18 | const preProcess = (image) => {
19 | const imgNormalized = tf.tidy(() => {
20 | const imgTensor = tf.browser.fromPixels(image);
21 | const normalized = tf.scalar(1.0).sub(imgTensor.div(tf.scalar(255.0)));
22 | const batchDims = normalized.expandDims(0);
23 | const resized = tf.image.resizeBilinear(batchDims, [224, 224]);
24 | return resized;
25 | });
26 | return imgNormalized;
27 | };
28 |
29 | const classify = async () => {
30 | try {
31 | setProgress('process');
32 | const model = await tf.loadLayersModel('model/model.json');
33 |
34 | const img = document.getElementById('img');
35 | const imgNormalized = preProcess(img);
36 |
37 | const predictions = tf.tidy(() => {
38 | const output = model.predict(imgNormalized);
39 | const predictions = Array.from(tf.argMax(output, 1).dataSync());
40 | const confidents = Math.round(output.max().arraySync() * 10000) / 100;
41 | return [predictions[0], confidents];
42 | });
43 |
44 | setProgress('finish');
45 | setPredict(predictions);
46 | } catch (error) {
47 | console.error(error);
48 | setProgress((e) => (e = 'error'));
49 | }
50 | };
51 |
52 | const handleInput = (e) => {
53 | const urlPreview = URL.createObjectURL(e.target.files[0]);
54 | setImgPreview(urlPreview);
55 | };
56 |
57 | const getDetection = async () => {
58 | if (
59 | typeof webcamRef.current !== 'undefined' &&
60 | webcamRef.current !== null &&
61 | webcamRef.current.video.readyState === 4
62 | ) {
63 | const video = webcamRef.current.video;
64 | const videoWidth = webcamRef.current.video.videoWidth;
65 | const videoHeight = webcamRef.current.video.videoHeight;
66 |
67 | webcamRef.current.video.width = videoWidth;
68 | webcamRef.current.video.height = videoHeight;
69 |
70 | canvasRef.current.width = videoWidth;
71 | canvasRef.current.height = videoHeight;
72 |
73 | try {
74 | const predictions = await model.detect(video);
75 | setPredict(
76 | predictions.map((disease) => {
77 | return [
78 | diseases.forEach((dss) =>
79 | dss.slug === disease.class ? dss.id : ''
80 | ),
81 | disease.confidence,
82 | ];
83 | })
84 | );
85 | const ctx = canvasRef.current.getContext('2d');
86 | renderDetection(predictions, ctx);
87 | } catch (error) {
88 | console.error(error);
89 | setProgress((e) => (e = 'error'));
90 | setLoadWebcam(false);
91 | }
92 | }
93 | };
94 |
95 | const loadModel = async () => {
96 | setLoadWebcam(true);
97 | const getAuth = await roboflow.auth({
98 | publishable_key: 'rf_IFsWxkQvH2fVforkhmsTrQExKzB2',
99 | });
100 | const loadModel = await getAuth.load({
101 | model: 'tomato-leaf-diseases',
102 | version: 1,
103 | });
104 | model = loadModel;
105 | setLoadWebcam((e) => (e = !e));
106 | };
107 |
108 | const runDetection = async () => {
109 | loadModel();
110 | setInterval(() => {
111 | getDetection();
112 | }, 50);
113 | };
114 |
115 | const renderDetection = (detections, ctx) => {
116 | ctx.clearRect(0, 0, canvasRef.current.width, canvasRef.current.height);
117 | const x = 0;
118 | const y = 0;
119 |
120 | detections.forEach((prediction) => {
121 | const width = prediction.bbox.width;
122 | const height = prediction.bbox.height;
123 |
124 | ctx.strokeStyle = prediction.color;
125 | ctx.font = '18px Arial';
126 | ctx.lineWidth = 4;
127 |
128 | ctx.beginPath();
129 | ctx.fillStyle = prediction.color;
130 | ctx.fillText(prediction.class, x, y);
131 | ctx.rect(x, y, width, height);
132 | ctx.stroke();
133 | });
134 | };
135 |
136 | useEffect(() => {
137 | webcam && runDetection();
138 | }, [webcam]);
139 |
140 | return (
141 |
142 |
143 |
144 |
setWebcam(!webcam)}
151 | webcamRef={webcamRef}
152 | canvasRef={canvasRef}
153 | loadWebcam={loadWebcam}
154 | />
155 |
156 |
157 |
158 | );
159 | };
160 |
--------------------------------------------------------------------------------
/src/pages/Homepage.jsx:
--------------------------------------------------------------------------------
1 | import { Home } from '../components/Home';
2 | import { About } from '../components/About';
3 | import { Features } from '../components/Features';
4 | import { Navigation } from '../components/Navigation';
5 | import { Footer } from '../components/Footer';
6 | import 'bootstrap/dist/css/bootstrap.min.css';
7 |
8 | export const Homepage = () => {
9 | return (
10 | <>
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | >
19 | );
20 | };
21 |
--------------------------------------------------------------------------------
/tailwind.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('tailwindcss').Config} */
2 | module.exports = {
3 | content: ['./src/**/*.{js,jsx,ts,tsx}'],
4 | theme: {
5 | extend: {},
6 | },
7 | plugins: [require('daisyui')],
8 | daisyui: {
9 | themes: false,
10 | },
11 | };
12 |
--------------------------------------------------------------------------------