supervisely 6.73.233__py3-none-any.whl → 6.73.234__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of supervisely might be problematic. Click here for more details.
- supervisely/app/widgets/select_cuda/select_cuda.py +10 -4
- {supervisely-6.73.233.dist-info → supervisely-6.73.234.dist-info}/METADATA +1 -1
- {supervisely-6.73.233.dist-info → supervisely-6.73.234.dist-info}/RECORD +7 -7
- {supervisely-6.73.233.dist-info → supervisely-6.73.234.dist-info}/LICENSE +0 -0
- {supervisely-6.73.233.dist-info → supervisely-6.73.234.dist-info}/WHEEL +0 -0
- {supervisely-6.73.233.dist-info → supervisely-6.73.234.dist-info}/entry_points.txt +0 -0
- {supervisely-6.73.233.dist-info → supervisely-6.73.234.dist-info}/top_level.txt +0 -0
|
@@ -47,7 +47,10 @@ class SelectCudaDevice(Widget):
|
|
|
47
47
|
"""
|
|
48
48
|
cuda_devices = self._get_gpu_infos(self._sort_by_free_ram)
|
|
49
49
|
if cuda_devices is None:
|
|
50
|
-
self.
|
|
50
|
+
if self._include_cpu_option is True:
|
|
51
|
+
self._select.set([Select.Item(value="cpu", label="CPU")])
|
|
52
|
+
else:
|
|
53
|
+
self._select.set([Select.Item(None, "No devices available")])
|
|
51
54
|
self._select.disable()
|
|
52
55
|
return
|
|
53
56
|
items = [
|
|
@@ -85,9 +88,12 @@ class SelectCudaDevice(Widget):
|
|
|
85
88
|
return
|
|
86
89
|
|
|
87
90
|
devices = {}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
try:
|
|
92
|
+
cuda.init()
|
|
93
|
+
if not cuda.is_available():
|
|
94
|
+
raise RuntimeError("CUDA is not available")
|
|
95
|
+
except Exception as e:
|
|
96
|
+
logger.warn(f"Failed to initialize CUDA: {e}")
|
|
91
97
|
return
|
|
92
98
|
try:
|
|
93
99
|
for idx in range(cuda.device_count()):
|
|
@@ -423,7 +423,7 @@ supervisely/app/widgets/select_app_session/__init__.py,sha256=47DEQpj8HBSa-_TImW
|
|
|
423
423
|
supervisely/app/widgets/select_app_session/select_app_session.py,sha256=l8Nam2bG8g9re29ra28i5PmmW9LKhkOGAG48dgHFr9M,2038
|
|
424
424
|
supervisely/app/widgets/select_app_session/template.html,sha256=PGr5YL7Ts3ALO9ZQkuYNnRhP7eyYq54sf7Y9EhDbuvE,959
|
|
425
425
|
supervisely/app/widgets/select_cuda/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
426
|
-
supervisely/app/widgets/select_cuda/select_cuda.py,sha256=
|
|
426
|
+
supervisely/app/widgets/select_cuda/select_cuda.py,sha256=TVZrLUtOskEf6VMVim_cbJIikBPTT-PNSTvKlzVnBw4,6119
|
|
427
427
|
supervisely/app/widgets/select_cuda/template.html,sha256=_uvKCMP0nkpSl3FiTUxqy10JZw3q8-9hXCv22W3BDF0,38
|
|
428
428
|
supervisely/app/widgets/select_dataset/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
429
429
|
supervisely/app/widgets/select_dataset/select_dataset.py,sha256=2bltbJ70plGFoF8mpLxAU2huVBce8D6CsCcX9wxO5KU,9713
|
|
@@ -997,9 +997,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
997
997
|
supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
|
|
998
998
|
supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
|
|
999
999
|
supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
|
|
1000
|
-
supervisely-6.73.
|
|
1001
|
-
supervisely-6.73.
|
|
1002
|
-
supervisely-6.73.
|
|
1003
|
-
supervisely-6.73.
|
|
1004
|
-
supervisely-6.73.
|
|
1005
|
-
supervisely-6.73.
|
|
1000
|
+
supervisely-6.73.234.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
1001
|
+
supervisely-6.73.234.dist-info/METADATA,sha256=r4mn1H6-TvF7ah1u4bgMSQ5xi4opQMEteUBMfPwPTlM,33150
|
|
1002
|
+
supervisely-6.73.234.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
1003
|
+
supervisely-6.73.234.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
|
|
1004
|
+
supervisely-6.73.234.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
|
|
1005
|
+
supervisely-6.73.234.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|