ultralytics 8.3.71 require explicit torch.nn usage (#19067)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: RizwanMunawar <chr043416@gmail.com> Co-authored-by: Muhammad Rizwan Munawar <muhammadrizwanmunawar123@gmail.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
17450e9646
commit
5bca9341e8
10 changed files with 50 additions and 51 deletions
|
|
@ -113,7 +113,7 @@ def update_subdir_edit_links(subdir="", docs_url=""):
|
|||
if str(subdir[0]) == "/":
|
||||
subdir = str(subdir[0])[1:]
|
||||
html_files = (SITE / subdir).rglob("*.html")
|
||||
for html_file in tqdm(html_files, desc="Processing subdir files"):
|
||||
for html_file in tqdm(html_files, desc="Processing subdir files", mininterval=1.0):
|
||||
with html_file.open("r", encoding="utf-8") as file:
|
||||
soup = BeautifulSoup(file, "html.parser")
|
||||
|
||||
|
|
@ -178,7 +178,7 @@ def update_docs_html():
|
|||
|
||||
# Convert plaintext links to HTML hyperlinks
|
||||
files_modified = 0
|
||||
for html_file in tqdm(SITE.rglob("*.html"), desc="Converting plaintext links"):
|
||||
for html_file in tqdm(SITE.rglob("*.html"), desc="Converting plaintext links", mininterval=1.0):
|
||||
with open(html_file, encoding="utf-8") as file:
|
||||
content = file.read()
|
||||
updated_content = convert_plaintext_links_to_html(content)
|
||||
|
|
@ -294,7 +294,7 @@ def minify_files(html=True, css=True, js=True):
|
|||
}.items():
|
||||
stats[ext] = {"original": 0, "minified": 0}
|
||||
directory = "" # "stylesheets" if ext == css else "javascript" if ext == "js" else ""
|
||||
for f in tqdm((SITE / directory).rglob(f"*.{ext}"), desc=f"Minifying {ext.upper()}"):
|
||||
for f in tqdm((SITE / directory).rglob(f"*.{ext}"), desc=f"Minifying {ext.upper()}", mininterval=1.0):
|
||||
content = f.read_text(encoding="utf-8")
|
||||
minified = minifier(content) if minifier else remove_comments_and_empty_lines(content, ext)
|
||||
stats[ext]["original"] += len(content)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue