updates urls
Browse files- NIST-In-Situ-IN625-LPBF-Overhangs.py +4 -4
- load_dataset.ipynb +22 -15
NIST-In-Situ-IN625-LPBF-Overhangs.py
CHANGED
|
@@ -25,11 +25,11 @@ LAYER_TABLE_BASE_URLS = []
|
|
| 25 |
# Layers 1 to 99 inclusive without layer 22
|
| 26 |
for layer_number in range(1, 100, 1):
|
| 27 |
if layer_number != 22:
|
| 28 |
-
LAYER_TABLE_BASE_URLS.append(f"./
|
| 29 |
|
| 30 |
-
LAYER_TABLE_OVERHANG_WITH_SUPPORTS_URLS = [f"./
|
| 31 |
-
LAYER_TABLE_BLOCK_URLS = [f"./
|
| 32 |
-
LAYER_TABLE_OVERHANG_NO_SUPPORTS_URLS = [f"./
|
| 33 |
|
| 34 |
_URLS = {
|
| 35 |
"part_section": {
|
|
|
|
| 25 |
# Layers 1 to 99 inclusive without layer 22
|
| 26 |
for layer_number in range(1, 100, 1):
|
| 27 |
if layer_number != 22:
|
| 28 |
+
LAYER_TABLE_BASE_URLS.append(f"./layer_table/base/{layer_number}.parquet")
|
| 29 |
|
| 30 |
+
LAYER_TABLE_OVERHANG_WITH_SUPPORTS_URLS = [f"./layer_table/overhang_with_supports/{n}.parquet" for n in range(101, 281, 1)]
|
| 31 |
+
LAYER_TABLE_BLOCK_URLS = [f"./layer_table/block/{n}.parquet" for n in range(281, 381, 1)]
|
| 32 |
+
LAYER_TABLE_OVERHANG_NO_SUPPORTS_URLS = [f"./layer_table/overhang_no_supports/{n}.parquet" for n in range(381, 560, 1)]
|
| 33 |
|
| 34 |
_URLS = {
|
| 35 |
"part_section": {
|
load_dataset.ipynb
CHANGED
|
@@ -10,7 +10,7 @@
|
|
| 10 |
},
|
| 11 |
{
|
| 12 |
"cell_type": "code",
|
| 13 |
-
"execution_count":
|
| 14 |
"metadata": {},
|
| 15 |
"outputs": [
|
| 16 |
{
|
|
@@ -28,7 +28,7 @@
|
|
| 28 |
},
|
| 29 |
{
|
| 30 |
"cell_type": "code",
|
| 31 |
-
"execution_count":
|
| 32 |
"metadata": {},
|
| 33 |
"outputs": [
|
| 34 |
{
|
|
@@ -51,7 +51,7 @@
|
|
| 51 |
"['base', 'block', 'overhang_no_supports', 'overhang_with_supports']"
|
| 52 |
]
|
| 53 |
},
|
| 54 |
-
"execution_count":
|
| 55 |
"metadata": {},
|
| 56 |
"output_type": "execute_result"
|
| 57 |
}
|
|
@@ -65,34 +65,30 @@
|
|
| 65 |
},
|
| 66 |
{
|
| 67 |
"cell_type": "code",
|
| 68 |
-
"execution_count":
|
| 69 |
"metadata": {},
|
| 70 |
"outputs": [
|
| 71 |
{
|
| 72 |
"name": "stderr",
|
| 73 |
"output_type": "stream",
|
| 74 |
"text": [
|
| 75 |
-
"Repo card metadata block was not found. Setting CardData to empty.\n"
|
| 76 |
-
"Downloading data: 100%|ββββββββββ| 98/98 [06:42<00:00, 4.11s/files]\n",
|
| 77 |
-
"Downloading data: 100%|ββββββββββ| 100/100 [07:13<00:00, 4.34s/files]\n",
|
| 78 |
-
"Downloading data: 100%|ββββββββββ| 179/179 [09:10<00:00, 3.08s/files]\n",
|
| 79 |
-
"Downloading data: 100%|ββββββββββ| 180/180 [07:33<00:00, 2.52s/files]\n",
|
| 80 |
-
"Generating base split: 58 examples [1:04:07, 73.75s/ examples]"
|
| 81 |
]
|
| 82 |
}
|
| 83 |
],
|
| 84 |
"source": [
|
| 85 |
"ds = load_dataset(\n",
|
| 86 |
" \"ppak10/NIST-In-Situ-IN625-LPBF-Overhangs\",\n",
|
|
|
|
| 87 |
" split=\"base\",\n",
|
| 88 |
-
"
|
| 89 |
" trust_remote_code=True\n",
|
| 90 |
")"
|
| 91 |
]
|
| 92 |
},
|
| 93 |
{
|
| 94 |
"cell_type": "code",
|
| 95 |
-
"execution_count":
|
| 96 |
"metadata": {},
|
| 97 |
"outputs": [
|
| 98 |
{
|
|
@@ -114,7 +110,7 @@
|
|
| 114 |
},
|
| 115 |
{
|
| 116 |
"cell_type": "code",
|
| 117 |
-
"execution_count":
|
| 118 |
"metadata": {},
|
| 119 |
"outputs": [
|
| 120 |
{
|
|
@@ -139,9 +135,20 @@
|
|
| 139 |
},
|
| 140 |
{
|
| 141 |
"cell_type": "code",
|
| 142 |
-
"execution_count":
|
| 143 |
"metadata": {},
|
| 144 |
-
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
"source": [
|
| 146 |
"for i, row in enumerate(loader):\n",
|
| 147 |
" print(i)"
|
|
|
|
| 10 |
},
|
| 11 |
{
|
| 12 |
"cell_type": "code",
|
| 13 |
+
"execution_count": 2,
|
| 14 |
"metadata": {},
|
| 15 |
"outputs": [
|
| 16 |
{
|
|
|
|
| 28 |
},
|
| 29 |
{
|
| 30 |
"cell_type": "code",
|
| 31 |
+
"execution_count": 3,
|
| 32 |
"metadata": {},
|
| 33 |
"outputs": [
|
| 34 |
{
|
|
|
|
| 51 |
"['base', 'block', 'overhang_no_supports', 'overhang_with_supports']"
|
| 52 |
]
|
| 53 |
},
|
| 54 |
+
"execution_count": 3,
|
| 55 |
"metadata": {},
|
| 56 |
"output_type": "execute_result"
|
| 57 |
}
|
|
|
|
| 65 |
},
|
| 66 |
{
|
| 67 |
"cell_type": "code",
|
| 68 |
+
"execution_count": 4,
|
| 69 |
"metadata": {},
|
| 70 |
"outputs": [
|
| 71 |
{
|
| 72 |
"name": "stderr",
|
| 73 |
"output_type": "stream",
|
| 74 |
"text": [
|
| 75 |
+
"Repo card metadata block was not found. Setting CardData to empty.\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
]
|
| 77 |
}
|
| 78 |
],
|
| 79 |
"source": [
|
| 80 |
"ds = load_dataset(\n",
|
| 81 |
" \"ppak10/NIST-In-Situ-IN625-LPBF-Overhangs\",\n",
|
| 82 |
+
" \"layer_table\"\n",
|
| 83 |
" split=\"base\",\n",
|
| 84 |
+
" streaming=True,\n",
|
| 85 |
" trust_remote_code=True\n",
|
| 86 |
")"
|
| 87 |
]
|
| 88 |
},
|
| 89 |
{
|
| 90 |
"cell_type": "code",
|
| 91 |
+
"execution_count": 5,
|
| 92 |
"metadata": {},
|
| 93 |
"outputs": [
|
| 94 |
{
|
|
|
|
| 110 |
},
|
| 111 |
{
|
| 112 |
"cell_type": "code",
|
| 113 |
+
"execution_count": 6,
|
| 114 |
"metadata": {},
|
| 115 |
"outputs": [
|
| 116 |
{
|
|
|
|
| 135 |
},
|
| 136 |
{
|
| 137 |
"cell_type": "code",
|
| 138 |
+
"execution_count": 7,
|
| 139 |
"metadata": {},
|
| 140 |
+
"outputs": [
|
| 141 |
+
{
|
| 142 |
+
"name": "stdout",
|
| 143 |
+
"output_type": "stream",
|
| 144 |
+
"text": [
|
| 145 |
+
"0\n",
|
| 146 |
+
"1\n",
|
| 147 |
+
"2\n",
|
| 148 |
+
"3\n"
|
| 149 |
+
]
|
| 150 |
+
}
|
| 151 |
+
],
|
| 152 |
"source": [
|
| 153 |
"for i, row in enumerate(loader):\n",
|
| 154 |
" print(i)"
|