Closed rubentea16 closed 2 years ago
ModuleNotFoundError: No module named 'bs4'
ModuleNotFoundError: No module named 'skimage'
pip install scikit-image
ModuleNotFoundError: No module named 'osgeo'
solution conda install gdal
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
/tmp/ipykernel_21402/1120933060.py in <module>
----> 1 ac = AerialCactus(root="../data")
~/earth-vision/earthvision/datasets/aerialcactus.py in __init__(self, root, train, transform, target_transform, download)
55 self.extract_file()
56
---> 57 self.img_labels = self.get_path_and_label()
58
59 def __getitem__(self, idx: int) -> Tuple[Any, Any]:
~/earth-vision/earthvision/datasets/aerialcactus.py in get_path_and_label(self)
89 self.root, 'cactus-aerial-photos', self.data_mode, self.data_mode, cat)
90 cat_image = [os.path.join(cat_path, path)
---> 91 for path in os.listdir(cat_path)]
92 cat_label = [enc] * len(cat_image)
93 image_path += cat_image
FileNotFoundError: [Errno 2] No such file or directory: '../data/cactus-aerial-photos/training_set/training_set/cactus'
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
/tmp/ipykernel_21402/271452526.py in <module>
----> 1 dd = DroneDeploy(root="../data", dataset_type='dataset-sample', data_mode = 0,
2 download = True)
~/earth-vision/earthvision/datasets/drone_deploy.py in __init__(self, root, dataset_type, data_mode, transform, target_transform, download)
60
61 if download and not self._check_exists():
---> 62 self.download()
63
64 self.load_dataset()
~/earth-vision/earthvision/datasets/drone_deploy.py in download(self)
69 self.root = os.path.expanduser(self.root)
70 fpath = os.path.join(self.root, self.filename)
---> 71 _urlretrieve(self.resources[self.dataset_type], fpath)
72
73 if not os.path.exists(os.path.join(self.root, self.dataset_type)):
~/earth-vision/earthvision/datasets/utils.py in _urlretrieve(url, filename, chunk_size)
22 ctx.verify_mode = ssl.CERT_NONE
23
---> 24 with open(filename, "wb") as fh:
25 with urllib.request.urlopen(urllib.request.Request(url), context=ctx) as response:
26 with tqdm(total=response.length) as pbar:
FileNotFoundError: [Errno 2] No such file or directory: '../data/dataset-sample.tar.gz'
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
/tmp/ipykernel_21402/1387867453.py in <module>
----> 1 r45 = RESISC45(root="../data", download = True)
~/earth-vision/earthvision/datasets/resisc45.py in __init__(self, root, transform, target_transform, download)
49
50 if download and not self._check_exists():
---> 51 self.download()
52 self.extract_file()
53
~/earth-vision/earthvision/datasets/resisc45.py in download(self)
101 """Download and extract file."""
102 file_url = posixpath.join(self.mirrors, self.resources)
--> 103 _urlretrieve(file_url, os.path.join(self.root, self.resources))
104
105 def extract_file(self) -> None:
~/earth-vision/earthvision/datasets/utils.py in _urlretrieve(url, filename, chunk_size)
22 ctx.verify_mode = ssl.CERT_NONE
23
---> 24 with open(filename, "wb") as fh:
25 with urllib.request.urlopen(urllib.request.Request(url), context=ctx) as response:
26 with tqdm(total=response.length) as pbar:
FileNotFoundError: [Errno 2] No such file or directory: '../data/NWPU-RESISC45.zip'
please check if the root path is exists as well as other classes @rubentea16
@rubentea16 is it done?
--------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_21402/1120933060.py in <module> ----> 1 ac = AerialCactus(root="../data") ~/earth-vision/earthvision/datasets/aerialcactus.py in __init__(self, root, train, transform, target_transform, download) 55 self.extract_file() 56 ---> 57 self.img_labels = self.get_path_and_label() 58 59 def __getitem__(self, idx: int) -> Tuple[Any, Any]: ~/earth-vision/earthvision/datasets/aerialcactus.py in get_path_and_label(self) 89 self.root, 'cactus-aerial-photos', self.data_mode, self.data_mode, cat) 90 cat_image = [os.path.join(cat_path, path) ---> 91 for path in os.listdir(cat_path)] 92 cat_label = [enc] * len(cat_image) 93 image_path += cat_image FileNotFoundError: [Errno 2] No such file or directory: '../data/cactus-aerial-photos/training_set/training_set/cactus'
coba test lagi dong ini, di gw ga error dan kebikin folder nya @andreaschandra
88