bdlb/diabetic_retinopathy_diagnosis/benchmark.py
def download_and_prepare(cls, levels=None) -> None:
    """Downloads dataset from Kaggle, extracts zip files and processes it using
    `tensorflow_datasets`.

    Args:
      levels: (optional) `iterable` of `str`, specifies which
        levels from {'medium', 'realworld'} to prepare,
        if None it prepares all the levels.

    Raises:
      OSError: if `~/.kaggle/kaggle.json` is not set up.
    """
    # Disable GPU for data download, extraction and preparation
    import os
    os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
    cls._download()
    # cls._extract()
    #cls._prepare(levels)
Downloads dataset from Kaggle, extracts zip files and processes it using
    `tensorflow_datasets`.

    Args:
      levels: (optional) `iterable` of `str`, specifies which
        levels from {'medium', 'realworld'} to prepare,
        if None it prepares all the levels.

    Raises:
      OSError: if `~/.kaggle/kaggle.json` is not set up.
    
Downloads dataset from Kaggle, extracts zip files and processes it using
`tensorflow_datasets`.
Downloads dataset from Kaggle extracts zip files and processes it using ` tensorflow_datasets ` .
def download_and_prepare(cls, levels=None) -> None:
    import os
    os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
    cls._download()
def download_and_prepare ( cls , levels = None ) -> None : import os os . environ [ "CUDA_VISIBLE_DEVICES" ] = "-1" cls . _download ( )
Downloads dataset from Kaggle, extracts zip files and processes it using
`tensorflow_datasets`.
Downloads dataset from Kaggle extracts zip files and processes it using ` tensorflow_datasets ` .
"""Downloads dataset from Kaggle, extracts zip files and processes it using
    `tensorflow_datasets`.

    Args:
      levels: (optional) `iterable` of `str`, specifies which
        levels from {'medium', 'realworld'} to prepare,
        if None it prepares all the levels.

    Raises:
      OSError: if `~/.kaggle/kaggle.json` is not set up.
    """ # Disable GPU for data download, extraction and preparation # cls._extract() #cls._prepare(levels)
if `~/.kaggle/kaggle.json` is not set up.
if ` ~ / . kaggle / kaggle . json ` is not set up .
OSError
cls
levels
(optional) `iterable` of `str`, specifies which
levels from {'medium', 'realworld'} to prepare,
if None it prepares all the levels.
( optional ) ` iterable ` of ` str ` specifies which levels from { ' medium ' ' realworld ' } to prepare if None it prepares all the levels .