2. Installation
This section guides you through installing Tiny ML Tensorlab on your system. Choose the installation path that best fits your needs.
Contents
- 2.1. Prerequisites
- 2.2. User Installation
- 2.3. Developer Installation
- 2.3.1. Overview
- 2.3.2. Step 1: Clone the Repository
- 2.3.3. Step 2: Set Up Python Environment
- 2.3.4. Step 3: Verify Installation
- 2.3.5. Step 4: Configure Environment Variables
- 2.3.6. Directory Structure After Installation
- 2.3.7. Updating
- 2.3.8. Common Developer Tasks
- 2.3.9. Troubleshooting
- 2.3.10. Next Steps
- 2.4. Windows Setup
- 2.5. Linux Setup
- 2.6. Environment Variables
2.7. Which Install Should I Choose?
Before diving into the prerequisites or detailed guides, use this table to pick the right installation type for your situation:
Scenario |
Use This Install |
|---|---|
I want to train models on my own data using TI-provided models |
User Install (User Installation) |
I want to run the provided examples without modifying source code |
User Install (User Installation) |
I want to use Tensorlab as a library in my own Python scripts |
User Install (User Installation) |
I want to add custom model architectures to the model zoo |
Developer Install (Developer Installation) |
I want to modify or debug the training pipeline itself |
Developer Install (Developer Installation) |
I want to contribute to the Tensorlab codebase |
Developer Install (Developer Installation) |
I want to integrate new feature extraction transforms |
Developer Install (Developer Installation) |
In summary:
User Install – Install and use. No source code changes. Best for the majority of users who want to train models on their own data.
Developer Install – Clone and edit. Gives full access to source code. Required only if you need to extend or modify the framework itself.
2.8. Quick Start
For Users (Quick Install)
If you want to use Tiny ML Tensorlab without modifying the source code:
pip install git+https://github.com/TexasInstruments/tinyml-tensorlab.git@main#subdirectory=tinyml-modelmaker
For Developers (Full Install)
If you want to customize models, add features, or contribute:
git clone https://github.com/TexasInstruments/tinyml-tensorlab.git
cd tinyml-tensorlab/tinyml-modelmaker
./setup_all.sh
git clone https://github.com/TexasInstruments/tinyml-tensorlab.git
cd tinyml-tensorlab\tinyml-modelmaker
python -m pip install --editable .
See the detailed guides in this section for complete instructions.