Skip to content

Commit 6b5d67f

Browse files
committed
Update Docs for 'ultralytics 8.0.209'
1 parent cdfd0e6 commit 6b5d67f

File tree

47 files changed

+1963
-1818
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1963
-1818
lines changed

de/javascript/extra.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,18 @@ const applyAutoTheme = () => {
1616

1717
// Function that checks and applies light/dark theme based on the user's preference (if auto theme is enabled)
1818
function checkAutoTheme() {
19-
// Retrieve the palette from local storage
20-
const palette = localStorage.getItem("/.__palette");
19+
// Array of supported language codes -> each language has its own palette (stored in local storage)
20+
const supportedLangCodes = ["en", "zh", "ko", "ja", "ru", "de", "fr", "es", "pt"];
21+
// Get the URL path
22+
const path = window.location.pathname;
23+
// Extract the language code from the URL (assuming it's in the format /xx/...)
24+
const langCode = path.split("/")[1];
25+
// Check if the extracted language code is in the supported languages
26+
const isValidLangCode = supportedLangCodes.includes(langCode);
27+
// Construct the local storage key based on the language code if valid, otherwise default to the root key
28+
const localStorageKey = isValidLangCode ? `/${langCode}/.__palette` : "/.__palette";
29+
// Retrieve the palette from local storage using the constructed key
30+
const palette = localStorage.getItem(localStorageKey);
2131
if (palette) {
2232
// Check if the palette's index is 0 (auto theme)
2333
const paletteObj = JSON.parse(palette);
@@ -26,9 +36,11 @@ function checkAutoTheme() {
2636
}
2737
}
2838
}
29-
// ! No need to run the function when the script loads as by default the theme is determined by the user's preference (if auto theme is enabled)
30-
// checkAutoTheme();
31-
// Run the function when the user's preference changes (when the user changes their system theme)
39+
40+
// Run function when the script loads
41+
checkAutoTheme();
42+
43+
// Re-run the function when the user's preference changes (when the user changes their system theme)
3244
window.matchMedia("(prefers-color-scheme: light)").addEventListener("change", checkAutoTheme);
3345
window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", checkAutoTheme);
3446

de/sitemap.xml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,82 +2,82 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://docs.ultralytics.com/de/</loc>
5-
<lastmod>2023-11-13</lastmod>
5+
<lastmod>2023-11-15</lastmod>
66
<changefreq>daily</changefreq>
77
</url>
88
<url>
99
<loc>https://docs.ultralytics.com/de/quickstart/</loc>
10-
<lastmod>2023-11-13</lastmod>
10+
<lastmod>2023-11-15</lastmod>
1111
<changefreq>daily</changefreq>
1212
</url>
1313
<url>
1414
<loc>https://docs.ultralytics.com/de/datasets/</loc>
15-
<lastmod>2023-11-13</lastmod>
15+
<lastmod>2023-11-15</lastmod>
1616
<changefreq>daily</changefreq>
1717
</url>
1818
<url>
1919
<loc>https://docs.ultralytics.com/de/models/</loc>
20-
<lastmod>2023-11-13</lastmod>
20+
<lastmod>2023-11-15</lastmod>
2121
<changefreq>daily</changefreq>
2222
</url>
2323
<url>
2424
<loc>https://docs.ultralytics.com/de/modes/</loc>
25-
<lastmod>2023-11-13</lastmod>
25+
<lastmod>2023-11-15</lastmod>
2626
<changefreq>daily</changefreq>
2727
</url>
2828
<url>
2929
<loc>https://docs.ultralytics.com/de/modes/benchmark/</loc>
30-
<lastmod>2023-11-13</lastmod>
30+
<lastmod>2023-11-15</lastmod>
3131
<changefreq>daily</changefreq>
3232
</url>
3333
<url>
3434
<loc>https://docs.ultralytics.com/de/modes/export/</loc>
35-
<lastmod>2023-11-13</lastmod>
35+
<lastmod>2023-11-15</lastmod>
3636
<changefreq>daily</changefreq>
3737
</url>
3838
<url>
3939
<loc>https://docs.ultralytics.com/de/modes/predict/</loc>
40-
<lastmod>2023-11-13</lastmod>
40+
<lastmod>2023-11-15</lastmod>
4141
<changefreq>daily</changefreq>
4242
</url>
4343
<url>
4444
<loc>https://docs.ultralytics.com/de/modes/track/</loc>
45-
<lastmod>2023-11-13</lastmod>
45+
<lastmod>2023-11-15</lastmod>
4646
<changefreq>daily</changefreq>
4747
</url>
4848
<url>
4949
<loc>https://docs.ultralytics.com/de/modes/train/</loc>
50-
<lastmod>2023-11-13</lastmod>
50+
<lastmod>2023-11-15</lastmod>
5151
<changefreq>daily</changefreq>
5252
</url>
5353
<url>
5454
<loc>https://docs.ultralytics.com/de/modes/val/</loc>
55-
<lastmod>2023-11-13</lastmod>
55+
<lastmod>2023-11-15</lastmod>
5656
<changefreq>daily</changefreq>
5757
</url>
5858
<url>
5959
<loc>https://docs.ultralytics.com/de/tasks/</loc>
60-
<lastmod>2023-11-13</lastmod>
60+
<lastmod>2023-11-15</lastmod>
6161
<changefreq>daily</changefreq>
6262
</url>
6363
<url>
6464
<loc>https://docs.ultralytics.com/de/tasks/classify/</loc>
65-
<lastmod>2023-11-13</lastmod>
65+
<lastmod>2023-11-15</lastmod>
6666
<changefreq>daily</changefreq>
6767
</url>
6868
<url>
6969
<loc>https://docs.ultralytics.com/de/tasks/detect/</loc>
70-
<lastmod>2023-11-13</lastmod>
70+
<lastmod>2023-11-15</lastmod>
7171
<changefreq>daily</changefreq>
7272
</url>
7373
<url>
7474
<loc>https://docs.ultralytics.com/de/tasks/pose/</loc>
75-
<lastmod>2023-11-13</lastmod>
75+
<lastmod>2023-11-15</lastmod>
7676
<changefreq>daily</changefreq>
7777
</url>
7878
<url>
7979
<loc>https://docs.ultralytics.com/de/tasks/segment/</loc>
80-
<lastmod>2023-11-13</lastmod>
80+
<lastmod>2023-11-15</lastmod>
8181
<changefreq>daily</changefreq>
8282
</url>
8383
</urlset>

de/sitemap.xml.gz

1 Byte
Binary file not shown.

de/stylesheets/style.css

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,42 @@
11
/* Table format like GitHub ----------------------------------------------------------------------------------------- */
2-
th, td {
3-
border: 1px solid var(--md-typeset-table-color);
4-
border-spacing: 0;
5-
border-bottom: none;
6-
border-left: none;
7-
border-top: none;
2+
th,
3+
td {
4+
border: 1px solid var(--md-typeset-table-color);
5+
border-spacing: 0;
6+
border-bottom: none;
7+
border-left: none;
8+
border-top: none;
89
}
910

1011
.md-typeset__table {
11-
line-height: 1;
12+
line-height: 1;
1213
}
1314

1415
.md-typeset__table table:not([class]) {
15-
font-size: .74rem;
16-
border-right: none;
16+
font-size: 0.74rem;
17+
border-right: none;
1718
}
1819

1920
.md-typeset__table table:not([class]) td,
2021
.md-typeset__table table:not([class]) th {
21-
padding: 9px;
22+
padding: 9px;
2223
}
2324

2425
/* light mode alternating table bg colors */
2526
.md-typeset__table tr:nth-child(2n) {
26-
background-color: #f8f8f8;
27+
background-color: #f6f8fa;
2728
}
2829

2930
/* dark mode alternating table bg colors */
30-
body.md-theme--slate .md-typeset__table tr:nth-child(2n) {
31-
background-color: hsla(207, 26%, 17%, 1);
31+
[data-md-color-scheme="slate"] .md-typeset__table tr:nth-child(2n) {
32+
background-color: #161b22;
3233
}
3334
/* Table format like GitHub ----------------------------------------------------------------------------------------- */
3435

3536
/* Code block vertical scroll */
3637
div.highlight {
37-
max-height: 20rem;
38-
overflow-y: auto; /* for adding a scrollbar when needed */
38+
max-height: 20rem;
39+
overflow-y: auto; /* for adding a scrollbar when needed */
3940
}
4041

4142
/* Set content width */

es/javascript/extra.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,18 @@ const applyAutoTheme = () => {
1616

1717
// Function that checks and applies light/dark theme based on the user's preference (if auto theme is enabled)
1818
function checkAutoTheme() {
19-
// Retrieve the palette from local storage
20-
const palette = localStorage.getItem("/.__palette");
19+
// Array of supported language codes -> each language has its own palette (stored in local storage)
20+
const supportedLangCodes = ["en", "zh", "ko", "ja", "ru", "de", "fr", "es", "pt"];
21+
// Get the URL path
22+
const path = window.location.pathname;
23+
// Extract the language code from the URL (assuming it's in the format /xx/...)
24+
const langCode = path.split("/")[1];
25+
// Check if the extracted language code is in the supported languages
26+
const isValidLangCode = supportedLangCodes.includes(langCode);
27+
// Construct the local storage key based on the language code if valid, otherwise default to the root key
28+
const localStorageKey = isValidLangCode ? `/${langCode}/.__palette` : "/.__palette";
29+
// Retrieve the palette from local storage using the constructed key
30+
const palette = localStorage.getItem(localStorageKey);
2131
if (palette) {
2232
// Check if the palette's index is 0 (auto theme)
2333
const paletteObj = JSON.parse(palette);
@@ -26,9 +36,11 @@ function checkAutoTheme() {
2636
}
2737
}
2838
}
29-
// ! No need to run the function when the script loads as by default the theme is determined by the user's preference (if auto theme is enabled)
30-
// checkAutoTheme();
31-
// Run the function when the user's preference changes (when the user changes their system theme)
39+
40+
// Run function when the script loads
41+
checkAutoTheme();
42+
43+
// Re-run the function when the user's preference changes (when the user changes their system theme)
3244
window.matchMedia("(prefers-color-scheme: light)").addEventListener("change", checkAutoTheme);
3345
window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", checkAutoTheme);
3446

es/sitemap.xml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,82 +2,82 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://docs.ultralytics.com/es/</loc>
5-
<lastmod>2023-11-13</lastmod>
5+
<lastmod>2023-11-15</lastmod>
66
<changefreq>daily</changefreq>
77
</url>
88
<url>
99
<loc>https://docs.ultralytics.com/es/quickstart/</loc>
10-
<lastmod>2023-11-13</lastmod>
10+
<lastmod>2023-11-15</lastmod>
1111
<changefreq>daily</changefreq>
1212
</url>
1313
<url>
1414
<loc>https://docs.ultralytics.com/es/datasets/</loc>
15-
<lastmod>2023-11-13</lastmod>
15+
<lastmod>2023-11-15</lastmod>
1616
<changefreq>daily</changefreq>
1717
</url>
1818
<url>
1919
<loc>https://docs.ultralytics.com/es/models/</loc>
20-
<lastmod>2023-11-13</lastmod>
20+
<lastmod>2023-11-15</lastmod>
2121
<changefreq>daily</changefreq>
2222
</url>
2323
<url>
2424
<loc>https://docs.ultralytics.com/es/modes/</loc>
25-
<lastmod>2023-11-13</lastmod>
25+
<lastmod>2023-11-15</lastmod>
2626
<changefreq>daily</changefreq>
2727
</url>
2828
<url>
2929
<loc>https://docs.ultralytics.com/es/modes/benchmark/</loc>
30-
<lastmod>2023-11-13</lastmod>
30+
<lastmod>2023-11-15</lastmod>
3131
<changefreq>daily</changefreq>
3232
</url>
3333
<url>
3434
<loc>https://docs.ultralytics.com/es/modes/export/</loc>
35-
<lastmod>2023-11-13</lastmod>
35+
<lastmod>2023-11-15</lastmod>
3636
<changefreq>daily</changefreq>
3737
</url>
3838
<url>
3939
<loc>https://docs.ultralytics.com/es/modes/predict/</loc>
40-
<lastmod>2023-11-13</lastmod>
40+
<lastmod>2023-11-15</lastmod>
4141
<changefreq>daily</changefreq>
4242
</url>
4343
<url>
4444
<loc>https://docs.ultralytics.com/es/modes/track/</loc>
45-
<lastmod>2023-11-13</lastmod>
45+
<lastmod>2023-11-15</lastmod>
4646
<changefreq>daily</changefreq>
4747
</url>
4848
<url>
4949
<loc>https://docs.ultralytics.com/es/modes/train/</loc>
50-
<lastmod>2023-11-13</lastmod>
50+
<lastmod>2023-11-15</lastmod>
5151
<changefreq>daily</changefreq>
5252
</url>
5353
<url>
5454
<loc>https://docs.ultralytics.com/es/modes/val/</loc>
55-
<lastmod>2023-11-13</lastmod>
55+
<lastmod>2023-11-15</lastmod>
5656
<changefreq>daily</changefreq>
5757
</url>
5858
<url>
5959
<loc>https://docs.ultralytics.com/es/tasks/</loc>
60-
<lastmod>2023-11-13</lastmod>
60+
<lastmod>2023-11-15</lastmod>
6161
<changefreq>daily</changefreq>
6262
</url>
6363
<url>
6464
<loc>https://docs.ultralytics.com/es/tasks/classify/</loc>
65-
<lastmod>2023-11-13</lastmod>
65+
<lastmod>2023-11-15</lastmod>
6666
<changefreq>daily</changefreq>
6767
</url>
6868
<url>
6969
<loc>https://docs.ultralytics.com/es/tasks/detect/</loc>
70-
<lastmod>2023-11-13</lastmod>
70+
<lastmod>2023-11-15</lastmod>
7171
<changefreq>daily</changefreq>
7272
</url>
7373
<url>
7474
<loc>https://docs.ultralytics.com/es/tasks/pose/</loc>
75-
<lastmod>2023-11-13</lastmod>
75+
<lastmod>2023-11-15</lastmod>
7676
<changefreq>daily</changefreq>
7777
</url>
7878
<url>
7979
<loc>https://docs.ultralytics.com/es/tasks/segment/</loc>
80-
<lastmod>2023-11-13</lastmod>
80+
<lastmod>2023-11-15</lastmod>
8181
<changefreq>daily</changefreq>
8282
</url>
8383
</urlset>

es/sitemap.xml.gz

1 Byte
Binary file not shown.

es/stylesheets/style.css

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,42 @@
11
/* Table format like GitHub ----------------------------------------------------------------------------------------- */
2-
th, td {
3-
border: 1px solid var(--md-typeset-table-color);
4-
border-spacing: 0;
5-
border-bottom: none;
6-
border-left: none;
7-
border-top: none;
2+
th,
3+
td {
4+
border: 1px solid var(--md-typeset-table-color);
5+
border-spacing: 0;
6+
border-bottom: none;
7+
border-left: none;
8+
border-top: none;
89
}
910

1011
.md-typeset__table {
11-
line-height: 1;
12+
line-height: 1;
1213
}
1314

1415
.md-typeset__table table:not([class]) {
15-
font-size: .74rem;
16-
border-right: none;
16+
font-size: 0.74rem;
17+
border-right: none;
1718
}
1819

1920
.md-typeset__table table:not([class]) td,
2021
.md-typeset__table table:not([class]) th {
21-
padding: 9px;
22+
padding: 9px;
2223
}
2324

2425
/* light mode alternating table bg colors */
2526
.md-typeset__table tr:nth-child(2n) {
26-
background-color: #f8f8f8;
27+
background-color: #f6f8fa;
2728
}
2829

2930
/* dark mode alternating table bg colors */
30-
body.md-theme--slate .md-typeset__table tr:nth-child(2n) {
31-
background-color: hsla(207, 26%, 17%, 1);
31+
[data-md-color-scheme="slate"] .md-typeset__table tr:nth-child(2n) {
32+
background-color: #161b22;
3233
}
3334
/* Table format like GitHub ----------------------------------------------------------------------------------------- */
3435

3536
/* Code block vertical scroll */
3637
div.highlight {
37-
max-height: 20rem;
38-
overflow-y: auto; /* for adding a scrollbar when needed */
38+
max-height: 20rem;
39+
overflow-y: auto; /* for adding a scrollbar when needed */
3940
}
4041

4142
/* Set content width */

0 commit comments

Comments
 (0)