Skip to content

Commit

Permalink
Merge pull request #79 from supervisely-ecosystem/debug-connection-error
Browse files Browse the repository at this point in the history
Add Protocol Exception Handling
  • Loading branch information
GoldenAnpu authored Dec 16, 2024
2 parents 7cb9f69 + 8d90fa9 commit 182162a
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 21 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ RUN pip3 install onnx==1.12.0

RUN apt-get install ffmpeg libgeos-dev libsm6 libxext6 libexiv2-dev libxrender-dev libboost-all-dev -y

RUN python3 -m pip install supervisely==6.73.212
RUN python3 -m pip install supervisely[tracking]==6.73.212
RUN python3 -m pip install supervisely==6.73.256
RUN python3 -m pip install supervisely[tracking]==6.73.256
RUN pip3 install requests==2.28.2 urllib3==1.26.15
RUN pip3 install packaging==21.3
RUN python3 -c "from supervisely.nn.tracker import *"
RUN python3 -m pip install supervisely[model-benchmark]==6.73.212
RUN python3 -m pip install supervisely[model-benchmark]==6.73.256
RUN pip3 install dill==0.3.8

RUN apt-get update
Expand Down
9 changes: 4 additions & 5 deletions .vscode/launch_runtimes.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@
"env": {
"PYTHONPATH": "${workspaceFolder}:${PYTHONPATH}:/root/supervisely",
"LOG_LEVEL": "DEBUG",
// "ENV": "production",
"TEAM_ID": "440",
"DEBUG_WITH_SLY_NET": "1",
"PROJECT_ID": "41442",
"WORKSPACE_ID": "1076",
"WORKSPACE_ID": "1076"
}
},
{
Expand All @@ -64,7 +63,7 @@
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}:${workspaceFolder}/serve:${PYTHONPATH}:/root/supervisely",
"LOG_LEVEL": "DEBUG",
"LOG_LEVEL": "DEBUG"
}
},
{
Expand All @@ -75,8 +74,8 @@
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}:${PYTHONPATH}:/root/supervisely",
"PYTHONPATH": "${workspaceFolder}:${PYTHONPATH}:/root/supervisely"
}
},
}
]
}
5 changes: 2 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ RUN pip3 install ruamel.yaml==0.17.21
RUN pip3 install ultralytics==8.3.15
RUN pip3 install onnxruntime-gpu==1.18.0
RUN pip3 install dill==0.2.8.2 tf2onnx==1.16.1 skl2onnx==1.17.0
RUN pip3 uninstall -y nvidia-cudnn-cu11
RUN python3 -m pip install supervisely[tracking,model-benchmark]==6.73.243
RUN python3 -m pip install supervisely[tracking,model-benchmark]==6.73.256
RUN python3 -c "from supervisely.nn.tracker import *"

LABEL python_sdk_version=6.73.243
LABEL python_sdk_version=6.73.256
4 changes: 2 additions & 2 deletions docker/publish.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
docker build -t supervisely/yolov8:1.0.34 . && \
docker push supervisely/yolov8:1.0.34
docker build -t supervisely/yolov8:1.0.41 . && \
docker push supervisely/yolov8:1.0.41
2 changes: 1 addition & 1 deletion export_weights/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"files_file"
]
},
"docker_image": "supervisely/yolov8:1.0.39",
"docker_image": "supervisely/yolov8:1.0.41",
"instance_version": "6.12.12",
"main_script": "export_weights/src/main.py",
"modal_template": "export_weights/src/modal.html",
Expand Down
2 changes: 1 addition & 1 deletion serve/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"deployed_nn"
],
"community_agent": false,
"docker_image": "supervisely/yolov8:1.0.40",
"docker_image": "supervisely/yolov8:1.0.41",
"instance_version": "6.12.12",
"entrypoint": "python3 -m uvicorn src.main:m.app --app-dir ./serve --host 0.0.0.0 --port 8000 --ws websockets",
"port": 8000,
Expand Down
2 changes: 1 addition & 1 deletion serve/dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# git+https://github.com/supervisely/supervisely.git@some-test-branch

supervisely[model-benchmark]==6.73.250
supervisely[model-benchmark]==6.73.256
ultralytics==8.2.26
--extra-index-url https://download.pytorch.org/whl/cu113
torch==1.10.1+cu113
Expand Down
2 changes: 1 addition & 1 deletion train/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM supervisely/yolov8:1.0.18
FROM supervisely/yolov8:1.0.41

# RUN pip3 install git+https://github.com/supervisely/supervisely.git@model-benchmark
RUN pip3 install setuptools==69.5.1
Expand Down
2 changes: 1 addition & 1 deletion train/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"configurations": [
{
"name": "Uvicorn",
"type": "python",
"type": "debugpy",
"request": "launch",
"module": "uvicorn",
"args": [
Expand Down
2 changes: 1 addition & 1 deletion train/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"train"
],
"description": "Dashboard to configure, start and monitor YOLOv8 | v9 | v10 | v11 training",
"docker_image": "supervisely/yolov8:1.0.40",
"docker_image": "supervisely/yolov8:1.0.41",
"instance_version": "6.12.12",
"entrypoint": "python3 -m uvicorn src.main:app --app-dir ./train --host 0.0.0.0 --port 8000 --ws websockets",
"task_location": "workspace_tasks",
Expand Down
2 changes: 1 addition & 1 deletion train/dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
supervisely[model-benchmark]==6.73.250
supervisely[model-benchmark]==6.73.256
2 changes: 1 addition & 1 deletion train/src/dataset_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def _no_cache_download(
dataset_ids = [dataset_info.id for dataset_info in dataset_infos]
total = sum([dataset_info.images_count for dataset_info in dataset_infos])
try:
with progress(message="Downloading input data...", total=total) as pbar:
with progress(message="Downloading input data...", total=total) as pbar:
sly.download_async(
api=api,
project_id=project_info.id,
Expand Down

0 comments on commit 182162a

Please sign in to comment.