INNER CODE UNIT · Python

RClip

yurijmikhalevich/rclip · rclip/main.py:60

class RClip:
  EXCLUDE_DIRS_DEFAULT = ["@eaDir", "node_modules", ".git", "System Volume Information"]
  DB_IMAGES_BEFORE_COMMIT = 50_000
  # how many indexing batches to keep loading ahead of the model; preprocessed
  # images are small (a few hundred KB each), so a few batches of look-ahead
  # cost little memory.
  LOOKAHEAD_BATCHES = 3
  MAX_IMAGE_LOADING_WORKERS = 16
  SEARCH_BATCH_SIZE = 4096

  class SearchResult(NamedTuple):
    filepath: str
    score: float

  class ImageCursor(NamedTuple):
    modified_at: float
    filepath: str

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…