Skip to content

Commit 695afa6

Browse files
author
guhao
committed
Merge branch 'dev' of github.com:xtreme1-io/xtreme1 into dev
2 parents f28ce79 + 18252e8 commit 695afa6

File tree

317 files changed

+48803
-144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

317 files changed

+48803
-144
lines changed

.ops/.gitlab-ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ stages:
55

66
variables:
77
APP_NAME: "xtreme1"
8-
APP_VERSION: "0.6.0"
8+
APP_VERSION: "0.7.0"
99

1010
FRONTEND_PACKAGE_DIR: "dist"
1111
BACKEND_PACKAGE_NAME: "${APP_NAME}-backend-${APP_VERSION}-SNAPSHOT.jar"
@@ -65,6 +65,9 @@ build-frontend-package:
6565
- cd ../pc-tool
6666
- npm install
6767
- npm run build
68+
- cd ../text-tool
69+
- npm install
70+
- npm run build
6871
artifacts:
6972
paths:
7073
- frontend/$FRONTEND_PACKAGE_DIR
@@ -73,6 +76,7 @@ build-frontend-package:
7376
- frontend/main/node_modules
7477
- frontend/image-tool/node_modules
7578
- frontend/pc-tool/node_modules
79+
- frontend/text-tool/node_modules
7680

7781
build-release-package:
7882
stage: build-package

.ops/alidev/frontend-deployment.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,27 @@ spec:
119119
- hosts:
120120
- xtreme1.alidev.beisai.com
121121
secretName: alidev.beisai.com
122+
---
123+
apiVersion: networking.k8s.io/v1
124+
kind: Ingress
125+
metadata:
126+
annotations:
127+
nginx.ingress.kubernetes.io/rewrite-target: /text-tool/$2
128+
name: frontend-text-tool
129+
spec:
130+
ingressClassName: nginx
131+
rules:
132+
- host: xtreme1.alidev.beisai.com
133+
http:
134+
paths:
135+
- backend:
136+
service:
137+
name: frontend
138+
port:
139+
number: 80
140+
path: /tool/text(/|$)(.*)
141+
pathType: Prefix
142+
tls:
143+
- hosts:
144+
- xtreme1.alidev.beisai.com
145+
secretName: alidev.beisai.com

.ops/alitest/frontend-deployment.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,27 @@ spec:
119119
- hosts:
120120
- xtreme1.alitest.beisai.com
121121
secretName: alitest.beisai.com
122+
---
123+
apiVersion: networking.k8s.io/v1
124+
kind: Ingress
125+
metadata:
126+
annotations:
127+
nginx.ingress.kubernetes.io/rewrite-target: /text-tool/$2
128+
name: frontend-text-tool
129+
spec:
130+
ingressClassName: nginx
131+
rules:
132+
- host: xtreme1.alitest.beisai.com
133+
http:
134+
paths:
135+
- backend:
136+
service:
137+
name: frontend
138+
port:
139+
number: 80
140+
path: /tool/text(/|$)(.*)
141+
pathType: Prefix
142+
tls:
143+
- hosts:
144+
- xtreme1.alitest.beisai.com
145+
secretName: alitest.beisai.com

.ops/backend.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM openjdk:11
22

33
RUN apt update && \
44
apt install -y iputils-ping curl wget netcat python3 python3-pip
5-
RUN pip3 install --upgrade --force-reinstall git+https://github.com/xtreme1-io/xtreme1-sdk.git@bddaa8d
5+
RUN pip3 install --upgrade --force-reinstall git+https://github.com/xtreme1-io/xtreme1-sdk.git@d0cf4cc
66
WORKDIR /app
77
COPY target/$BACKEND_PACKAGE_NAME ./app.jar
88
RUN mkdir -p config

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div align="center">
22
<img width="386" alt="Xtreme1 logo" src="https://user-images.githubusercontent.com/84139543/190300943-98da7d5c-bd67-4074-a94f-b7405d29fb90.png">
33

