Skip to content

Commit 99e6969

Browse files
authored
Merge branch 'master' into da/repr2
2 parents cdf38d2 + 0c90aa3 commit 99e6969

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@ Nucleus is a new way—the right way—to develop ML models, helping us move awa
1717

1818
## Installation
1919

20-
### Editable mode
21-
22-
`$ pip install -e . `
23-
24-
### As a Normal Package
25-
26-
`$ pip install git+ssh://git@github.com/scaleapi/nucleus-python-client.git`
20+
`$ pip install scale-nucleus`
2721

2822
## Usage
2923

@@ -159,6 +153,15 @@ client.delete_model_run("model_run_id")
159153

160154
## For Developers
161155

156+
Clone from github and install as editable
157+
158+
```
159+
git clone git@github.com:scaleapi/nucleus-python-client.git
160+
cd nucleus-python-client
161+
pip3 install poetry
162+
poetry install
163+
```
164+
162165
Please install the pre-commit hooks by running the following commands:
163166
```python
164167
pip install pre-commit

nucleus/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def annotate(
111111
self,
112112
annotations: List[Union[BoxAnnotation, PolygonAnnotation]],
113113
update: Optional[bool] = DEFAULT_ANNOTATION_UPDATE_MODE,
114-
batch_size: int = 20,
114+
batch_size: int = 5000,
115115
) -> dict:
116116
"""
117117
Uploads ground truth annotations for a given dataset.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pytest = "^6.2.3"
4343
pylint = "^2.7.4"
4444
boto3 = "^1.17.51"
4545

46+
4647
[build-system]
4748
requires = ["poetry-core>=1.0.0"]
4849
build-backend = "poetry.core.masonry.api"

tests/helpers.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
TEST_DATASET_NAME = "[PyTest] Test Dataset"
1818
TEST_SLICE_NAME = "[PyTest] Test Slice"
1919
TEST_IMG_URLS = [
20-
"s3://scaleapi-attachments/BDD/BDD/bdd100k/images/100k/train/6dd63871-831611a6.jpg",
21-
"s3://scaleapi-attachments/BDD/BDD/bdd100k/images/100k/train/82c1005c-e2d1d94f.jpg",
22-
"s3://scaleapi-attachments/BDD/BDD/bdd100k/images/100k/train/7f2e1814-6591087d.jpg",
23-
"s3://scaleapi-attachments/BDD/BDD/bdd100k/images/100k/train/06924f46-1708b96f.jpg",
24-
"s3://scaleapi-attachments/BDD/BDD/bdd100k/images/100k/train/89b42832-10d662f4.jpg",
20+
"s3://scaleapi-cust-lidar/Hesai/raw_data/2019-5-11/hesai_data_1557540003/undistorted/front_camera/1557540143.650423lf.jpg",
21+
"s3://scaleapi-cust-lidar/Hesai/raw_data/2019-5-11/hesai_data_1557540003/undistorted/back_camera/1557540143.600352lf.jpg",
22+
"s3://scaleapi-cust-lidar/Hesai/raw_data/2019-5-11/hesai_data_1557540003/undistorted/right_camera/1557540143.681730lf.jpg",
23+
"s3://scaleapi-cust-lidar/Hesai/raw_data/2019-5-11/hesai_data_1557540003/undistorted/front_left_camera/1557540143.639619lf.jpg",
24+
"s3://scaleapi-cust-lidar/Hesai/raw_data/2019-5-11/hesai_data_1557540003/undistorted/front_right_camera/1557540143.661212lf.jpg",
2525
]
2626
TEST_DATASET_ITEMS = [
2727
DatasetItem(TEST_IMG_URLS[0], "1"),

0 commit comments

Comments
 (0)