id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2,289,500 | detect.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/detect.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Run inference on images, videos, directories, streams, etc.
Usage - sources:
$ python path/to/detect.py --weights yolov5s.pt --source 0 # webcam
img.jpg # image
... | 15,325 | Python | .py | 255 | 48.321569 | 120 | 0.56363 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,501 | hubconf.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/hubconf.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
PyTorch Hub models https://pytorch.org/hub/ultralytics_yolov5/
Usage:
import torch
model = torch.hub.load('ultralytics/yolov5', 'yolov5s')
model = torch.hub.load('ultralytics/yolov5:master', 'custom', 'path/to/yolov5s.onnx') # file from branch
"""
import ... | 6,842 | Python | .py | 120 | 50.083333 | 109 | 0.692457 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,502 | yolo.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/models/yolo.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
YOLO-specific modules
Usage:
$ python path/to/models/yolo.py --cfg yolov5s.yaml
"""
import argparse
import contextlib
import os
import platform
import sys
from copy import deepcopy
from pathlib import Path
FILE = Path(__file__).resolve()
ROOT = FILE.parents[1] #... | 16,311 | Python | .py | 311 | 42.954984 | 116 | 0.565921 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,503 | experimental.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/models/experimental.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Experimental modules
"""
import math
import numpy as np
import torch
import torch.nn as nn
from models.common import Conv
from utils.downloads import attempt_download
class Sum(nn.Module):
# Weighted sum of 2 or more layers https://arxiv.org/abs/1911.09070
d... | 4,194 | Python | .py | 89 | 39.089888 | 116 | 0.591877 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,504 | common.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/models/common.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Common modules
"""
import json
import math
import platform
import warnings
from collections import OrderedDict, namedtuple
from copy import copy
from pathlib import Path
import cv2
import numpy as np
import pandas as pd
import requests
import torch
import torch.nn as ... | 37,243 | Python | .py | 668 | 44.773952 | 119 | 0.563419 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,505 | tf.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/models/tf.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
TensorFlow, Keras and TFLite versions of YOLOv5
Authored by https://github.com/zldrobit in PR https://github.com/ultralytics/yolov5/pull/1127
Usage:
$ python models/tf.py --weights yolov5s.pt
Export:
$ python path/to/export.py --weights yolov5s.pt --include sa... | 25,502 | Python | .py | 482 | 41.925311 | 120 | 0.559732 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,506 | user_manage_bp.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/blueprints/user_manage_bp.py | from flask import Blueprint, request
from werkzeug.security import generate_password_hash
from database_models import *
from flask_jwt_extended import jwt_required
from extensions import db
from utils.backend_utils.response_utils import response
from utils.backend_utils.colorprinter import *
'''
前后端code约定:
code: 0 成... | 4,254 | Python | .py | 91 | 34.989011 | 110 | 0.683624 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,507 | auth_bp.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/blueprints/auth_bp.py | import random
import string
from pprint import pprint
from flask import Blueprint, render_template, jsonify, redirect, url_for, request, session
from flask_jwt_extended import JWTManager, create_access_token, jwt_required, get_jwt_identity, create_refresh_token
from extensions import db, mail
from flask_mail import Me... | 8,850 | Python | .py | 194 | 37.489691 | 192 | 0.580739 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,508 | table_bp.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/blueprints/table_bp.py | from flask import Blueprint, request
from werkzeug.security import generate_password_hash
from database_models import *
from flask_jwt_extended import jwt_required
from extensions import db
from utils.backend_utils.response_utils import response
from utils.backend_utils.colorprinter import *
'''
前后端code约定:
code: 0 成... | 3,543 | Python | .py | 88 | 32.454545 | 78 | 0.682494 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,509 | detect_bp.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/blueprints/detect_bp.py | import os
from pprint import pprint
from flask import Blueprint, request, render_template, g, redirect, session
from PIL import Image
import datetime
import base64
from io import BytesIO
from flask_jwt_extended import jwt_required
from database_models import WeightsModel
from utils.backend_utils.dir_utils import *
fr... | 5,824 | Python | .py | 134 | 34.402985 | 94 | 0.696952 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,510 | detect_demo_bp.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/blueprints/detect_demo_bp.py | from flask import Blueprint, request, render_template, g, redirect, session
from PIL import Image
import datetime
import base64
from io import BytesIO
from utils.backend_utils.dir_utils import *
from utils.backend_utils.model_handler import load_model
bp = Blueprint(name='detect_demo', import_name=__name__)
DATETI... | 1,418 | Python | .py | 34 | 34.676471 | 75 | 0.653734 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,511 | server_bp.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/blueprints/server_bp.py | from flask import Blueprint, session
from utils.backend_utils.response_utils import response
from utils.backend_utils.colorprinter import *
bp = Blueprint('server', __name__, url_prefix='/server')
# 查看服务端Session
@bp.route('/session/list', methods=['GET'])
def session_data():
print_cyan(session)
return respo... | 539 | Python | .py | 14 | 33.357143 | 66 | 0.755694 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,512 | login_form.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/blueprints/froms/login_form.py | import wtforms
from wtforms.validators import Email, Length, EqualTo, InputRequired, DataRequired
from database_models import UserModel, CaptchaModel
from extensions import db
from flask import request
class LoginForm(wtforms.Form):
username = wtforms.StringField(validators=[DataRequired(message='用户名不能为空')])
... | 623 | Python | .py | 10 | 49.6 | 94 | 0.738739 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,513 | register_form.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/blueprints/froms/register_form.py | import wtforms
from wtforms.validators import Email, Length, EqualTo, InputRequired, DataRequired
from database_models import UserModel, CaptchaModel
from extensions import db
class RegisterForm(wtforms.Form):
username = wtforms.StringField(validators=[DataRequired(message='用户名不能为空'),
... | 2,337 | Python | .py | 42 | 40.285714 | 97 | 0.665683 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,514 | script.py.mako | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/migrations/script.py.mako | """${message}
Revision ID: ${up_revision}
Revises: ${down_revision | comma,n}
Create Date: ${create_date}
"""
from alembic import op
import sqlalchemy as sa
${imports if imports else ""}
# revision identifiers, used by Alembic.
revision = ${repr(up_revision)}
down_revision = ${repr(down_revision)}
branch_labels = ${... | 494 | Python | .py | 17 | 27.176471 | 43 | 0.725532 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,515 | env.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/migrations/env.py | import logging
from logging.config import fileConfig
from flask import current_app
from alembic import context
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config file for Python logging.
# This line sets up loggers b... | 3,228 | Python | .py | 81 | 34.148148 | 78 | 0.702053 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,516 | 6475298b24f3_.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/migrations/versions/6475298b24f3_.py | """empty message
Revision ID: 6475298b24f3
Revises:
Create Date: 2023-05-20 21:22:21.144304
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '6475298b24f3'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | 5,900 | Python | .py | 109 | 46.495413 | 101 | 0.679207 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,517 | general.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/general.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
General utils
"""
import contextlib
import glob
import inspect
import logging
import math
import os
import platform
import random
import re
import shutil
import signal
import sys
import threading
import time
import urllib
from datetime import datetime
from itertools im... | 43,480 | Python | .py | 848 | 43.726415 | 134 | 0.601556 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,518 | dataloaders.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/dataloaders.py | # YOLOv5 üöÄ by Ultralytics, GPL-3.0 license
"""
Dataloaders and dataset utils
"""
import contextlib
import glob
import hashlib
import json
import math
import os
import random
import shutil
import time
from itertools import repeat
from multiprocessing.pool import Pool, ThreadPool
from pathlib import Path
from threadi... | 52,334 | Python | .py | 1,024 | 38.666016 | 120 | 0.541404 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,519 | torch_utils.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/torch_utils.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
PyTorch utils
"""
import math
import os
import platform
import subprocess
import time
import warnings
from contextlib import contextmanager
from copy import deepcopy
from pathlib import Path
import torch
import torch.distributed as dist
import torch.nn as nn
import to... | 19,568 | Python | .py | 361 | 45.894737 | 120 | 0.622492 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,520 | autoanchor.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/autoanchor.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
AutoAnchor utils
"""
import random
import numpy as np
import torch
import yaml
from tqdm import tqdm
from utils.general import LOGGER, colorstr
PREFIX = colorstr('AutoAnchor: ')
def check_anchor_order(m):
# Check anchor order against stride order for YOLOv5 De... | 7,411 | Python | .py | 144 | 43.840278 | 119 | 0.59826 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,521 | augmentations.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/augmentations.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Image augmentation functions
"""
import math
import random
import cv2
import numpy as np
import torchvision.transforms as T
import torchvision.transforms.functional as TF
from utils.general import LOGGER, check_version, colorstr, resample_segments, segment2box
from u... | 14,671 | Python | .py | 283 | 42.431095 | 118 | 0.569324 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,522 | plots.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/plots.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Plotting utils
"""
import math
import os
from copy import copy
from pathlib import Path
from urllib.error import URLError
import cv2
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sn
import torch
from PIL imp... | 22,445 | Python | .py | 451 | 41.028825 | 120 | 0.575071 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,523 | metrics.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/metrics.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Model validation metrics
"""
import math
import warnings
from pathlib import Path
import matplotlib.pyplot as plt
import numpy as np
import torch
def fitness(x):
# Model fitness as a weighted combination of metrics
w = [0.0, 0.0, 0.1, 0.9] # weights for [P,... | 14,723 | Python | .py | 298 | 40.909396 | 120 | 0.56731 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,524 | downloads.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/downloads.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Download utils
"""
import logging
import os
import platform
import subprocess
import time
import urllib
from pathlib import Path
from zipfile import ZipFile
import requests
import torch
def is_url(url, check_online=True):
# Check if online file exists
try:
... | 7,326 | Python | .py | 154 | 40.87013 | 120 | 0.627764 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,525 | __init__.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/__init__.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
utils/initialization
"""
def notebook_init(verbose=True):
# Check system software and hardware
print('Checking setup...')
import os
import shutil
from utils.general import check_requirements, emojis, is_colab
from utils.torch_utils import sel... | 1,057 | Python | .py | 28 | 32.178571 | 113 | 0.653281 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,526 | benchmarks.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/benchmarks.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Run YOLOv5 benchmarks on all supported export formats
Format | `export.py --include` | Model
--- | --- | ---
PyTorch | - | yolov5s.pt
TorchScr... | 6,958 | Python | .py | 136 | 44.772059 | 119 | 0.593589 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,527 | loss.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/loss.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Loss functions
"""
import torch
import torch.nn as nn
from utils.metrics import bbox_iou
from utils.torch_utils import de_parallel
def smooth_BCE(eps=0.1): # https://github.com/ultralytics/yolov3/issues/238#issuecomment-598028441
# return positive, negative lab... | 9,919 | Python | .py | 192 | 40.567708 | 119 | 0.543624 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,528 | activations.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/activations.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Activation functions
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
class SiLU(nn.Module):
# SiLU activation https://arxiv.org/pdf/1606.08415.pdf
@staticmethod
def forward(x):
return x * torch.sigmoid(x)
class Hardswish(n... | 3,449 | Python | .py | 80 | 36.275 | 106 | 0.615362 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,529 | autobatch.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/autobatch.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Auto-batch utils
"""
from copy import deepcopy
import numpy as np
import torch
from utils.general import LOGGER, colorstr
from utils.torch_utils import profile
def check_train_batch_size(model, imgsz=640, amp=True):
# Check YOLOv5 training batch size
with t... | 2,584 | Python | .py | 54 | 42.703704 | 120 | 0.656076 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,530 | callbacks.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/callbacks.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Callback utils
"""
class Callbacks:
""""
Handles all registered callbacks for YOLOv5 Hooks
"""
def __init__(self):
# Define the available callbacks
self._callbacks = {
'on_pretrain_routine_start': [],
'on_pretra... | 2,402 | Python | .py | 60 | 30.183333 | 97 | 0.559417 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,531 | example_request.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/flask_rest_api/example_request.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Perform test request
"""
import pprint
import requests
DETECTION_URL = "http://localhost:5000/v1/object-detection/yolov5s"
IMAGE = "zidane.jpg"
# Read image
with open(IMAGE, "rb") as f:
image_data = f.read()
response = requests.post(DETECTION_URL, files={"image... | 368 | Python | .py | 13 | 26.538462 | 75 | 0.747851 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,532 | restapi.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/flask_rest_api/restapi.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Run a Flask REST API exposing one or more YOLOv5s models
"""
import argparse
import io
import torch
from flask import Flask, request
from PIL import Image
app = Flask(__name__)
models = {}
DETECTION_URL = "/v1/object-detection/<model>"
@app.route(DETECTION_URL, me... | 1,439 | Python | .py | 35 | 35.857143 | 120 | 0.6578 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,533 | __init__.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/loggers/__init__.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Logging utils
"""
import os
import warnings
from pathlib import Path
import pkg_resources as pkg
import torch
from torch.utils.tensorboard import SummaryWriter
from utils.general import colorstr, cv2
from utils.loggers.clearml.clearml_utils import ClearmlLogger
from ... | 13,262 | Python | .py | 264 | 39.102273 | 128 | 0.588081 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,534 | log_dataset.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/loggers/wandb/log_dataset.py | import argparse
from wandb_utils import WandbLogger
from utils.general import LOGGER
WANDB_ARTIFACT_PREFIX = 'wandb-artifact://'
def create_dataset_artifact(opt):
logger = WandbLogger(opt, None, job_type='Dataset Creation') # TODO: return value unused
if not logger.wandb:
LOGGER.info("install wand... | 1,032 | Python | .py | 18 | 52.944444 | 98 | 0.715423 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,535 | wandb_utils.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/loggers/wandb/wandb_utils.py | """Utilities and tools for tracking runs with Weights & Biases."""
import logging
import os
import sys
from contextlib import contextmanager
from pathlib import Path
from typing import Dict
import yaml
from tqdm import tqdm
FILE = Path(__file__).resolve()
ROOT = FILE.parents[3] # YOLOv5 root directory
if str(ROOT) ... | 28,034 | Python | .py | 510 | 41.713725 | 126 | 0.586485 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,536 | sweep.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/loggers/wandb/sweep.py | import sys
from pathlib import Path
import wandb
FILE = Path(__file__).resolve()
ROOT = FILE.parents[3] # YOLOv5 root directory
if str(ROOT) not in sys.path:
sys.path.append(str(ROOT)) # add ROOT to PATH
from train import parse_opt, train
from utils.callbacks import Callbacks
from utils.general import incremen... | 1,213 | Python | .py | 32 | 34.125 | 105 | 0.702218 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,537 | hpo.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/loggers/clearml/hpo.py | from clearml import Task
# Connecting ClearML with the current process,
# from here on everything is logged automatically
from clearml.automation import HyperParameterOptimizer, UniformParameterRange
from clearml.automation.optuna import OptimizerOptuna
task = Task.init(project_name='Hyper-Parameter Optimization',
... | 5,266 | Python | .py | 80 | 59.9875 | 112 | 0.740062 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,538 | clearml_utils.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/loggers/clearml/clearml_utils.py | """Main Logger class for ClearML experiment tracking."""
import glob
import re
from pathlib import Path
import numpy as np
import yaml
from utils.plots import Annotator, colors
try:
import clearml
from clearml import Dataset, Task
assert hasattr(clearml, '__version__') # verify package import not local ... | 7,453 | Python | .py | 132 | 44.386364 | 142 | 0.614636 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,539 | dir_utils.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/backend_utils/dir_utils.py | import os
import shutil
# 创建指定文件夹
def create_dir(path):
if os.path.exists(path) is False:
os.makedirs(path)
# 创建指定文件夹 如果目录存在则清空
def empty_and_create_dir(path):
if os.path.exists(path) is False:
os.makedirs(path)
else:
shutil.rmtree(path)
os.makedirs(path)
| 350 | Python | .py | 13 | 18.692308 | 37 | 0.679443 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,540 | colorprinter.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/backend_utils/colorprinter.py | from colorama import Fore, Back, Style
def print_red(text):
color_text = Fore.RED + str(text) + Style.RESET_ALL
print(color_text)
def print_green(text):
color_text = Fore.GREEN + str(text) + Style.RESET_ALL
print(color_text)
def print_yellow(text):
color_text = Fore.YELLOW + str(text) + Style.... | 988 | Python | .py | 28 | 31.071429 | 59 | 0.694268 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,541 | model_handler.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/backend_utils/model_handler.py | import torch
def load_model(repo_dir, model_load_path, source='local', device='cpu'):
if source != 'local':
model = torch.hub.load('ultralytics/yolov5', 'yolov5s', pretrained=True) # force_reload = recache latest code
return model
model = torch.hub.load(repo_dir, 'custom', path=model_load_pat... | 387 | Python | .py | 8 | 43.125 | 118 | 0.692308 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,542 | init_database.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/backend_utils/init_database.py | from werkzeug.security import generate_password_hash
from database_models import *
from batch_add_user import add_users
from weights_init import *
def init_role():
with app.app_context():
admin = RoleModel(role_name='admin', role_desc='管理员')
user = RoleModel(role_name='user', role_desc='普通用户')
... | 3,637 | Python | .py | 82 | 23.792683 | 71 | 0.427803 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,543 | weights_init.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/backend_utils/weights_init.py | from app import app
from extensions import db
from database_models import WeightsModel
def init_COCO_weights():
with app.app_context():
COCO_yolov5n = WeightsModel(weights_name='COCO_yolov5n',
weights_relative_path='weights/yolov5-7.0/COCO_yolov5n.pt',
... | 10,204 | Python | .py | 164 | 38.487805 | 104 | 0.503389 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,544 | response_utils.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/backend_utils/response_utils.py | from flask import jsonify
from sqlalchemy.orm import DeclarativeMeta
def response(code=200, message='', data=None):
"""
自定义返回结果的封装函数
:param code: 状态码,默认为 200
:param message: 提示信息,默认为空字符串
:param data: 返回数据,默认为 None
:return: Response 对象
"""
response_data = {
'code': code,
... | 1,908 | Python | .py | 52 | 23.384615 | 81 | 0.621372 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,545 | batch_add_user.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/backend_utils/batch_add_user.py | import random
import string
from app import app
from extensions import db
from database_models import UserModel, RoleModel
def generate_password(length=8):
"""生成随机密码"""
letters = string.ascii_letters + string.digits
return ''.join(random.choice(letters) for i in range(length))
def add_users(num):
"... | 889 | Python | .py | 23 | 30.565217 | 116 | 0.648126 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,546 | email_utils.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/backend_utils/email_utils.py | import smtplib
import config
from email.mime.text import MIMEText
from email.header import Header
import random
class EmailOP:
def __init__(self, host, port, user, password):
"""
host:邮件服务器地址
port:邮件服务器端口
username:邮箱账户名
password:邮箱账户的授权码(注意是授权码,不是邮箱的登录密码)
"""
... | 1,794 | Python | .py | 44 | 26.704545 | 98 | 0.609073 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,547 | resume.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/utils/aws/resume.py | # Resume all interrupted trainings in yolov5/ dir including DDP trainings
# Usage: $ python utils/aws/resume.py
import os
import sys
from pathlib import Path
import torch
import yaml
FILE = Path(__file__).resolve()
ROOT = FILE.parents[2] # YOLOv5 root directory
if str(ROOT) not in sys.path:
sys.path.append(str(... | 1,198 | Python | .py | 32 | 33.1875 | 116 | 0.647668 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,548 | response_utils02.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/BBB_Backup/response_utils/response_utils02.py | from flask import jsonify
from sqlalchemy.orm import DeclarativeMeta
def response(code=200, message='', data=None):
"""
自定义返回结果的封装函数
:param code: 状态码,默认为 200
:param message: 提示信息,默认为空字符串
:param data: 返回数据,默认为 None
:return: Response 对象
"""
response_data = {
'code': code,
... | 1,908 | Python | .py | 52 | 23.384615 | 81 | 0.621372 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,549 | response_utils01.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/BBB_Backup/response_utils/response_utils01.py | from flask import jsonify
def response(code=200, message='', data=None):
"""
自定义返回结果的封装函数
:param code: 状态码,默认为 200
:param message: 提示信息,默认为空字符串
:param data: 返回数据,默认为 None
:return: Response 对象
"""
response_data = {
'code': code,
'message': message,
'data': data
... | 441 | Python | .py | 15 | 18.533333 | 46 | 0.616959 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,550 | 03_Base64_Results_Example.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/BBB_Backup/example/Load_YOLOv5_from_PyTorch_Hub/03_Base64_Results_Example.py | # https://github.com/ultralytics/yolov5/pull/2291#issuecomment-786666152
import base64
import cv2
import torch
from PIL import Image
from io import BytesIO
# Model
model = torch.hub.load('ultralytics/yolov5', 'yolov5s', pretrained=True) # for file/URI/PIL/cv2/np inputs and NMS
# Images
for f in ['zidane.jpg', 'bus.... | 1,848 | Python | .py | 36 | 49.5 | 114 | 0.707087 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,551 | 01_Simple Example.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/BBB_Backup/example/Load_YOLOv5_from_PyTorch_Hub/01_Simple Example.py | import torch
# Model
model = torch.hub.load('ultralytics/yolov5', 'yolov5s')
# Image
im = 'https://ultralytics.com/images/zidane.jpg'
# Inference
results = model(im)
results.pandas().xyxy[0]
# xmin ymin xmax ymax confidence class name
# 0 749.50 43.50 1148.0 704.5 0.874023 0 person
#... | 504 | Python | .py | 13 | 37.538462 | 61 | 0.622951 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,552 | 02_Detailed Example.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/BBB_Backup/example/Load_YOLOv5_from_PyTorch_Hub/02_Detailed Example.py | import cv2
import torch
from PIL import Image
# Model
model = torch.hub.load('ultralytics/yolov5', 'yolov5s')
# Images
for f in 'zidane.jpg', 'bus.jpg':
torch.hub.download_url_to_file('https://ultralytics.com/images/' + f, f) # download 2 images
im1 = Image.open('zidane.jpg') # PIL image
im2 = cv2.imread('bus.j... | 897 | Python | .py | 22 | 39.409091 | 97 | 0.646383 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,553 | tutorial.ipynb | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/BBB_Backup/yolov5_backup/tutorial.ipynb | {
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "YOLOv5 Tutorial",
"provenance": [],
"collapsed_sections": [],
"machine_shape": "hm",
"toc_visible": true,
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_na... | 58,691 | Python | .py | 1,141 | 41.212095 | 849 | 0.497263 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,554 | load_model_demo.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/BBB_Backup/load_model/load_model_demo.py | import cv2
import torch
import os
from PIL import Image
# repo_dir = '/Users/saber/Code/Back-end/garbage_detect-backend/'
repo_dir = 'E:/Code/Back-end/garbage_detect-backend/'
weights_path = 'weights/exp3_TACO_yolov5s_300_epochs_3090Ti/weights/best.pt'
model_path = os.path.join(repo_dir, weights_path)
yolov5s_model_pa... | 1,712 | Python | .py | 35 | 47.771429 | 105 | 0.68122 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,555 | base64_results.ipynb | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/BBB_Backup/load_model/base64_results.ipynb | {
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"outputs": [],
"source": [
"import cv2\n",
"import torch\n",
"import os\n",
"from PIL import Image\n",
"import base64\n",
"from io import BytesIO"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": ... | 726,353 | Python | .py | 133 | 5,457 | 723,046 | 0.976773 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,556 | load_model_base64_demo.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/BBB_Backup/load_model/load_model_base64_demo.py | import cv2
import torch
import os
from PIL import Image
import base64
from io import BytesIO
# repo_dir = '/Users/saber/Code/Back-end/garbage_detect-backend/'
repo_dir = 'E:/Code/Back-end/garbage_detect-backend/'
weights_path = 'weights/exp3_TACO_yolov5s_300_epochs_3090Ti/weights/best.pt'
model_path = os.path.join(re... | 1,498 | Python | .py | 31 | 46.548387 | 105 | 0.73475 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,557 | example01.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/BBB_Backup/load_model/example01.py | import cv2
import torch
from PIL import Image
# Model
model = torch.hub.load('ultralytics/yolov5', 'yolov5s')
# Images
# for f in 'zidane.jpg', 'bus.jpg':
# torch.hub.download_url_to_file('https://ultralytics.com/images/' + f, f) # download 2 images
im1 = Image.open('zidane.jpg') # PIL image
im2 = cv2.imread('b... | 936 | Python | .py | 24 | 37.833333 | 99 | 0.644273 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,558 | load_model.ipynb | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/BBB_Backup/load_model/load_model.ipynb | {
"cells": [
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import cv2\n",
"import torch\n",
"import os\n",
"from PIL import Image"
]
},
{
"cell_type": "code",
"execution_count": 9,
"outputs": [],
"s... | 5,160 | Python | .py | 162 | 27.432099 | 813 | 0.540216 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,559 | logging_with_color02.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/BBB_Backup/logging_with_color/logging_with_color02.py | import logging
from colorama import init, Fore, Style
# 初始化colorama
init()
# 创建Logger对象
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
# 定义一个输出到终端并使用颜色的Handler
class ColorHandler(logging.StreamHandler):
def emit(self, record):
if record.levelno >= logging.ERROR:
color = Fore.RED ... | 1,118 | Python | .py | 32 | 26.34375 | 61 | 0.695967 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,560 | logging_with_color04.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/BBB_Backup/logging_with_color/logging_with_color04.py | import logging
import colorlog
def get_logger(level=logging.INFO):
# 创建logger对象
logger = logging.getLogger()
logger.setLevel(level)
# 创建控制台日志处理器
console_handler = logging.StreamHandler()
console_handler.setLevel(level)
# 定义颜色输出格式
color_formatter = colorlog.ColoredFormatter(
'%(... | 1,172 | Python | .py | 35 | 23.857143 | 50 | 0.650246 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,561 | logging_with_color03.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/BBB_Backup/logging_with_color/logging_with_color03.py | import logging
from colorama import init, Fore, Style
def get_logger(level=logging.INFO):
# 初始化colorama
init(autoreset=True)
# 创建Logger对象
logger = logging.getLogger()
logger.setLevel(level)
# 定义一个输出到终端并使用颜色的Handler
class ColorHandler(logging.StreamHandler):
def __init__(self, str... | 1,613 | Python | .py | 40 | 27.575 | 69 | 0.595451 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,562 | logging_with_color01.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/BBB_Backup/logging_with_color/logging_with_color01.py | import logging
import sys
# 定义一个输出到终端并使用颜色的Handler
class ColorHandler(logging.StreamHandler):
def emit(self, record):
if record.levelno >= logging.ERROR:
color = '\033[31m' # 红色
elif record.levelno >= logging.WARNING:
color = '\033[33m' # 黄色
elif record.levelno >= ... | 1,033 | Python | .py | 29 | 26.931034 | 55 | 0.672928 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,563 | voc_label_2.0.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/train_utils/voc_label_2.0.py | # xml解析包
import xml.etree.ElementTree as ET
import pickle
import os
# os.listdir() 方法用于返回指定的文件夹包含的文件或文件夹的名字的列表
from os import listdir, getcwd
from os.path import join
# 此目录结构适合yolov5-4.0及以上版本
# ROOT
# └──dataset
# ├──Annotations
# ├──images
# ├──imageSets
# └──labels
sets = ['train', 'test', 'val']
cl... | 5,521 | Python | .py | 106 | 31.188679 | 115 | 0.608221 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,564 | makeTxt_2.0.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/train_utils/makeTxt_2.0.py | import os
import random
'''
此目录结构适合yolov5-4.0及以上版本
ROOT
└──dataset
├──Annotations
├──images
├──imageSets
└──labels
'''
trainval_percent = 0.9
train_percent = 0.9
xmlfilepath = 'dataset/Annotations'
txtsavepath = 'dataset/ImageSets'
total_xml = os.listdir(xmlfilepath)
num = len(total_xml)
list = range... | 1,012 | Python | .py | 40 | 20.7 | 55 | 0.678728 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,565 | predict.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/classify/predict.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Run classification inference on images
Usage:
$ python classify/predict.py --weights yolov5s-cls.pt --source im.jpg
"""
import argparse
import os
import sys
from pathlib import Path
import cv2
import torch.nn.functional as F
FILE = Path(__file__).resolve()
ROOT ... | 4,031 | Python | .py | 89 | 40.741573 | 119 | 0.668536 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,566 | val.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/classify/val.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Validate a classification model on a dataset
Usage:
$ python classify/val.py --weights yolov5s-cls.pt --data ../datasets/imagenet
"""
import argparse
import os
import sys
from pathlib import Path
import torch
from tqdm import tqdm
FILE = Path(__file__).resolve()... | 6,938 | Python | .py | 135 | 43.007407 | 120 | 0.617847 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,567 | train.py | FlatWhite233_yolov5_garbage_detect/yolov5_garbage_detect-backend/classify/train.py | # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
"""
Train a YOLOv5 classifier model on a classification dataset
Datasets: --data mnist, fashion-mnist, cifar10, cifar100, imagenette, imagewoof, imagenet, or 'path/to/custom/dataset'
Usage:
$ python classify/train.py --model yolov5s-cls.pt --data cifar100 --epochs 5 --... | 15,766 | Python | .py | 280 | 45.078571 | 167 | 0.59491 | FlatWhite233/yolov5_garbage_detect | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,568 | setup.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/setup.py | # SPDX-FileCopyrightText: 2014-2023 Fredrik Ahlberg, Angus Gratton,
# Espressif Systems (Shanghai) CO LTD, other contributors as noted.
#
# SPDX-License-Identifier: GPL-2.0-or-later
import io
import os
import re
import sys
try:
from setuptools import find_packages, setup
except ImportError:
print(
"Pa... | 4,274 | Python | .py | 122 | 28.967213 | 88 | 0.623731 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,569 | espefuse.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/espefuse.py | #!/usr/bin/env python
#
# SPDX-FileCopyrightText: 2014-2022 Fredrik Ahlberg, Angus Gratton,
# Espressif Systems (Shanghai) CO LTD, other contributors as noted.
#
# SPDX-License-Identifier: GPL-2.0-or-later
# This executable script is a thin wrapper around the main functionality
# in the espefuse Python package
# When... | 1,180 | Python | .py | 30 | 34.766667 | 79 | 0.718285 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,570 | esptool.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/esptool.py | #!/usr/bin/env python
#
# SPDX-FileCopyrightText: 2014-2022 Fredrik Ahlberg, Angus Gratton,
# Espressif Systems (Shanghai) CO LTD, other contributors as noted.
#
# SPDX-License-Identifier: GPL-2.0-or-later
# This executable script is a thin wrapper around the main functionality
# in the esptool Python package
# When ... | 1,175 | Python | .py | 30 | 34.6 | 79 | 0.717047 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,571 | esp_rfc2217_server.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/esp_rfc2217_server.py | #!/usr/bin/env python
# SPDX-FileCopyrightText: 2009-2015 Chris Liechti
# SPDX-FileContributor: 2020-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: BSD-3-Clause
#
# Redirect data from a TCP/IP connection to a serial port and vice versa using RFC 2217.
#
# This is a modified version of rfc2217_serv... | 9,762 | Python | .py | 251 | 30.462151 | 88 | 0.621596 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,572 | espsecure.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/espsecure.py | #!/usr/bin/env python
#
# SPDX-FileCopyrightText: 2014-2022 Fredrik Ahlberg, Angus Gratton,
# Espressif Systems (Shanghai) CO LTD, other contributors as noted.
#
# SPDX-License-Identifier: GPL-2.0-or-later
# This executable script is a thin wrapper around the main functionality
# in the espsecure Python package
# Whe... | 1,185 | Python | .py | 30 | 34.933333 | 79 | 0.719512 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,573 | conftest.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/test/conftest.py | import pytest
def pytest_addoption(parser):
# test_esptool.py and test_espefuse.py
parser.addoption(
"--port", action="store", default="/dev/ttyUSB0", help="Serial port"
)
parser.addoption("--chip", action="store", default="esp32", help="Chip type")
# test_esptool.py only
parser.addop... | 1,894 | Python | .py | 49 | 32.591837 | 86 | 0.665576 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,574 | test_modules.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/test/test_modules.py | # Tests for regressions in python modules
# used by esptool.py, espefuse.py, and espsecure.py
import pytest
import reedsolo
@pytest.mark.host_test
def test_reed_solomon_encoding():
# fmt: off
pairs = [("a0a1a2a3a4a5a6a7a8a9aaabacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebf", "0404992ae0b12cb0ef0d4fd3"),
... | 2,718 | Python | .py | 34 | 69.970588 | 110 | 0.775952 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,575 | test_espsecure.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/test/test_espsecure.py | # Tests for espsecure.py using the pytest framework
#
# Assumes openssl binary is in the PATH
import binascii
import io
import os
import os.path
import subprocess
import sys
import tempfile
from collections import namedtuple
from conftest import need_to_install_package_err
import pytest
try:
import esptool
... | 31,254 | Python | .py | 825 | 25.483636 | 118 | 0.544405 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,576 | test_image_info.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/test/test_image_info.py | import os
import os.path
import subprocess
import sys
from conftest import need_to_install_package_err
import pytest
try:
import esptool # noqa: F401
except ImportError:
need_to_install_package_err()
IMAGES_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "images")
ESP8266_BIN = "not_4_byte_... | 7,714 | Python | .py | 163 | 38.374233 | 87 | 0.620364 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,577 | test_espefuse.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/test/test_espefuse.py | # HOST_TEST for espefuse.py using the pytest framework
#
# Supports esp32, esp32s2, esp32s3beta2, esp32s3,
# esp32c3, esp32h2beta1, esp32c2, esp32c6
#
# How to use:
#
# Run as HOST_TEST (without a physical connection to a chip):
# - `pytest test_espefuse.py --chip esp32`
# - `pytest test_espefuse.py --chip e... | 74,249 | Python | .py | 1,778 | 30.940382 | 88 | 0.56524 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,578 | test_espsecure_hsm.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/test/test_espsecure_hsm.py | # Tests for espsecure.py (esp_hsm_sign.py) using the pytest framework
#
# Assumes openssl binary is in the PATH
import configparser
import os
import os.path
import sys
import tempfile
from collections import namedtuple
from conftest import need_to_install_package_err
try:
import espsecure
import pkcs11
excep... | 8,296 | Python | .py | 218 | 24.655963 | 88 | 0.514726 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,579 | test_merge_bin.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/test/test_merge_bin.py | import itertools
import os
import os.path
import subprocess
import sys
import tempfile
IMAGES_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "images")
from conftest import need_to_install_package_err
import pytest
try:
from esptool.util import byte
except ImportError:
need_to_install_package... | 6,839 | Python | .py | 158 | 33.240506 | 86 | 0.594013 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,580 | sitecustomize.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/test/sitecustomize.py | try:
import coverage
coverage.process_startup()
except ModuleNotFoundError:
print("Coverage.py is not installed, skipping code coverage measurement")
# This file exists to perform arbitrary site-specific customizations.
# This script is executed before every Python process to start coverage measurement.
| 319 | Python | .py | 7 | 42.571429 | 84 | 0.812903 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,581 | test_esptool.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/test/test_esptool.py | # Unit tests (really integration tests) for esptool.py using the pytest framework
# Uses a device connected to the serial port.
#
# RUNNING THIS WILL MESS UP THE DEVICE'S SPI FLASH CONTENTS
#
# How to use:
#
# Run with a physical connection to a chip:
# - `pytest test_esptool.py --chip esp32 --port /dev/ttyUSB0 --baud... | 52,187 | Python | .py | 1,123 | 36.972395 | 88 | 0.621482 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,582 | test_imagegen.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/test/test_imagegen.py | import hashlib
import os
import os.path
import struct
import subprocess
import sys
from conftest import need_to_install_package_err
from elftools.elf.elffile import ELFFile
import pytest
TEST_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "elf2image")
try:
import esptool
except ImportError:
... | 19,223 | Python | .py | 429 | 34.365967 | 87 | 0.588527 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,583 | efuse_burn1.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/test/efuse_scripts/efuse_burn1.py | # flake8: noqa
# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
#
# SPDX-License-Identifier: GPL-2.0-or-later
import json
config = json.load(args.configfiles[0])
assert args.index == 10, "Index should be 10"
for cmd in config["burn_efuses1"]:
cmd = cmd.format(index=args.index)
print(... | 409 | Python | .py | 12 | 31.583333 | 71 | 0.736573 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,584 | efuse_burn2.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/test/efuse_scripts/efuse_burn2.py | # flake8: noqa
# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
#
# SPDX-License-Identifier: GPL-2.0-or-later
import json
config = json.load(args.configfiles[0])
assert args.index == 28, "Should be index from the first script = 28"
for cmd in config["burn_efuses2"]:
cmd = cmd.format(inde... | 457 | Python | .py | 12 | 35.583333 | 71 | 0.738041 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,585 | execute_efuse_script2.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/test/efuse_scripts/esp32xx/execute_efuse_script2.py | # flake8: noqa
# fmt: off
espefuse(esp, efuses, args, 'burn_efuse DIS_FORCE_DOWNLOAD 1 DIS_CAN 1 DIS_DOWNLOAD_MODE 1')
if efuses["DIS_FORCE_DOWNLOAD"].get() != 0:
raise esptool.FatalError("Burn should be at the end")
espefuse(esp, efuses, args, 'burn_bit BLOCK_USR_DATA 64 66 69 72 78 82 83 90')
if efuses["BLOCK_US... | 2,001 | Python | .py | 25 | 77.56 | 143 | 0.711314 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,586 | execute_efuse_script.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/test/efuse_scripts/esp32xx/execute_efuse_script.py | # flake8: noqa
# fmt: off
espefuse(esp, efuses, args, 'burn_efuse DIS_FORCE_DOWNLOAD 1 DIS_CAN 1 DIS_DOWNLOAD_MODE 1')
espefuse(esp, efuses, args, 'burn_bit BLOCK_USR_DATA 64 66 69 72 78 82 83 90')
espefuse(esp, efuses, args, 'read_protect_efuse BLOCK_SYS_DATA2')
espefuse(esp, efuses, args, 'write_protect_efuse BLOCK_S... | 3,201 | Python | .py | 45 | 68.333333 | 143 | 0.724402 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,587 | execute_efuse_script2.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/test/efuse_scripts/esp32/execute_efuse_script2.py | # flake8: noqa
# fmt: off
espefuse(esp, efuses, args, "burn_efuse JTAG_DISABLE 1 DISABLE_SDIO_HOST 1 CONSOLE_DEBUG_DISABLE 1")
if efuses["JTAG_DISABLE"].get() != 0:
raise esptool.FatalError("Burn should be at the end")
espefuse(esp, efuses, args, "burn_key flash_encryption ../../images/efuse/256bit --no-protect-ke... | 1,416 | Python | .py | 19 | 72.052632 | 135 | 0.705671 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,588 | execute_efuse_script.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/test/efuse_scripts/esp32/execute_efuse_script.py | # flake8: noqa
# fmt: off
espefuse(esp, efuses, args, "burn_efuse JTAG_DISABLE 1 DISABLE_SDIO_HOST 1 CONSOLE_DEBUG_DISABLE 1")
espefuse(esp, efuses, args, "burn_key flash_encryption ../../images/efuse/256bit --no-protect-key")
espefuse(esp, efuses, args, "burn_key_digest ../../secure_images/rsa_secure_boot_signing_key.... | 2,280 | Python | .py | 35 | 62.571429 | 135 | 0.72287 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,589 | esptool_test_stub.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/flasher_stub/esptool_test_stub.py | #!/usr/bin/env python
#
# SPDX-FileCopyrightText: 2014-2022 Fredrik Ahlberg, Angus Gratton,
# Espressif Systems (Shanghai) CO LTD, other contributors as noted.
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Trivial wrapper program to run esptool.py using the just-compiled
# flasher stub in the build/ subdirectory
#
... | 971 | Python | .py | 30 | 29.7 | 84 | 0.712299 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,590 | wrap_stub.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/flasher_stub/wrap_stub.py | #!/usr/bin/env python
#
# SPDX-FileCopyrightText: 2016 Cesanta Software Limited
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# SPDX-FileContributor: 2016-2022 Espressif Systems (Shanghai) CO LTD
import argparse
import base64
import json
import os
import os.path
import sys
sys.path.append("..")
import esptool # no... | 2,318 | Python | .py | 68 | 28.058824 | 81 | 0.61828 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,591 | compare_stubs.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/flasher_stub/compare_stubs.py | #!/usr/bin/env python
#
# SPDX-FileCopyrightText: 2014-2022 Fredrik Ahlberg, Angus Gratton,
# Espressif Systems (Shanghai) CO LTD, other contributors as noted.
#
# SPDX-License-Identifier: GPL-2.0-or-later
import os
import sys
import esptool
# Compare the esptool stub loaders to freshly built ones in the build direc... | 2,928 | Python | .py | 78 | 28.615385 | 86 | 0.539492 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,592 | __main__.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/espsecure/__main__.py | # SPDX-FileCopyrightText: 2016-2022 Espressif Systems (Shanghai) CO LTD
#
# SPDX-License-Identifier: GPL-2.0-or-later
import espsecure
if __name__ == "__main__":
espsecure._main()
| 186 | Python | .py | 6 | 29 | 71 | 0.724719 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,593 | __init__.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/espsecure/__init__.py | # SPDX-FileCopyrightText: 2016-2023 Espressif Systems (Shanghai) CO LTD
#
# SPDX-License-Identifier: GPL-2.0-or-later
import argparse
import hashlib
import operator
import os
import struct
import sys
import tempfile
import zlib
from collections import namedtuple
from cryptography import exceptions
from cryptography.h... | 63,263 | Python | .py | 1,573 | 31.539097 | 88 | 0.612827 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,594 | __init__.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/espsecure/esp_hsm_sign/__init__.py | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
#
# SPDX-License-Identifier: GPL-2.0-or-later
import binascii
import configparser
import os
import sys
from getpass import getpass
try:
import pkcs11
from .exceptions import handle_exceptions
except ImportError:
raise ImportError(
... | 5,796 | Python | .py | 145 | 31.393103 | 88 | 0.644765 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,595 | exceptions.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/espsecure/esp_hsm_sign/exceptions.py | # SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
#
# SPDX-License-Identifier: GPL-2.0-or-later
from pkcs11.exceptions import (
AlreadyInitialized,
AnotherUserAlreadyLoggedIn,
ArgumentsBad,
DeviceRemoved,
DomainParamsInvalid,
FunctionFailed,
MechanismInvalid,
NoSuchKey,... | 1,750 | Python | .py | 47 | 30.978723 | 87 | 0.702941 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,596 | conf_common.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/docs/conf_common.py | from esp_docs.conf_docs import * # noqa: F403,F401
languages = ["en"]
idf_targets = [
"esp8266",
"esp32",
"esp32s2",
"esp32s3",
"esp32c3",
"esp32c2",
"esp32c6",
"esp32h2",
]
# link roles config
github_repo = "espressif/esptool"
# context used by sphinx_idf_theme
html_context["github_... | 1,125 | Python | .py | 44 | 22.568182 | 60 | 0.693897 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,597 | conf.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/docs/en/conf.py | # -*- coding: utf-8 -*-
#
# English Language RTD & Sphinx config file
#
# Uses ../conf_common.py for most non-language-specific settings.
# Importing conf_common adds all the non-language-specific
# parts to this conf module
import datetime
try:
from conf_common import * # noqa: F403,F401
except ImportError:
... | 744 | Python | .py | 23 | 30.043478 | 74 | 0.734266 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,598 | patch_dev_release.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/ci/patch_dev_release.py | # SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
#
# SPDX-License-Identifier: GPL-2.0-or-later
import argparse
import re
LINE_RE = re.compile(r"^__version__ = ['\"]([^'\"]*)['\"]")
NEW_LINE = '__version__ = "{}"'
def get_new_version(old_version, dev_number):
assert old_version.endswith("-dev")... | 1,133 | Python | .py | 31 | 31.16129 | 80 | 0.622936 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |
2,289,599 | reset.py | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/esptool/reset.py | # SPDX-FileCopyrightText: 2014-2023 Fredrik Ahlberg, Angus Gratton,
# Espressif Systems (Shanghai) CO LTD, other contributors as noted.
#
# SPDX-License-Identifier: GPL-2.0-or-later
import os
import struct
import time
from .util import FatalError
# Used for resetting into bootloader on Unix-like systems
if os.name !... | 5,743 | Python | .py | 144 | 32.673611 | 88 | 0.632704 | OLIMEX/RVPC | 8 | 2 | 1 | GPL-3.0 | 9/5/2024, 10:48:43 PM (Europe/Amsterdam) |