4-
![](https://img.shields.io/badge/Release-v0.6.0-green)
4+
![](https://img.shields.io/badge/Release-v0.7.0-green)
55
![](https://img.shields.io/badge/License-Apache%202.0-blueviolet)
66
[![Slack](https://img.shields.io/badge/Join-Slack-orange.svg?logo=slack)](https://join.slack.com/t/xtreme1group/shared_invite/zt-1jhk36uzr-NpdpYXeQAEHN6rYJy5_6pg)
77
[![Twitter](https://img.shields.io/badge/Follow-Twitter-blue)](https://twitter.com/Xtreme1io)
@@ -12,10 +12,9 @@
1212
# Intro #
1313
Xtreme1 is the world's first open-source platform for Multimodal training data.
1414

15-
Xtreme1 provides deep insight into data annotation, data curation, and ontology management to solve 2D image and 3D point cloud dataset ML challenges.
16-
The built-in AI-assisted tools take your annotation efforts to the next level of efficiency for your 2D/3D Object Detection, 3D Instance Segmentation, and LiDAR-Camera Fusion projects.
15+
Xtreme1 unlocks deep insights into 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 game to the next level of efficiency, powering your projects in 2D/3D Object Detection, 3D Instance Segmentation and LiDAR-Camera Fusion like never before.
1716

18-
It is now hosted in [LF AI & Data Foundation](https://medium.com/multisensory-data-training/xtreme1-the-first-open-source-labeling-annotation-and-visualization-project-is-debuting-at-the-da1d157d1512) as a sandbox project.
17+
It is now hosted in [LF AI & Data Foundation](https://medium.com/multisensory-data-training/xtreme1-the-first-open-source-labeling-annotation-and-visualization-project-is-debuting-at-the-da1d157d1512) as the 1st open source data labeling annotation and visualization project.
1918

2019
# Join community #
2120
[Website](https://xtreme1.io) | [Slack](https://join.slack.com/t/xtreme1group/shared_invite/zt-1jhk36uzr-NpdpYXeQAEHN6rYJy5_6pg) | [Twitter](https://twitter.com/Xtreme1io) | [Medium](https://medium.com/multisensory-data-training) | [Issues](https://github.com/xtreme1-io/xtreme1/issues)
@@ -26,7 +25,7 @@ Join the Xtreme1 community on Slack to share your suggestions, advice, and quest
2625

2726
# Key features #
2827

29-
Image Annotation (B-box, Segmentation) - [YOLOR](https://github.com/WongKinYiu/yolor) & [RITM](https://github.com/saic-vul/ritm_interactive_segmentation) | Lidar-camera Fusion (Frame series) Annotation - [OpenPCDet](https://github.com/open-mmlab/OpenPCDet) & [AB3DMOT](https://github.com/xinshuoweng/AB3DMOT)
28+
Image Annotation (B-box, Segmentation) - [YOLOR](https://github.com/WongKinYiu/yolor) & [RITM](https://github.com/saic-vul/ritm_interactive_segmentation) | Lidar-camera Fusion Annotation - [OpenPCDet](https://github.com/open-mmlab/OpenPCDet) & [AB3DMOT](https://github.com/xinshuoweng/AB3DMOT)
3029
:-------------------------:|:-------------------------:
3130
![](/docs/images/image_ai.gif) | ![](/docs/images/3d_ai.gif)
3231

@@ -41,14 +40,16 @@ Image Annotation (B-box, Segmentation) - [YOLOR](https://github.com/WongKinYiu/y
4140
:five: Find labeling errors and fix them
4241

4342
:six: Model results visualization to help you evaluate your model
43+
44+
:seven: RLHF for Large Language Models :new: (beta version)
4445

45-
Image Data Curation (Visualizing & Debug) - [MobileNetV3](https://github.com/xiaolai-sqlai/mobilenetv3) & [openTSNE](https://github.com/pavlin-policar/openTSNE) | Lidar-camera Fusion Data Curation (Filter by Class name X Cross Dataset)
46+
Image Data Curation (Visualizing & Debug) - [MobileNetV3](https://github.com/xiaolai-sqlai/mobilenetv3) & [openTSNE](https://github.com/pavlin-policar/openTSNE) | RLHF Annotation tool for LLM (beta version)
4647
:-------------------------:|:-------------------------:
47-
![](/docs/images/2d_v.gif) | <img src="/docs/images/dv.png" width="640">
48+
![](/docs/images/2d_v.gif) | <img src="/docs/images/0.7rlhf.webp" width="640">
4849

4950
# Quick start
5051

51-
* Get early access to [Xtreme1 online version](https://app.basic.ai/#/login/) without any installation :rocket:
52+
* Get access to [Xtreme1 online version](https://app.basic.ai/#/login/) without any installation :rocket:
5253

5354
* [Install and Quick start](https://docs.xtreme1.io/xtreme1-docs/get-started/quick-start) :cd:
5455
* [Install with Docker](https://docs.xtreme1.io/xtreme1-docs/get-started/install-with-docker) 🐋
@@ -58,8 +59,8 @@ Image Data Curation (Visualizing & Debug) - [MobileNetV3](https://github.com/xi
5859
Download the latest release package and unzip it.
5960

6061
```bash
61-
wget https://github.com/xtreme1-io/xtreme1/releases/download/v0.6.0/xtreme1-v0.6.0.zip
62-
unzip -d xtreme1-v0.6.0 xtreme1-v0.6.0.zip
62+
wget https://github.com/xtreme1-io/xtreme1/releases/download/v0.7.0/xtreme1-v0.7.0.zip
63+
unzip -d xtreme1-v0.7.0 xtreme1-v0.7.0.zip
6364
```
6465

6566
## Start all services
@@ -99,17 +100,17 @@ For more installation, development and deployment, check out [Xtreme1 Docs](docs
99100
![](/docs/images/3d_annotation2.png)
100101

101102
# License #
102-
This software is licensed under the Apache 2.0 LICENSE. Xtreme1 is a trademark of LF AI Projects.
103+
This software is licensed under the Apache 2.0 LICENSE. Xtreme1 is a trademark of LF AI & Data Foundation.
103104

104105
<img src="/docs/images/LFAI_DATA_horizontal-color.png" width="250">
105106

106107
If Xtreme1 is part of your development process / project / publication, please cite us ❤️ :
107108
```bash
108109
@misc{Xtreme1,
109110
title = {Xtreme1 - The Next GEN Platform For Multisensory Training Data},
110-
year = {2022},
111+
year = {2023},
111112
note = {Software available from https://github.com/xtreme1-io/xtreme1/},
112113
url={https://xtreme1.io/},
113-
author = {LF AI Projects},
114+
author = {LF AI & Data Foundation},
114115
}
115116
```

SECURITY.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
At the moment only the latest release is supported. When you report a security issue,
6+
be sure it can be reproduced in the supported version.
7+
8+
| Version | Supported |
9+
| ------- | ------------------ |
10+
| 0.6.x | :white_check_mark: |
11+
| < 0.6.0 | :x: |
12+
13+
## Reporting a Vulnerability
14+
15+
If you have information about a security issue or vulnerability in the product,
16+
please send an e-mail to [support@basic.ai](mailto:support@basic.ai).
17+
18+
Please provide as much information as possible, including:
19+
- The products and versions affected
20+
- Detailed description of the vulnerability
21+
- Information on known exploits
22+
A member of the xtreme1.io Product Security Team will review your e-mail and contact you to collaborate on resolving the issue.
23+
24+
25+

backend/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ RUN --mount=type=cache,target=/root/.m2 mvn package
77
FROM openjdk:11-jre
88
RUN apt update && \
99
apt install -y iputils-ping curl wget netcat python3 python3-pip git
10-
RUN pip3 install --upgrade --force-reinstall git+https://github.com/xtreme1-io/xtreme1-sdk.git@bddaa8d
10+
RUN pip3 install --upgrade --force-reinstall git+https://github.com/xtreme1-io/xtreme1-sdk.git@d0cf4cc
1111
WORKDIR /app
12-
COPY --from=build /build/target/xtreme1-backend-0.6.0-SNAPSHOT.jar ./app.jar
12+
COPY --from=build /build/target/xtreme1-backend-0.7.0-SNAPSHOT.jar ./app.jar
1313
RUN mkdir -p config
1414
RUN wget 'https://basicai-asset.s3.us-west-2.amazonaws.com/xtreme1/xtreme1-lidar-fusion-trial.zip' -O xtreme1-lidar-fusion-trial.zip
1515
RUN wget 'https://basicai-asset.s3.us-west-2.amazonaws.com/xtreme1/xtreme1-image-trial.zip' -O xtreme1-image-trial.zip

backend/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ cd backend
9292
mvn package
9393

9494
# Using local configuration to start application.
95-
java -Dspring.profiles.active=local -jar target/xtreme1-backend-0.6.0-SNAPSHOT.jar
95+
java -Dspring.profiles.active=local -jar target/xtreme1-backend-0.7.0-SNAPSHOT.jar
9696
```
9797

9898
Now you can access the backend service at `http://localhost:8080/`.

backend/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<groupId>ai.basic</groupId>
1515
<artifactId>xtreme1-backend</artifactId>
16-
<version>0.6.0-SNAPSHOT</version>
16+
<version>0.7.0-SNAPSHOT</version>
1717
<name>Xtreme1 Backend</name>
1818
<description></description>
1919

backend/src/main/java/ai/basic/x1/adapter/dto/request/DatasetRequestDTO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class DatasetRequestDTO {
3434
* Dataset type LIDAR_FUSION, LIDAR_BASIC, IMAGE
3535
*/
3636
@NotEmpty(message = "dataset type cannot be null", groups = GroupInsert.class)
37-
@ValidStringEnum(message = "dataset type must be one of LIDAR_FUSION, LIDAR_BASIC, IMAGE", enumClass = DatasetTypeEnum.class)
37+
@ValidStringEnum(message = "dataset type must be one of LIDAR_FUSION, LIDAR_BASIC, IMAGE,TEXT", enumClass = DatasetTypeEnum.class)
3838
private String type;
3939

4040
/**

backend/src/main/java/ai/basic/x1/entity/DataResultObjectExportBO.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ public class DataResultObjectExportBO {
1919
*/
2020
private String type;
2121

22+
/**
23+
* Class id
24+
*/
25+
private Long classId;
26+
2227
/**
2328
* Class name
2429
*/
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package ai.basic.x1.entity;
2+
3+
import lombok.AllArgsConstructor;
4+
import lombok.Builder;
5+
import lombok.Data;
6+
import lombok.NoArgsConstructor;
7+
8+
@Data
9+
@Builder
10+
@NoArgsConstructor
11+
@AllArgsConstructor
12+
public class TextDataContentBO {
13+
14+
private String id;
15+
16+
private String parentId;
17+
18+
private String text;
19+
20+
private String role;
21+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package ai.basic.x1.entity;
2+
3+
import lombok.AllArgsConstructor;
4+
import lombok.Builder;
5+
import lombok.Data;
6+
import lombok.NoArgsConstructor;
7+
8+
@Data
9+
@Builder
10+
@NoArgsConstructor
11+
@AllArgsConstructor
12+
public class TextDataExportBO extends DataExportBaseBO {
13+
14+
/**
15+
* Text url
16+
*/
17+
private String textUrl;
18+
19+
/**
20+
* The path in the compressed package
21+
*/
22+
private String textZipPath;
23+
24+
}

backend/src/main/java/ai/basic/x1/entity/enums/DatasetTypeEnum.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,9 @@ public enum DatasetTypeEnum {
1717
/**
1818
* IMAGE
1919
*/
20-
IMAGE
20+
IMAGE,
21+
/**
22+
* TEXT
23+
*/
24+
TEXT
2125
}

backend/src/main/java/ai/basic/x1/entity/enums/InputTypeEnum.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ public enum InputTypeEnum {
2222
/**
2323
* TEXT
2424
*/
25-
TEXT
25+
TEXT,
26+
27+
LONG_TEXT
2628

2729
}

0 commit comments

Comments
 (0)