This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import re | |
| import math | |
| import uuid | |
| import shutil | |
| import random | |
| import hashlib | |
| import gc | |
| import copy | |
| import json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import re | |
| import time | |
| import math | |
| import uuid | |
| import json | |
| import shutil | |
| import random | |
| import types | |
| import hashlib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from dataclasses import dataclass | |
| from tqdm import tqdm | |
| import os | |
| import re | |
| import math | |
| import uuid | |
| import torch | |
| import shutil | |
| import imageio | |
| import ffmpeg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| from PySide6.QtWidgets import QApplication, QWidget, QVBoxLayout, QLabel | |
| from PySide6.QtCore import Qt | |
| class CursorShapeTest(QWidget): | |
| def __init__(self): | |
| super().__init__() | |
| layout = QVBoxLayout() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from Cocoa import NSCursor, NSImage, NSBitmapImageRep, NSPNGFileType | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from io import BytesIO | |
| import cv2 | |
| def get_cursor_info(): | |
| # Lấy con trỏ hiện tại | |
| cursor = NSCursor.currentSystemCursor() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import shutil | |
| import os | |
| from pathlib import Path | |
| import cv2 | |
| def load_files(dir: str, ext: str): | |
| paths = [] | |
| for root, dirs, files in os.walk(dir): | |
| for file in files: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from typing import Tuple, Any | |
| import numpy as np | |
| from savant.base.converter import BaseComplexModelOutputConverter | |
| from savant.base.model import ComplexModel | |
| from numba.typed import List | |
| from savant.selector.detector import nms_cpu | |
| def area_of(left_top, right_bottom): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import shutil | |
| import os | |
| from pathlib import Path | |
| def load_files(dir: str, ext: str): | |
| paths = [] | |
| for root, dirs, files in os.walk(dir): | |
| for file in files: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| categories = [ | |
| 'unuse0', | |
| 'unuse1', | |
| '1 line dark', | |
| '2 lines dark', | |
| '1 line light', | |
| '2 lines light', | |
| 'unuse6', | |
| 'unuse7', | |
| 'unuse8', |
NewerOlder
