after running :
If you use your own dataset, you will need to run the code below to generate the best anchor shape
!tao model yolo_v4 kmeans -l $DATA_DOWNLOAD_DIR/kitti_split/training/label
-i $DATA_DOWNLOAD_DIR/kitti_split/training/image
-n 9
-x 1248
-y 384
The anchor shape generated by this script is sorted. Write the first 3 into small_anchor_shape in the config
file. Write middle 3 into mid_anchor_shape. Write last 3 into big_anchor_shape.
getting error :
2024-05-29 08:03:11,990 [TAO Toolkit] [INFO] root 160: Registry: [‘nvcr.io’]
Traceback (most recent call last):
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/requests/adapters.py”, line 555, in send
conn = self.get_connection_with_tls_context(
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/requests/adapters.py”, line 411, in get_connection_with_tls_context
conn = self.poolmanager.connection_from_host(
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/urllib3/poolmanager.py”, line 246, in connection_from_host
return self.connection_from_context(request_context)
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/urllib3/poolmanager.py”, line 258, in connection_from_context
raise URLSchemeUnknown(scheme)
urllib3.exceptions.URLSchemeUnknown: Not supported URL scheme http+docker
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/docker/api/client.py”, line 205, in _retrieve_server_version
return self.version(api_version=False)[“ApiVersion”]
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/docker/api/daemon.py”, line 181, in version
return self._result(self._get(url), json=True)
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/docker/utils/decorators.py”, line 46, in inner
return f(self, *args, **kwargs)
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/docker/api/client.py”, line 228, in _get
return self.get(url, **self._set_request_timeout(kwargs))
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/requests/sessions.py”, line 602, in get
return self.request(“GET”, url, **kwargs)
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/requests/sessions.py”, line 589, in request
resp = self.send(prep, **send_kwargs)
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/requests/sessions.py”, line 703, in send
r = adapter.send(request, **kwargs)
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/requests/adapters.py”, line 559, in send
raise InvalidURL(e, request=request)
requests.exceptions.InvalidURL: Not supported URL scheme http+docker
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/ubuntu/.virtualenvs/launcher/bin/tao”, line 8, in
sys.exit(main())
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/nvidia_tao_cli/entrypoint/tao_launcher.py”, line 134, in main
instance.launch_command(
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/nvidia_tao_cli/components/instance_handler/local_instance.py”, line 357, in launch_command
docker_handler = self.handler_map[
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/nvidia_tao_cli/components/instance_handler/local_instance.py”, line 203, in handler_map
handler_map[handler_key] = DockerHandler(
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/nvidia_tao_cli/components/docker_handler/docker_handler.py”, line 92, in init
self._docker_client = docker.from_env()
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/docker/client.py”, line 84, in from_env
return cls(
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/docker/client.py”, line 40, in init
self.api = APIClient(*args, **kwargs)
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/docker/api/client.py”, line 188, in init
self._version = self._retrieve_server_version()
File “/home/ubuntu/.virtualenvs/launcher/lib/python3.10/site-packages/docker/api/client.py”, line 212, in _retrieve_server_version
raise DockerException(
docker.errors.DockerException: Error while fetching server API version: Not supported URL scheme http+docker