hack-workshop-lobe/apps/web-bootstrap
dependabot[bot] 6fbcf94dfa
Bump browserify-sign from 4.2.1 to 4.2.2 in /apps/web-bootstrap
Bumps [browserify-sign](https://github.com/crypto-browserify/browserify-sign) from 4.2.1 to 4.2.2.
- [Changelog](https://github.com/browserify/browserify-sign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/crypto-browserify/browserify-sign/compare/v4.2.1...v4.2.2)

---
updated-dependencies:
- dependency-name: browserify-sign
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-06 22:40:30 +00:00
..
assets Merge commit '44a70199c4b7e13380c6543533fa1798cb561082' as 'apps/web-bootstrap' 2021-09-21 15:28:56 -07:00
public Merge commit '44a70199c4b7e13380c6543533fa1798cb561082' as 'apps/web-bootstrap' 2021-09-21 15:28:56 -07:00
src Merge commit '44a70199c4b7e13380c6543533fa1798cb561082' as 'apps/web-bootstrap' 2021-09-21 15:28:56 -07:00
.gitignore Merge commit '44a70199c4b7e13380c6543533fa1798cb561082' as 'apps/web-bootstrap' 2021-09-21 15:28:56 -07:00
LICENSE Merge commit '44a70199c4b7e13380c6543533fa1798cb561082' as 'apps/web-bootstrap' 2021-09-21 15:28:56 -07:00
README.md Merge commit '44a70199c4b7e13380c6543533fa1798cb561082' as 'apps/web-bootstrap' 2021-09-21 15:28:56 -07:00
package.json Merge commit '44a70199c4b7e13380c6543533fa1798cb561082' as 'apps/web-bootstrap' 2021-09-21 15:28:56 -07:00
tsconfig.json Merge commit '44a70199c4b7e13380c6543533fa1798cb561082' as 'apps/web-bootstrap' 2021-09-21 15:28:56 -07:00
yarn.lock Bump browserify-sign from 4.2.1 to 4.2.2 in /apps/web-bootstrap 2023-11-06 22:40:30 +00:00

README.md

Web Bootstrap header

Lobe is a free, easy to use app that has everything you need to bring your machine learning ideas to life. Web Bootstrap takes the machine learning model created in Lobe, and adds it to a project in the browser that uses React, Create React App, TypeScript, and TensorFlow.js.

Get Started

  1. Clone or download the project on your computer and install Yarn. Yarn is the software package that will install all the dependencies and make sure the code automatically reloads when changes are made.

  2. Run yarn install to install required dependencies and run yarn start to start the server in development mode. This will open a web browser to localhost:3000. By default, this project is using the TensorFlow.js exported model from Lobe found in the public/model/ folder.

  3. To use your own model file, open your Lobe project, go to the Use tab, select Export, and click on the TensorFlow.js model file. When exported, drag the model.json, signature.json, and all the *.bin files to the public/model/ folder.

Additional Information

Check out the Create React App documentation for more information on React and the project structure.

There are three main components: Camera, Prediction, and StaticImage. The Camera, which runs in components/camera/Camera.tsx is responsible for displaying a live full screen view of the user's selected webcam. The Prediction component components/prediction/Prediction.tsx is the box in the lower left hand corner, and is responsible for displaying the top prediction results and their confidences. The StaticImage component components/staticImage/StaticImage.tsx displays an image selected from the file picker and runs it through the model from a canvas element.

Known Issues

TensorFlow.js on Safari may have problems initializing the WebGL backend for acceleration and will fall back to the CPU. You can use the WebAssembly (wasm) backend as an alternative to WebGL: https://www.tensorflow.org/js/guide/platform_environment#wasm_backend

Contributing

GitHub Issues are for reporting bugs, discussing features and general feedback on the Web Bootstrap project. Be sure to check our documentation, FAQ and past issues before opening any new ones.

To share your project, get feedback on it, and learn more about Lobe, please visit our community on Reddit. We look forward to seeing the amazing projects that can be built, when machine learning is made accessible to you.