Playground for creating TF model, converting to tfjs, and displaying in webapp
Install Jupyter base environment, with kernals in other environments
# if you haven't already installed jupyter
conda install nb_conda_kernels
conda install jupyterlab
conda install notebook
# optionally, install extensions
conda install jupyter_contrib_nbextensions
Start a new environment
# use one of python=3.[8,9,10]
conda create -n TF python=3.10 pip ipykernel
conda activate TF
Install TensorFlow. Below are for macOS only. For other OS, follow instructions from tensorflow.
# only if using Apple Silicon
conda install -c apple tensorflow-deps
# on macos, install base TensorFlow
python -m pip install tensorflow-macos
# on macos, install metal plugin (gpu support)
python -m pip install tensorflow-metal
Install tfjs_converter
python -m pip install tensorflowjs
Make sure you have yarn, npm, or pnpm
$ yarn install # or pnpm install or npm install
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
Builds the app for production to the dist
folder.
It correctly bundles Solid in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
You can deploy the dist
folder to any static host provider (netlify, surge, now, etc.)