Skip to content

Commit 74cb384

Browse files
author
SaiNikhileshReddy
committed
removed delete funciton and fixed cats&dogs dataset
1 parent 5a40833 commit 74cb384

File tree

11 files changed

+32
-127
lines changed

11 files changed

+32
-127
lines changed

CSSD/CSSD.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,7 @@
177177
},
178178
"outputs": [],
179179
"source": [
180-
"# hubpath = './cssd-hub'\n",
181-
"hubpath = 'hub://activeloop/cssd'\n",
182-
"# hub.delete(hubpath, large_ok=True)\n",
180+
"hubpath = 'hub://<username>/cssd'\n",
183181
"ds = hub.dataset(hubpath)\n",
184182
"\n",
185183
"start = time.time()\n",
@@ -224,7 +222,7 @@
224222
},
225223
"outputs": [],
226224
"source": [
227-
"hubpath = 'hub://activeloop/cssd'\n",
225+
"hubpath = 'hub://<username>/cssd'\n",
228226
"ds = hub.load(hubpath)\n",
229227
"print(ds.tensors)"
230228
]

Cats&Dogs/KaggleCats&Dogs.ipynb

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"cell_type": "code",
54-
"execution_count": 15,
54+
"execution_count": 2,
5555
"metadata": {
5656
"id": "funZY-1Jjojg"
5757
},
@@ -65,7 +65,7 @@
6565
},
6666
{
6767
"cell_type": "code",
68-
"execution_count": 3,
68+
"execution_count": 5,
6969
"metadata": {
7070
"id": "8l1NYRCQjXCd"
7171
},
@@ -96,7 +96,7 @@
9696
},
9797
{
9898
"cell_type": "code",
99-
"execution_count": 3,
99+
"execution_count": 6,
100100
"metadata": {},
101101
"outputs": [],
102102
"source": [
@@ -105,7 +105,7 @@
105105
},
106106
{
107107
"cell_type": "code",
108-
"execution_count": 4,
108+
"execution_count": 7,
109109
"metadata": {
110110
"cellView": "form",
111111
"colab": {
@@ -134,7 +134,7 @@
134134
},
135135
{
136136
"cell_type": "code",
137-
"execution_count": 5,
137+
"execution_count": 8,
138138
"metadata": {
139139
"id": "5LXm8-8PoC0d"
140140
},
@@ -145,7 +145,7 @@
145145
},
146146
{
147147
"cell_type": "code",
148-
"execution_count": null,
148+
"execution_count": 14,
149149
"metadata": {
150150
"colab": {
151151
"base_uri": "https://localhost:8080/"
@@ -169,8 +169,7 @@
169169
}
170170
],
171171
"source": [
172-
"hubname = 'hub://activeloop/kaggle-cats-dogs'\n",
173-
"hub.delete(hubname)\n",
172+
"hubname = 'hub://<username>/kaggle-cats-dogs'\n",
174173
"ds = hub.dataset(hubname)\n",
175174
"\n",
176175
"class_labels = ['Cat', 'Dog']\n",

ECSSD/ECSSD.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@
141141
},
142142
"outputs": [],
143143
"source": [
144-
"# hubpath = './ecssd-hub'\n",
145-
"hubpath = 'hub://activeloop/ecssd'\n",
146-
"hub.delete(hubpath, large_ok=True)\n",
144+
"hubpath = 'hub://<username>/ecssd'\n",
147145
"ds = hub.dataset(hubpath)\n",
148146
"\n",
149147
"start = time.time()\n",
@@ -189,7 +187,7 @@
189187
},
190188
"outputs": [],
191189
"source": [
192-
"hubpath = 'hub://activeloop/ecssd'\n",
190+
"hubpath = 'hub://<username>/ecssd'\n",
193191
"ds = hub.load(hubpath)\n",
194192
"print(ds.tensors)"
195193
]

FER2013/FER2013.ipynb

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -171,24 +171,6 @@
171171
"!rm -rf FER*"
172172
]
173173
},
174-
{
175-
"cell_type": "code",
176-
"execution_count": null,
177-
"metadata": {
178-
"colab": {
179-
"base_uri": "https://localhost:8080/"
180-
},
181-
"id": "1rC30DL-bQzj",
182-
"outputId": "fa9fcd2d-dbba-4935-b826-7af6a4a5e9e9"
183-
},
184-
"outputs": [],
185-
"source": [
186-
"filename_path = 'hub://activeloop/FER2013'\n",
187-
"hub.delete(filename_path+'-Train')\n",
188-
"hub.delete(filename_path+'-Public-Test')\n",
189-
"hub.delete(filename_path+'-Private-Test')"
190-
]
191-
},
192174
{
193175
"cell_type": "code",
194176
"execution_count": null,
@@ -201,7 +183,7 @@
201183
},
202184
"outputs": [],
203185
"source": [
204-
"filename_path = 'hub://activeloop/fer2013'\n",
186+
"filename_path = 'hub://<username>/fer2013'\n",
205187
"train_ds = hub.dataset(filename_path+'-train')\n",
206188
"public_test_ds = hub.dataset(filename_path+'-public-test')\n",
207189
"private_test_ds = hub.dataset(filename_path+'-private-test')"

HMDB51/HMDB51.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"source": [
153153
"class_labels = [txt.split('/')[-1].split('_test')[0] for txt in txts]\n",
154154
"\n",
155-
"!rm -rf dataset\n",
155+
"# !rm -rf dataset\n",
156156
"!mkdir -p dataset/train dataset/test dataset/extras\n",
157157
"\n",
158158
"hmdb_path = 'hmdb'\n",
@@ -288,9 +288,7 @@
288288
"base_path = 'dataset'\n",
289289
"subfolder = 'extras' # ['extras', 'train', 'test']\n",
290290
"\n",
291-
"# hubname = f'./hub-{subfolder}'\n",
292-
"hubname = f'hub://activeloop/hmdb51-{subfolder}'\n",
293-
"# hub.delete(hubname, large_ok=True, force=True)\n",
291+
"hubname = f'hub://<username>/hmdb51-{subfolder}'\n",
294292
"ds = hub.dataset(hubname)\n",
295293
"\n",
296294
"dataset_path = os.path.join(base_path, subfolder)\n",

PPM100/PPM100Dataset.ipynb

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,6 @@
119119
"!activeloop reporting --off"
120120
]
121121
},
122-
{
123-
"cell_type": "code",
124-
"execution_count": null,
125-
"metadata": {
126-
"id": "szrK3dZDifoj"
127-
},
128-
"outputs": [],
129-
"source": [
130-
"filename_path = 'hub://activeloop/PPM100'\n",
131-
"hub.delete(filename_path, force=True)"
132-
]
133-
},
134122
{
135123
"cell_type": "code",
136124
"execution_count": null,
@@ -143,7 +131,7 @@
143131
},
144132
"outputs": [],
145133
"source": [
146-
"filename_path = 'hub://activeloop/ppm100'\n",
134+
"filename_path = 'hub://<username>/ppm100'\n",
147135
"ds = hub.dataset(filename_path)"
148136
]
149137
},

PlantVillage/PlantVillageDataset.ipynb

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,7 @@
303303
}
304304
],
305305
"source": [
306-
"filename_path = 'hub://activeloop/plantvillage-without-augmentation'\n",
307-
"# hub.delete(filename_path, large_ok=True)\n",
306+
"filename_path = 'hub://<username>/plantvillage-without-augmentation'\n",
308307
"ds = hub.dataset(filename_path)\n",
309308
"\n",
310309
"with ds:\n",
@@ -385,8 +384,7 @@
385384
}
386385
],
387386
"source": [
388-
"filename_path = 'hub://activeloop/plantvillage-with-augmentation'\n",
389-
"# hub.delete(filename_path, large_ok=True)\n",
387+
"filename_path = 'hub://<username>/plantvillage-with-augmentation'\n",
390388
"ds = hub.dataset(filename_path)\n",
391389
"\n",
392390
"with ds:\n",
@@ -417,26 +415,17 @@
417415
},
418416
{
419417
"cell_type": "code",
420-
"execution_count": 42,
418+
"execution_count": null,
421419
"metadata": {
422420
"colab": {
423421
"base_uri": "https://localhost:8080/"
424422
},
425423
"id": "Qj6catLfDeXN",
426424
"outputId": "3917e42f-8367-4292-828a-e047885d4487"
427425
},
428-
"outputs": [
429-
{
430-
"name": "stdout",
431-
"output_type": "stream",
432-
"text": [
433-
"hub://activeloop/plantvillage-with-augmentation loaded successfully.\n",
434-
"This dataset can be visualized at https://app.activeloop.ai/activeloop/plantvillage-with-augmentation.\n"
435-
]
436-
}
437-
],
426+
"outputs": [],
438427
"source": [
439-
"filename_path = 'hub://activeloop/plantvillage-with-augmentation'\n",
428+
"filename_path = 'hub://<username>/plantvillage-with-augmentation'\n",
440429
"ds = hub.dataset(filename_path)"
441430
]
442431
},

