You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://app.basic.ai/login)
9
+
[](https://app.basic.ai)
11
10
</div>
12
11
13
-
# Intro
14
-
Xtreme1 is an all-in-one open-source platform for Multimodal training data.
12
+
# Intro
15
13
16
-
Xtreme1 unlocks efficiency in data annotation, curation, and ontology management for tackling machine learning challenges in computer vision and LLM. The platform's AI-fueled tools elevate your annotation to the next efficiency level, powering your projects in 2D/3D Object Detection, 3D Instance Segmentation, and LiDAR-Camera Fusion like never before.
14
+
Xtreme1 is an all-in-one open-source platform for multimodal training data.
17
15
18
-
A long-term free plan is offered in the Xtreme1 Cloud version. Click to [🎉 Use Cloud for Free](https://app.basic.ai/login).
16
+
Xtreme1 unlocks efficiency in data annotation, curation, and ontology management for tackling machine learning challenges in computer vision and LLM. The platform's AI-fueled tools elevate your annotation to the next efficiency level, powering your projects in 2D/3D Object Detection, 2D/3D Semantic/Instance Segmentation, and LiDAR-Camera Fusion like never before.
19
17
20
-
# Documentation
18
+
A long-term free plan is offered in the Xtreme1 Cloud version. Click to [🎉 Use Cloud for Free](https://app.basic.ai).
21
19
22
-
🎆 Welcome aboard! If you have any questions or doubts about features, installation, development, and deployment, you can always refer to our documentation.
20
+
The README document only includes content related to installation, building, and running, if you have any questions or doubts about features, you can always refer to our [Docs Site](https://docs.xtreme1.io/xtreme1-docs/).
Find us on [Twitter](https://twitter.com/Xtreme1io) | [Medium](https://medium.com/multisensory-data-training) | [Issues](https://github.com/xtreme1-io/xtreme1/issues)
Any OS can install the Xtreme1 platform with Docker Compose (installing [Docker Desktop](https://docs.docker.com/desktop/) on Mac, Windows, and Linux devices). On the Linux server, you can install Docker Engine with [Docker Compose Plugin](https://docs.docker.com/compose/install/linux/).
55
+
56
+
*Hardware Requirements*
57
+
58
+
**CPU**: AMD64 or ARM64
59
+
**RAM**: 2GB or higher
60
+
**Hard Drive**: 10GB+ free disk space (depends on data size)
61
+
62
+
*Software Requirements*
63
+
64
+
For Mac, Windows, and Linux with desktop.
65
+
66
+
**Docker Desktop**: 4.1 or newer
67
+
68
+
For Linux server.
69
+
70
+
**Docker Engine**: 20.10 or newer
71
+
**Docker Compose Plugin**: 2.0 or newer
56
72
57
-
* Get access to [Xtreme1 online version](https://app.basic.ai/#/login/) without any installation :rocket:
73
+
*(Built-in) Models Deployment Requirements*
58
74
59
-
*[Install and Quick start](https://docs.xtreme1.io/xtreme1-docs/get-started/quick-start):cd:
60
-
*[Install with Docker](https://docs.xtreme1.io/xtreme1-docs/get-started/install-with-docker) 🐋
61
-
*[Build Xtreme1 from source code](https://docs.xtreme1.io/xtreme1-docs/get-started/install-from-source):wrench:
75
+
The built-in model containers only can be running on Linux server with [NVIDIA CUDA Driver](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html) and [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/index.html).
Enter into the release package directory, and execute the following command to start all services. It needs a few minutes to initialize database and prepare a test dataset.
72
94
73
95
```bash
96
+
cd xtreme1-v0.9.1
74
97
docker compose up
75
98
```
76
99
77
-
Visit [http://localhost:8190](http://localhost:8190) in the browser (Google Chrome is recommended) to try out Xtreme1!
100
+
Visit [http://localhost:8190](http://localhost:8190) in the browser (Google Chrome is recommended) to try out Xtreme1! You can replace localhost with IP address if you want to access from another machine.
101
+
102
+
Docker compose will pull all service images from Docker Hub, including basic services `MySQL`, `Redis`, `MinIO`, and application services `backend`, `frontend`. You can find the username, password, hot binding port to access MySQL, Redis and MinIO in `docker-compose.yml`, for example you can access MinIO console at http://localhost:8194. We use Docker volume to save data, so you won't lose any data between container recreating.
103
+
104
+
Docker Compose advanced commands:
105
+
106
+
```bash
107
+
# Start in the foreground.
108
+
docker compose up
109
+
110
+
# Or add -d option to run in the background.
111
+
docker compose up -d
112
+
113
+
# When finished, you can start or stop all or specific services.
114
+
docker compose start
115
+
docker compose stop
116
+
117
+
# Stop all services and delete all containers, but data volumes will be kept.
118
+
docker compose down
119
+
120
+
# Danger! Delete all volumes. All data in MySQL, Redis and MinIO.
121
+
docker compose down -v
122
+
```
123
+
124
+
### Start Built-in Models
78
125
79
-
## ⚠️ Install built-in models
80
126
You need to explicitly specify a model profile to enable model services.
81
127
82
128
```bash
83
129
docker compose --profile model up
84
130
```
85
131
86
-
## Enable model services
87
-
88
-
> Make sure you have installed [NVIDIA Driver](https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html) and [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker). But you do not need to install the CUDA Toolkit, as it already contained in the model image.
132
+
Make sure you have installed [NVIDIA CUDA Driver](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html) and [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/index.html) on host machine.
89
133
90
134
```bash
91
135
# You need set "default-runtime" as "nvidia" in /etc/docker/daemon.json and restart docker to enable NVIDIA Container Toolkit
@@ -99,9 +143,63 @@ docker compose --profile model up
99
143
"default-runtime": "nvidia"
100
144
}
101
145
```
146
+
102
147
If you use **Docker Desktop** + **WSL2.0**, please find this [issue #144](https://github.com/xtreme1-io/xtreme1/issues/144) for your reference.
103
148
104
-

149
+
### Run on ARM CPU
150
+
151
+
Please note that certain Docker images, including `MySQL`, may not be compatible with the ARM architecture. In case your computer is based on an ARM CPU (e.g. Apple M1), you can create a Docker Compose override file called docker-compose.override.yml and include the following content. While this method uses QEMU emulation to enforce the use of the ARM64 image on the ARM64 platform, it may impact performance.
152
+
153
+
```yaml
154
+
services:
155
+
mysql:
156
+
platform: linux/amd64
157
+
```
158
+
159
+
## Install from Source
160
+
161
+
If you want to build or extend the function, download the source code and run locally.
162
+
163
+
### Enable Docker BuildKit
164
+
165
+
We are using Docker BuildKit to accelerate the building speed, such as cache Maven and NPM packages between builds. By default BuildKit is not enabled in Docker Desktop, you can enable it as follows. For more details, you can check the official document [Build images with BuildKit](https://docs.docker.com/develop/develop-images/build_enhancements/).
166
+
167
+
```bash
168
+
# Set the environment variable to enable BuildKit just for once.
169
+
DOCKER_BUILDKIT=1 docker build .
170
+
DOCKER_BUILDKIT=1 docker compose up
171
+
172
+
# Or edit Docker daemon.json to enable BuildKit by default, the content can be something like '{ "features": { "buildkit": true } }'.
173
+
vi /etc/docker/daemon.json
174
+
175
+
# You can clear the builder cache if you encounter some package version related problem.
176
+
docker builder prune
177
+
```
178
+
179
+
### Clone Repository
180
+
181
+
```bash
182
+
git clone https://github.com/basicai/xtreme1.git
183
+
cd xtreme1
184
+
```
185
+
186
+
### Build Images and Run Services
187
+
188
+
The `docker-compose.yml` default will pull application images from Docker Hub, if you want to build images from source code, you can comment on the service's image line and un-comment build line.
189
+
190
+
```yaml
191
+
services:
192
+
backend:
193
+
# image: basicai/xtreme1-backend
194
+
build: ./backend
195
+
frontend:
196
+
# image: basicai/xtreme1-frontend
197
+
build: ./frontend
198
+
```
199
+
200
+
Then when you run `docker compose up`, it will first build the `backend` and `frontend` image and start these services. Be sure to run `docker compose build` when code changes, as the up command will only build images when it does not exist.
201
+
202
+
> You should not commit your change to `docker-compose.yml`, to avoid this, you can copy docker-compose.yml to a new file `docker-compose.develop.yml`, and modify this file as your development needs, as this file is already added into `.gitignore`. And you need to specify this specific file when running Docker Compose commands, such as `docker compose -f docker-compose.develop.yml build`.
105
203
106
204
# License
107
205
This software is licensed under the Apache 2.0 LICENSE. Xtreme1 is a trademark of LF AI & Data Foundation.
0 commit comments