2025-03-10 01:07:57 +04:00

3.0 KiB

In [3]:
import kagglehub

# Download latest version
path = kagglehub.dataset_download("stealthknight/bird-vs-drone")

print("Path to dataset files:", path)
d:\МИИ\AIM-PIbd-31-Kouvshinoff-T-A\laba\Lib\site-packages\tqdm\auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
  from .autonotebook import tqdm as notebook_tqdm
Downloading from https://www.kaggle.com/api/v1/datasets/download/stealthknight/bird-vs-drone?dataset_version_number=1...
100%|██████████| 1.05G/1.05G [06:47<00:00, 2.77MB/s]
Extracting files...

Path to dataset files: C:\Users\bingo\.cache\kagglehub\datasets\stealthknight\bird-vs-drone\versions\1
In [13]:
import os

# Выводим содержимое
for item in os.listdir(path):
    print(item+":")
    if os.path.isdir(path+"/"+item):
        # Выводим содержимое
        for iitem in os.listdir(path+"/"+item):
            print("\t"+iitem+":")
            if os.path.isdir(path+"/"+item+"/"+iitem):
                # Выводим содержимое
                for iiitem in os.listdir(path+"/"+item+"/"+iitem):
                    print("\t"+"\t"+iiitem)
Dataset:
	README.dataset.txt:
	README.md:
	README.roboflow.txt:
	test:
		images
		labels
	train:
		images
		labels
	valid:
		images
		labels