SeedsUCI/SeedsUCI.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,7 @@
218218
},
219219
"outputs": [],
220220
"source": [
221-
"filename_path = 'hub://activeloop/seeds-uci'\n",
222-
"# hub.delete(filename_path)\n",
221+
"filename_path = 'hub://<username>/seeds-uci'\n",
223222
"ds = hub.dataset(filename_path)\n",
224223
"\n",
225224
"with ds:\n",
@@ -249,7 +248,7 @@
249248
},
250249
"outputs": [],
251250
"source": [
252-
"filename_path = 'hub://activeloop/seeds-uci'\n",
251+
"filename_path = 'hub://<username>/seeds-uci'\n",
253252
"ds = hub.dataset(filename_path)"
254253
]
255254
},

coco-text/COCO-Text.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,7 @@
295295
"source": [
296296
"# train or val\n",
297297
"sub_dataset_name = 'train'\n",
298-
"hubpath = 'hub://activeloop/coco-text-{}'.format(sub_dataset_name)\n",
299-
"# hubpath = './coco-text-{}'.format(sub_dataset_name)\n",
300-
"hub.delete(hubpath, large_ok=True)\n",
298+
"hubpath = 'hub://<username>/coco-text-{}'.format(sub_dataset_name)\n",
301299
"ds = hub.dataset(hubpath)"
302300
]
303301
},

esc50/ESC50.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,7 @@
180180
"metadata": {},
181181
"outputs": [],
182182
"source": [
183-
"# hubname = './esc50-hub'\n",
184-
"hubname = 'hub://activeloop/esc50'\n",
185-
"hub.delete(hubname, large_ok=True)\n",
183+
"hubname = 'hub://<username>/esc50'\n",
186184
"ds = hub.dataset(hubname)\n",
187185
"\n",
188186
"start = time.time()\n",

0 commit comments

Comments
 (0)