ModGeom/check.ipynb

30 KiB
Raw Permalink Blame History

import cv2
import matplotlib.pyplot as plt
import torch
from IPython.display import Video
from torchinfo import summary
from super_gradients.training import models
from super_gradients.training import Trainer
from super_gradients.training import dataloaders
from super_gradients.training.dataloaders.dataloaders import (
    coco_detection_yolo_format_train, 
    coco_detection_yolo_format_val)

model = models.get("yolo_nas_l", pretrained_weights="coco")
The console stream is logged into C:\Users\tomas\sg_logs\console.log
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[1], line 6
      4 from IPython.display import Video
      5 from torchinfo import summary
----> 6 from super_gradients.training import models
      7 from super_gradients.training import Trainer
      8 from super_gradients.training import dataloaders

File c:\Users\tomas\anaconda3\lib\site-packages\super_gradients\__init__.py:3
      1 __version__ = "3.6.0"
----> 3 from super_gradients.common import init_trainer, is_distributed, object_names
      4 from super_gradients.training import losses, utils, datasets_utils, DataAugmentation, Trainer, KDTrainer, QATTrainer
      5 from super_gradients.common.registry.registry import ARCHITECTURES

File c:\Users\tomas\anaconda3\lib\site-packages\super_gradients\common\__init__.py:4
      2 from super_gradients.common.crash_handler import setup_crash_handler
      3 from super_gradients.common.decorators import explicit_params_validation, singleton
----> 4 from super_gradients.common.aws_connection import AWSConnector
      5 from super_gradients.common.data_connection import S3Connector
      6 from super_gradients.common.data_interface import DatasetDataInterface, ADNNModelRepositoryDataInterfaces

File c:\Users\tomas\anaconda3\lib\site-packages\super_gradients\common\aws_connection\__init__.py:2
      1 # PACKAGE IMPORTS FOR EXTERNAL USAGE
----> 2 from super_gradients.common.aws_connection.aws_connector import AWSConnector
      4 __all__ = ["AWSConnector"]

File c:\Users\tomas\anaconda3\lib\site-packages\super_gradients\common\aws_connection\aws_connector.py:3
      1 import sys
----> 3 import boto3
      4 import logging
      5 from botocore.exceptions import ClientError, ProfileNotFound

File c:\Users\tomas\anaconda3\lib\site-packages\boto3\__init__.py:17
     14 import logging
     16 from boto3.compat import _warn_deprecated_python
---> 17 from boto3.session import Session
     19 __author__ = 'Amazon Web Services'
     20 __version__ = '1.34.33'

File c:\Users\tomas\anaconda3\lib\site-packages\boto3\session.py:17
     14 import copy
     15 import os
---> 17 import botocore.session
     18 from botocore.client import Config
     19 from botocore.exceptions import DataNotFoundError, UnknownServiceError

File c:\Users\tomas\anaconda3\lib\site-packages\botocore\session.py:26
     23 import socket
     24 import warnings
---> 26 import botocore.client
     27 import botocore.configloader
     28 import botocore.credentials

File c:\Users\tomas\anaconda3\lib\site-packages\botocore\client.py:15
      1 # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License"). You
   (...)
     11 # ANY KIND, either express or implied. See the License for the specific
     12 # language governing permissions and limitations under the License.
     13 import logging
---> 15 from botocore import waiter, xform_name
     16 from botocore.args import ClientArgsCreator
     17 from botocore.auth import AUTH_TYPE_MAPS

File c:\Users\tomas\anaconda3\lib\site-packages\botocore\waiter.py:18
     14 import time
     16 import jmespath
---> 18 from botocore.docs.docstring import WaiterDocstring
     19 from botocore.utils import get_service_module_name
     21 from . import xform_name

File c:\Users\tomas\anaconda3\lib\site-packages\botocore\docs\__init__.py:15
      1 # Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License"). You
   (...)
     11 # ANY KIND, either express or implied. See the License for the specific
     12 # language governing permissions and limitations under the License.
     13 import os
---> 15 from botocore.docs.service import ServiceDocumenter
     17 DEPRECATED_SERVICE_NAMES = {'sms-voice'}
     20 def generate_docs(root_dir, session):

File c:\Users\tomas\anaconda3\lib\site-packages\botocore\docs\service.py:14
      1 # Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License"). You
   (...)
     11 # ANY KIND, either express or implied. See the License for the specific
     12 # language governing permissions and limitations under the License.
     13 from botocore.docs.bcdoc.restdoc import DocumentStructure
---> 14 from botocore.docs.client import (
     15     ClientContextParamsDocumenter,
     16     ClientDocumenter,
     17     ClientExceptionsDocumenter,
     18 )
     19 from botocore.docs.paginator import PaginatorDocumenter
     20 from botocore.docs.waiter import WaiterDocumenter

File c:\Users\tomas\anaconda3\lib\site-packages\botocore\docs\client.py:18
     16 from botocore.compat import OrderedDict
     17 from botocore.docs.bcdoc.restdoc import DocumentStructure
---> 18 from botocore.docs.example import ResponseExampleDocumenter
     19 from botocore.docs.method import (
     20     document_custom_method,
     21     document_model_driven_method,
     22     get_instance_public_methods,
     23 )
     24 from botocore.docs.params import ResponseParamsDocumenter

File c:\Users\tomas\anaconda3\lib\site-packages\botocore\docs\example.py:13
      1 # Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License"). You
   (...)
     11 # ANY KIND, either express or implied. See the License for the specific
     12 # language governing permissions and limitations under the License.
---> 13 from botocore.docs.shape import ShapeDocumenter
     14 from botocore.docs.utils import py_default
     17 class BaseExampleDocumenter(ShapeDocumenter):

File c:\Users\tomas\anaconda3\lib\site-packages\botocore\docs\shape.py:19
      1 # Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License"). You
   (...)
     17 # inherited from a Documenter class with the appropriate methods
     18 # and attributes.
---> 19 from botocore.utils import is_json_value_header
     22 class ShapeDocumenter:
     23     EVENT_NAME = ''

File c:\Users\tomas\anaconda3\lib\site-packages\botocore\utils.py:39
     37 import botocore
     38 import botocore.awsrequest
---> 39 import botocore.httpsession
     41 # IP Regexes retained for backwards compatibility
     42 from botocore.compat import HEX_PAT  # noqa: F401

File c:\Users\tomas\anaconda3\lib\site-packages\botocore\httpsession.py:45
     43         warnings.simplefilter("ignore", category=DeprecationWarning)
     44         # Always import the original SSLContext, even if it has been patched
---> 45         from urllib3.contrib.pyopenssl import (
     46             orig_util_SSLContext as SSLContext,
     47         )
     48 except ImportError:
     49     from urllib3.util.ssl_ import SSLContext

File c:\Users\tomas\anaconda3\lib\site-packages\urllib3\contrib\pyopenssl.py:50
      1 """
      2 TLS with SNI_-support for Python 2. Follow these instructions if you would
      3 like to verify TLS certificates in Python 2. Note, the default libraries do
   (...)
     46 .. _idna: https://github.com/kjd/idna
     47 """
     48 from __future__ import absolute_import
---> 50 import OpenSSL.crypto
     51 import OpenSSL.SSL
     52 from cryptography import x509

File c:\Users\tomas\anaconda3\lib\site-packages\OpenSSL\__init__.py:8
      1 # Copyright (C) AB Strakt
      2 # See LICENSE for details.
      4 """
      5 pyOpenSSL - A simple wrapper around the OpenSSL library
      6 """
----> 8 from OpenSSL import SSL, crypto
      9 from OpenSSL.version import (
     10     __author__,
     11     __copyright__,
   (...)
     17     __version__,
     18 )
     21 __all__ = [
     22     "SSL",
     23     "crypto",
   (...)
     31     "__version__",
     32 ]

File c:\Users\tomas\anaconda3\lib\site-packages\OpenSSL\SSL.py:19
      7 from weakref import WeakValueDictionary
      9 from OpenSSL._util import (
     10     UNSPECIFIED as _UNSPECIFIED,
     11     exception_from_error_queue as _exception_from_error_queue,
   (...)
     17     text_to_bytes_and_warn as _text_to_bytes_and_warn,
     18 )
---> 19 from OpenSSL.crypto import (
     20     FILETYPE_PEM,
     21     PKey,
     22     X509,
     23     X509Name,
     24     X509Store,
     25     _PassphraseHelper,
     26 )
     28 __all__ = [
     29     "OPENSSL_VERSION_NUMBER",
     30     "SSLEAY_VERSION",
   (...)
    125     "Connection",
    126 ]
    129 OPENSSL_VERSION_NUMBER = _lib.OPENSSL_VERSION_NUMBER

File c:\Users\tomas\anaconda3\lib\site-packages\OpenSSL\crypto.py:1616
   1612         ext._extension = _ffi.gc(extension, _lib.X509_EXTENSION_free)
   1613         return ext
-> 1616 class X509StoreFlags:
   1617     """
   1618     Flags for X509 verification, used to change the behavior of
   1619     :class:`X509Store`.
   (...)
   1624         https://www.openssl.org/docs/manmaster/man3/X509_VERIFY_PARAM_set_flags.html
   1625     """
   1627     CRL_CHECK: int = _lib.X509_V_FLAG_CRL_CHECK

File c:\Users\tomas\anaconda3\lib\site-packages\OpenSSL\crypto.py:1635, in X509StoreFlags()
   1633 EXPLICIT_POLICY: int = _lib.X509_V_FLAG_EXPLICIT_POLICY
   1634 INHIBIT_MAP: int = _lib.X509_V_FLAG_INHIBIT_MAP
-> 1635 NOTIFY_POLICY: int = _lib.X509_V_FLAG_NOTIFY_POLICY
   1636 CHECK_SS_SIGNATURE: int = _lib.X509_V_FLAG_CHECK_SS_SIGNATURE
   1637 PARTIAL_CHAIN: int = _lib.X509_V_FLAG_PARTIAL_CHAIN

AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'