repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/batch_running/benchmarking/summarize_benchmark_results.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:35.660107 | from batchgenerators.utilities.file_and_folder_operations import join, load_json, isfile
from nnunetv2.utilities.dataset_name_id_conversion import maybe_convert_to_dataset_name
from nnunetv2.paths import nnUNet_results
from nnunetv2.utilities.file_path_utilities import get_output_folder
if __name__ == '__main__':
... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/batch_running/release_trainings/nnunetv2_v1/collect_results.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:35.836254 | from typing import Tuple
import numpy as np
from batchgenerators.utilities.file_and_folder_operations import *
from nnunetv2.evaluation.evaluate_predictions import load_summary_json
from nnunetv2.paths import nnUNet_results
from nnunetv2.utilities.dataset_name_id_conversion import maybe_convert_to_dataset_name, conve... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | evaluation/endoscopy_DSC_Eval.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:35.837000 | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 15 12:59:48 2022
@author: 12593
"""
import numpy as np
#import nibabel as nb
import cv2
import os
from collections import OrderedDict
import pandas as pd
from SurfaceDice import compute_surface_distances, compute_surface_dice_at_tolerance, compute_dice_coefficient
join =... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/batch_running/release_trainings/nnunetv2_v1/generate_lsf_commands.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:35.957837 | from copy import deepcopy
import numpy as np
def merge(dict1, dict2):
keys = np.unique(list(dict1.keys()) + list(dict2.keys()))
keys = np.unique(keys)
res = {}
for k in keys:
all_configs = []
if dict1.get(k) is not None:
all_configs += list(dict1[k])
if dict2.get(k)... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/Dataset027_ACDC.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:36.391537 | import os
import shutil
from pathlib import Path
from nnunetv2.dataset_conversion.generate_dataset_json import generate_dataset_json
from nnunetv2.paths import nnUNet_raw
def make_out_dirs(dataset_id: int, task_name="ACDC"):
dataset_name = f"Dataset{dataset_id:03d}_{task_name}"
out_dir = Path(nnUNet_raw.rep... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/configuration.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:36.433207 | import os
from nnunetv2.utilities.default_n_proc_DA import get_allowed_n_proc_DA
default_num_processes = 8 if 'nnUNet_def_n_proc' not in os.environ else int(os.environ['nnUNet_def_n_proc'])
ANISO_THRESHOLD = 3 # determines when a sample is considered anisotropic (3 means that the spacing in the low
# resolution axi... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/Dataset073_Fluo_C3DH_A549_SIM.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:36.501644 | from nnunetv2.dataset_conversion.generate_dataset_json import generate_dataset_json
from nnunetv2.paths import nnUNet_raw, nnUNet_preprocessed
import tifffile
from batchgenerators.utilities.file_and_folder_operations import *
import shutil
if __name__ == '__main__':
"""
This is going to be my test dataset for... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/Dataset114_MNMs.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:36.502855 | import csv
import os
import random
from pathlib import Path
import nibabel as nib
from batchgenerators.utilities.file_and_folder_operations import load_json, save_json
from nnunetv2.dataset_conversion.Dataset027_ACDC import make_out_dirs
from nnunetv2.dataset_conversion.generate_dataset_json import generate_dataset_j... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/Dataset115_EMIDEC.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:36.656727 | import shutil
from pathlib import Path
from nnunetv2.dataset_conversion.Dataset027_ACDC import make_out_dirs
from nnunetv2.dataset_conversion.generate_dataset_json import generate_dataset_json
def copy_files(src_data_dir: Path, src_test_dir: Path, train_dir: Path, labels_dir: Path, test_dir: Path):
"""Copy files... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/Dataset137_BraTS21.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:37.018483 | import multiprocessing
import shutil
from multiprocessing import Pool
import SimpleITK as sitk
import numpy as np
from batchgenerators.utilities.file_and_folder_operations import *
from nnunetv2.dataset_conversion.generate_dataset_json import generate_dataset_json
from nnunetv2.paths import nnUNet_raw
def copy_BraTS... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/Dataset219_Amos2022_task2.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:37.109553 | from batchgenerators.utilities.file_and_folder_operations import *
import shutil
from nnunetv2.dataset_conversion.generate_dataset_json import generate_dataset_json
from nnunetv2.paths import nnUNet_raw
def convert_amos_task2(amos_base_dir: str, nnunet_dataset_id: int = 219):
"""
AMOS doesn't say anything abo... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/Dataset218_Amos2022_task1.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:37.122949 | from batchgenerators.utilities.file_and_folder_operations import *
import shutil
from nnunetv2.dataset_conversion.generate_dataset_json import generate_dataset_json
from nnunetv2.paths import nnUNet_raw
def convert_amos_task1(amos_base_dir: str, nnunet_dataset_id: int = 218):
"""
AMOS doesn't say anything abo... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/Dataset120_RoadSegmentation.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:37.222035 | import multiprocessing
import shutil
from multiprocessing import Pool
from batchgenerators.utilities.file_and_folder_operations import *
from nnunetv2.dataset_conversion.generate_dataset_json import generate_dataset_json
from nnunetv2.paths import nnUNet_raw
from skimage import io
from acvl_utils.morphology.morpholog... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/Dataset220_KiTS2023.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:37.278415 | from batchgenerators.utilities.file_and_folder_operations import *
import shutil
from nnunetv2.dataset_conversion.generate_dataset_json import generate_dataset_json
from nnunetv2.paths import nnUNet_raw
def convert_kits2023(kits_base_dir: str, nnunet_dataset_id: int = 220):
task_name = "KiTS2023"
foldername ... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/Dataset221_AutoPETII_2023.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:37.607728 | from batchgenerators.utilities.file_and_folder_operations import *
import shutil
from nnunetv2.dataset_conversion.generate_dataset_json import generate_dataset_json
from nnunetv2.paths import nnUNet_raw, nnUNet_preprocessed
def convert_autopet(autopet_base_dir:str = '/media/isensee/My Book1/AutoPET/nifti/FDG-PET-CT-L... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/Dataset988_dummyDataset4.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:37.734843 | import os
from batchgenerators.utilities.file_and_folder_operations import *
from nnunetv2.paths import nnUNet_raw
from nnunetv2.utilities.utils import get_filenames_of_train_images_and_targets
if __name__ == '__main__':
# creates a dummy dataset where there are no files in imagestr and labelstr
source_datas... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/datasets_for_integration_tests/Dataset996_IntegrationTest_Hippocampus_regions_ignore.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:38.330876 | import SimpleITK as sitk
import shutil
import numpy as np
from batchgenerators.utilities.file_and_folder_operations import isdir, join, load_json, save_json, nifti_files
from nnunetv2.utilities.dataset_name_id_conversion import maybe_convert_to_dataset_name
from nnunetv2.paths import nnUNet_raw
from nnunetv2.utilitie... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/convert_raw_dataset_from_old_nnunet_format.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:38.521033 | import shutil
from copy import deepcopy
from batchgenerators.utilities.file_and_folder_operations import join, maybe_mkdir_p, isdir, load_json, save_json
from nnunetv2.paths import nnUNet_raw
def convert(source_folder, target_dataset_name):
"""
remember that old tasks were called TaskXXX_YYY and new ones are... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/convert_MSD_dataset.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:39.053210 | import argparse
import multiprocessing
import shutil
from multiprocessing import Pool
from typing import Optional
import SimpleITK as sitk
from batchgenerators.utilities.file_and_folder_operations import *
from nnunetv2.paths import nnUNet_raw
from nnunetv2.utilities.dataset_name_id_conversion import find_candidate_dat... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/datasets_for_integration_tests/Dataset999_IntegrationTest_Hippocampus.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:39.296927 | import shutil
from batchgenerators.utilities.file_and_folder_operations import isdir, join
from nnunetv2.utilities.dataset_name_id_conversion import maybe_convert_to_dataset_name
from nnunetv2.paths import nnUNet_raw
if __name__ == '__main__':
dataset_name = 'IntegrationTest_Hippocampus'
dataset_id = 999
... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/generate_dataset_json.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:39.860929 | from typing import Tuple
from batchgenerators.utilities.file_and_folder_operations import save_json, join
def generate_dataset_json(output_folder: str,
channel_names: dict,
labels: dict,
num_training_cases: int,
f... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/batch_running/collect_results_custom_Decathlon_2d.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:40.194841 | from batchgenerators.utilities.file_and_folder_operations import *
from nnunetv2.batch_running.collect_results_custom_Decathlon import collect_results, summarize
from nnunetv2.paths import nnUNet_results
if __name__ == '__main__':
use_these_trainers = {
'nnUNetTrainer': ('nnUNetPlans', ),
}
all_re... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/batch_running/collect_results_custom_Decathlon.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:40.210073 | from typing import Tuple
import numpy as np
from batchgenerators.utilities.file_and_folder_operations import *
from nnunetv2.evaluation.evaluate_predictions import load_summary_json
from nnunetv2.paths import nnUNet_results
from nnunetv2.utilities.dataset_name_id_conversion import maybe_convert_to_dataset_name, conve... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/ensembling/ensemble.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:40.308023 | import argparse
import multiprocessing
import shutil
from copy import deepcopy
from multiprocessing import Pool
from typing import List, Union, Tuple
import numpy as np
from batchgenerators.utilities.file_and_folder_operations import load_json, join, subfiles, \
maybe_mkdir_p, isdir, save_pickle, load_pickle, isfi... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/batch_running/benchmarking/generate_benchmarking_commands.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:40.412182 | if __name__ == '__main__':
"""
This code probably only works within the DKFZ infrastructure (using LSF). You will need to adapt it to your scheduler!
"""
gpu_models = [#'NVIDIAA100_PCIE_40GB', 'NVIDIAGeForceRTX2080Ti', 'NVIDIATITANRTX', 'TeslaV100_SXM2_32GB',
'NVIDIAA100_SXM4_40GB']#,... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/evaluation/accumulate_cv_results.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:40.622412 | import shutil
from typing import Union, List, Tuple
from batchgenerators.utilities.file_and_folder_operations import load_json, join, isdir, maybe_mkdir_p, subfiles, isfile
from nnunetv2.configuration import default_num_processes
from nnunetv2.evaluation.evaluate_predictions import compute_metrics_on_folder
from nnun... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/evaluation/evaluate_predictions.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:40.780533 | import multiprocessing
import os
from copy import deepcopy
from multiprocessing import Pool
from typing import Tuple, List, Union, Optional
import numpy as np
from batchgenerators.utilities.file_and_folder_operations import subfiles, join, save_json, load_json, \
isfile
from nnunetv2.configuration import default_n... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/evaluation/find_best_configuration.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:40.933219 | import argparse
import os.path
from copy import deepcopy
from typing import Union, List, Tuple
from batchgenerators.utilities.file_and_folder_operations import load_json, join, isdir, save_json
from nnunetv2.configuration import default_num_processes
from nnunetv2.ensembling.ensemble import ensemble_crossvalidations
... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/experiment_planning/dataset_fingerprint/fingerprint_extractor.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:41.132397 | import multiprocessing
import os
from time import sleep
from typing import List, Type, Union
import numpy as np
from batchgenerators.utilities.file_and_folder_operations import load_json, join, save_json, isfile, maybe_mkdir_p
from tqdm import tqdm
from nnunetv2.imageio.base_reader_writer import BaseReaderWriter
from... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/datasets_for_integration_tests/Dataset997_IntegrationTest_Hippocampus_regions.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:43.351463 | import shutil
from batchgenerators.utilities.file_and_folder_operations import isdir, join, load_json, save_json
from nnunetv2.utilities.dataset_name_id_conversion import maybe_convert_to_dataset_name
from nnunetv2.paths import nnUNet_raw
if __name__ == '__main__':
dataset_name = 'IntegrationTest_Hippocampus_reg... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/dataset_conversion/datasets_for_integration_tests/Dataset998_IntegrationTest_Hippocampus_ignore.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:43.352235 | import shutil
from batchgenerators.utilities.file_and_folder_operations import isdir, join, load_json, save_json
from nnunetv2.utilities.dataset_name_id_conversion import maybe_convert_to_dataset_name
from nnunetv2.paths import nnUNet_raw
if __name__ == '__main__':
dataset_name = 'IntegrationTest_Hippocampus_ig... |
bowang-lab/U-Mamba | https://github.com/bowang-lab/U-Mamba | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | umamba/nnunetv2/batch_running/generate_lsf_runs_customDecathlon.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:45.470100 | from copy import deepcopy
import numpy as np
def merge(dict1, dict2):
keys = np.unique(list(dict1.keys()) + list(dict2.keys()))
keys = np.unique(keys)
res = {}
for k in keys:
all_configs = []
if dict1.get(k) is not None:
all_configs += list(dict1[k])
if dict2.get(k)... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/const.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:47.907632 | import os
import tempfile
from pathlib import Path
from sys import platform
from typing import Any, Dict, Optional, Sequence, Tuple, Union
from omegaconf import DictConfig
def get_cache_folder() -> Path:
if platform == "linux" or platform == "linux2":
return Path(os.environ.get("XDG_CACHE_HOME", Path.hom... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/datasets/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:47.908147 | from oml.datasets.audios import (
AudioBaseDataset,
AudioLabeledDataset,
AudioQueryGalleryDataset,
AudioQueryGalleryLabeledDataset,
)
from oml.datasets.images import (
ImageBaseDataset,
ImageLabeledDataset,
ImageQueryGalleryDataset,
ImageQueryGalleryLabeledDataset,
)
from oml.datasets.pa... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | docs/source/conf.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:47.923978 | # Configuration file for the Sphinx documentation builder.
# -- Project information
import sys
from pathlib import Path
project_root = Path(__file__).parent.parent.parent
sys.path.insert(0, str(project_root))
with open(project_root / "oml" / "__init__.py", "r") as f:
version = f.read().split('"')[-2]
project ... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/datasets/base.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:47.928357 | from oml.datasets.images import ImageLabeledDataset, ImageQueryGalleryLabeledDataset
class DatasetWithLabels(ImageLabeledDataset):
# this class allows to have backward compatibility
pass
class DatasetQueryGallery(ImageQueryGalleryLabeledDataset):
# this class allows to have backward compatibility
pa... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/datasets/dataframe.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:47.929763 | from typing import Any, Dict, Optional, Union
import numpy as np
import pandas as pd
from torch import BoolTensor, LongTensor
from oml.const import (
CATEGORIES_COLUMN,
IS_GALLERY_COLUMN,
IS_QUERY_COLUMN,
LABELS_COLUMN,
LABELS_KEY,
SEQUENCE_COLUMN,
)
from oml.interfaces.datasets import (
I... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/datasets/images.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:47.930909 | from functools import lru_cache
from pathlib import Path
from typing import Any, Dict, List, Optional, Tuple, Union
import albumentations as albu
import numpy as np
import pandas as pd
import torchvision
from torch import FloatTensor
from oml.const import (
BLACK,
INDEX_KEY,
INPUT_TENSORS_KEY,
LABELS_... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/datasets/audios.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:47.955652 | import warnings
from pathlib import Path
from typing import Any, Callable, Dict, List, Optional, Union
import numpy as np
import pandas as pd
import torch
from torch import FloatTensor
from oml.const import (
AUDIO_EXTENSIONS,
BLACK,
DEFAULT_CONVERT_TO_MONO,
DEFAULT_SAMPLE_RATE,
INDEX_KEY,
INP... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/datasets/pairs.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:47.987822 | from typing import Dict, List, Tuple, Union
from torch import Tensor
from oml.const import INDEX_KEY, INPUT_TENSORS_KEY_1, INPUT_TENSORS_KEY_2
from oml.interfaces.datasets import IBaseDataset, IPairDataset
class PairDataset(IPairDataset):
"""
Dataset to iterate over pairs of items of any modality.
"""
... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/ddp/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:48.547312 | import itertools
import warnings
from typing import Any, Dict, List, Optional, Union
import numpy as np
import torch
from torch.distributed import all_gather_object, get_rank, get_world_size
class WarningDDP(UserWarning):
def __init__(self, function_name: str):
self.message = (
f"You use '{fu... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/ddp/patching.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:48.571263 | import inspect
import logging
import warnings
from typing import Any, Dict, List, Sequence, Union
from torch.utils.data import (
BatchSampler,
DataLoader,
Dataset,
DistributedSampler,
Sampler,
)
from oml.ddp.utils import WarningDDP, is_ddp
from oml.interfaces.samplers import IBatchSampler
TAllSam... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/functional/losses.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:48.593212 | import torch
from torch import Tensor, sigmoid
def get_reduced(tensor: Tensor, reduction: str) -> Tensor:
if reduction == "mean":
return tensor.mean()
elif reduction == "sum":
return tensor.sum()
elif reduction == "none":
return tensor
else:
raise ValueError(f"Unexpe... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/functional/label_smoothing.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:48.594558 | from typing import Optional
import torch
import torch.nn.functional as F
@torch.no_grad()
def label_smoothing(
y: torch.Tensor,
num_classes: int,
epsilon: float = 0.2,
categories: Optional[torch.Tensor] = None,
) -> torch.Tensor:
"""
This function is doing `label smoothing <https://arxiv.org/... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/functional/knn.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:48.596394 | from typing import Optional, Sequence, Tuple
import torch
from torch import BoolTensor, FloatTensor, LongTensor, Tensor
from tqdm.auto import tqdm
from oml.const import BS_KNN
from oml.utils.misc_torch import pairwise_dist
def check_both_are_nones_or_not_nones(a: Optional[Tensor], b: Optional[Tensor]) -> bool:
... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/functional/metrics.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:48.607450 | from collections import defaultdict
from typing import Any, Dict, List, Optional, Sequence, Tuple, Union
import numpy as np
import torch
from torch import BoolTensor, FloatTensor, LongTensor, Tensor, isin
from tqdm.auto import tqdm
from oml.const import OVERALL_CATEGORIES_KEY
from oml.utils.misc import check_if_nonem... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/datasets/texts.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:48.609838 | import warnings
from typing import Any, Dict, List, Optional
import numpy as np
import pandas as pd
from oml.const import INDEX_KEY, INPUT_TENSORS_KEY, LABELS_KEY, TEXTS_COLUMN, TColor
from oml.datasets.dataframe import (
DFLabeledDataset,
DFQueryGalleryDataset,
DFQueryGalleryLabeledDataset,
)
from oml.in... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/interfaces/miners.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:49.576446 | from abc import ABC, abstractmethod
from collections import Counter
from typing import List, Tuple, Union
from torch import Tensor
TTriplets = Tuple[Tensor, Tensor, Tensor]
TTripletsIds = Tuple[List[int], List[int], List[int]]
TLabels = Union[List[int], Tensor]
def labels2list(labels: TLabels) -> List[int]:
if ... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/interfaces/criterions.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:49.577285 | from typing import List, Union
from torch import Tensor
from torch.nn import Module
class ITripletLossWithMiner(Module):
"""
Base class for TripletLoss combined with Miner.
"""
def forward(self, features: Tensor, labels: Union[Tensor, List[int]]) -> Tensor:
"""
Args:
fea... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/interfaces/loggers.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:49.604481 | from abc import abstractmethod
from matplotlib import pyplot as plt
from pytorch_lightning.loggers import Logger as LightningLogger
from oml.const import TCfg
class IFigureLogger:
@abstractmethod
def log_figure(self, fig: plt.Figure, title: str, idx: int) -> None:
raise NotImplementedError()
class... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/interfaces/metrics.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:49.605810 | from abc import ABC, abstractmethod
from typing import Any, Collection, Dict, List, Tuple, Union
import matplotlib.pyplot as plt
from torch import LongTensor
from oml.const import OVERALL_CATEGORIES_KEY
TIndices = Union[LongTensor, List[int]]
class IBasicMetric(ABC):
"""
This is a base interface for the ob... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/interfaces/retrieval.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:49.606996 | from abc import abstractmethod
from typing import Any
class IRetrievalPostprocessor:
"""
This is a base interface for the classes which somehow postprocess retrieval results.
"""
@abstractmethod
def process(self, *args, **kwargs) -> Any: # type: ignore
raise NotImplementedError()
__al... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/interfaces/datasets.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:49.654334 | from abc import ABC, abstractmethod
from typing import Any, Dict, Optional, Union
import numpy as np
from torch import LongTensor
from torch.utils.data import Dataset
from oml.const import INPUT_TENSORS_KEY_1, INPUT_TENSORS_KEY_2, LABELS_KEY, TColor
class IIndexedDataset(Dataset, ABC):
index_key: str
def _... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/interfaces/samplers.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:49.762957 | from abc import ABC, abstractmethod
from typing import Iterator, List
class IBatchSampler(ABC):
"""
We introduce our interface instead of using the default BatchSampler from Torch,
because the last one is just a wrapper for the sequential sampler, which is not
convenient for our purposes.
"""
... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/inference/abstract.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:50.112845 | from pathlib import Path
from typing import Any, Callable, Dict, List, Tuple
import torch
from torch import FloatTensor, Tensor, nn
from torch.utils.data import DataLoader
from tqdm.auto import tqdm
from oml.datasets import PairDataset
from oml.ddp.patching import patch_dataloader_to_ddp
from oml.ddp.utils import get... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/interfaces/models.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:50.138604 | from abc import ABC
from typing import Any, Dict
from torch import Tensor, nn
class IExtractor(nn.Module, ABC):
"""
Models have to inherit this interface to be comparable with the rest of the library.
"""
pretrained_models: Dict[str, Any] = {}
def extract(self, x: Tensor) -> Tensor:
ret... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/lightning/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:50.166511 | try:
import pytorch_lightning
except ImportError as e:
raise ImportError(
f"{e}\n OML doesn't have lightning as a requirement." f"Run <pip install open-metric-learning[pipelines]>"
)
from oml.lightning.callbacks.metric import MetricValCallback
from oml.lightning.modules.extractor import ExtractorMo... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/lightning/callbacks/metric.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:50.184298 | import warnings
from math import ceil
from typing import Any, Optional
import matplotlib.pyplot as plt
import pytorch_lightning as pl
from pytorch_lightning import Callback
from pytorch_lightning.utilities.types import STEP_OUTPUT
from torch.utils.data import DataLoader
from oml.const import INDEX_KEY, LOG_IMAGE_FOLD... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/lightning/modules/ddp.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:50.225792 | from typing import Dict, Optional, Sequence, Union
import pytorch_lightning as pl
from torch.utils.data import DataLoader
from oml.ddp.patching import patch_dataloader_to_ddp
TValDataloaders = Union[DataLoader, Sequence[DataLoader]]
TTrainDataloaders = Union[TValDataloaders, Dict[str, DataLoader]]
class ModuleDDP(... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/lightning/modules/extractor.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:50.246221 | from typing import Any, Dict, Optional, Union
import pytorch_lightning as pl
import torch
from pytorch_lightning.utilities.types import EVAL_DATALOADERS, TRAIN_DATALOADERS
from torch import nn
from torch.optim.lr_scheduler import ReduceLROnPlateau, _LRScheduler
from oml.const import EMBEDDINGS_KEY, INPUT_TENSORS_KEY,... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/lightning/modules/pairwise_postprocessing.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:50.390105 | from typing import Any, Dict, Optional, Union
import pytorch_lightning as pl
from pytorch_lightning.utilities.types import EVAL_DATALOADERS, TRAIN_DATALOADERS
from torch import Tensor, nn
from torch.optim import Optimizer
from torch.optim.lr_scheduler import ReduceLROnPlateau, _LRScheduler
from oml.const import EMBED... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/lightning/pipelines/logging.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:50.781657 | import warnings
from argparse import Namespace
from pathlib import Path
from typing import Any, Dict, List, Mapping, Optional, Union
import matplotlib.pyplot as plt
import numpy as np
from lightning_fabric.utilities.logger import _flatten_dict
from lightning_fabric.utilities.rank_zero import rank_zero_only
from pytorc... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/losses/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:50.989517 | from oml.losses.arcface import ArcFaceLoss, ArcFaceLossWithMLP
from oml.losses.surrogate_precision import SurrogatePrecision
from oml.losses.triplet import TripletLoss, TripletLossPlain, TripletLossWithMiner
|
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/lightning/pipelines/parser.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:51.005934 | from pathlib import Path
from typing import Any, Dict, Optional
import torch
from pytorch_lightning.callbacks import ModelCheckpoint
from pytorch_lightning.strategies import DDPStrategy
from oml.const import CATEGORIES_COLUMN, TCfg
from oml.interfaces.datasets import ILabeledDataset
from oml.interfaces.loggers import... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/lightning/pipelines/train_postprocessor.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:51.007615 | import hashlib
from pathlib import Path
from pprint import pprint
from typing import Any, Dict, Tuple
import pytorch_lightning as pl
import torch
from omegaconf import DictConfig
from torch import device as tdevice
from torch.utils.data import DataLoader
from oml.const import EMBEDDINGS_KEY, TCfg
from oml.datasets.ba... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/lightning/pipelines/train.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:51.008140 | from pathlib import Path
from pprint import pprint
from typing import Tuple
import pytorch_lightning as pl
from torch.utils.data import DataLoader
from oml.const import TCfg
from oml.datasets.images import get_retrieval_images_datasets
from oml.interfaces.datasets import ILabeledDataset, IQueryGalleryLabeledDataset
f... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/lightning/pipelines/predict.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:51.013749 | import itertools
import json
from pathlib import Path
from pprint import pprint
import pytorch_lightning as pl
from torch.utils.data import DataLoader
from oml.const import IMAGE_EXTENSIONS, TCfg
from oml.datasets.images import ImageBaseDataset
from oml.ddp.utils import get_world_size_safe, is_main_process, sync_dict... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/losses/arcface.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:51.014231 | from typing import Any, Dict, List, Optional
import numpy as np
import torch
from torch import nn
from torch.nn import functional as F
from torchvision.ops import MLP
from oml.functional.label_smoothing import label_smoothing
class ArcFaceLoss(nn.Module):
"""
ArcFace loss from `paper <https://arxiv.org/abs/... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/lightning/pipelines/validate.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:51.060302 | from pathlib import Path
from pprint import pprint
from typing import Any, Dict, Tuple
import pytorch_lightning as pl
from torch.utils.data import DataLoader
from oml.const import TCfg
from oml.datasets.images import get_retrieval_images_datasets
from oml.lightning.callbacks.metric import MetricValCallback
from oml.l... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/losses/surrogate_precision.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:51.086024 | import torch
from torch import Tensor
from oml.functional.losses import surrogate_precision
from oml.utils.misc_torch import pairwise_dist
class SurrogatePrecision(torch.nn.Module):
"""
This loss is a differentiable approximation of Precision@k metric.
The loss is described in the following paper under ... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/losses/triplet.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:51.468330 | from typing import Any, Dict, List, Optional, Tuple, Union
import torch
from torch import Tensor
from torch.nn import Module
from oml.functional.losses import get_reduced
from oml.interfaces.criterions import ITripletLossWithMiner
from oml.interfaces.miners import ITripletsMiner, labels2list
from oml.miners.cross_bat... |
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/metrics/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:51.641957 | from oml.functional.metrics import calc_topological_metrics
from oml.metrics.embeddings import (
EmbeddingMetrics,
calc_fnmr_at_fmr_rr,
calc_retrieval_metrics_rr,
)
|
OML-Team/open-metric-learning | https://github.com/OML-Team/open-metric-learning | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | oml/metrics/accumulation.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:52.108096 | from typing import Any, Dict, List, Optional, Tuple, Union
import numpy as np
import torch
from torch import Tensor
from oml.ddp.utils import get_world_size_safe, sync_dicts_ddp
from oml.utils.misc_torch import unique_by_ids
TStorage = Dict[str, Union[Tensor, np.ndarray, List[Any]]]
class Accumulator:
def __in... |
RiotGames/leaguedirector | https://github.com/RiotGames/leaguedirector | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | leaguedirector/sequencer.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:54.336833 | import copy
import threading
import webbrowser
import statistics
from operator import attrgetter, methodcaller
from PySide6.QtGui import *
from PySide6.QtCore import *
from PySide6.QtWidgets import *
from leaguedirector.widgets import *
PRECISION = 10000.0
SNAPPING = 4
OVERLAP = 4
ADJACENT = 0.05
class SequenceKeyfr... |
RiotGames/leaguedirector | https://github.com/RiotGames/leaguedirector | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | leaguedirector/api.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:54.341413 | import os
import time
import json
import copy
import logging
import functools
from leaguedirector.widgets import userpath
from PySide6.QtCore import *
from PySide6.QtNetwork import *
class Resource(QObject):
"""
Base class for a remote api resources.
"""
updated = Signal()
host = 'https... |
RiotGames/leaguedirector | https://github.com/RiotGames/leaguedirector | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | leaguedirector/app.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:54.353878 | import os
import sys
import json
import functools
import logging
import logging.handlers
import leaguedirector
from PySide6.QtGui import *
from PySide6.QtCore import *
from PySide6.QtWidgets import *
from PySide6.QtNetwork import *
from leaguedirector.widgets import *
from leaguedirector.sequencer import *
from leagued... |
RiotGames/leaguedirector | https://github.com/RiotGames/leaguedirector | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | leaguedirector/widgets.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:54.360794 | import os
from PySide6.QtGui import *
from PySide6.QtCore import *
from PySide6.QtWidgets import *
def schedule(interval, callback):
timer = QTimer()
timer.timeout.connect(callback)
timer.start(interval)
return timer
def respath(*args):
directory = os.path.abspath(os.path.join(os.curdir, 'resour... |
RiotGames/leaguedirector | https://github.com/RiotGames/leaguedirector | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | leaguedirector/bindings.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:54.371742 | import threading
import functools
import platform
from ctypes import *
from PySide6.QtGui import *
from PySide6.QtCore import *
from PySide6.QtWidgets import *
class KeyboardHook(QThread):
"""
This class is responsible for creating a global keyboard hook and
forwarding key events to QT when the game proce... |
RiotGames/leaguedirector | https://github.com/RiotGames/leaguedirector | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | leaguedirector/enable.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:54.372370 | import os
import psutil
import platform
import logging
import subprocess
from PySide6.QtCore import *
def findWindowsInstalled(paths):
"""
Find games install in the windows registry.
"""
settings = QSettings('HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall', QSettings.NativeF... |
RiotGames/leaguedirector | https://github.com/RiotGames/leaguedirector | null | null | null | null | 990 | null | null | apache-2.0 | null | null | null | null | null | null | null | leaguedirector/settings.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:54.404771 | import os
import json
from leaguedirector.widgets import userpath
class Settings(object):
def __init__(self):
self.data = {}
self.path = userpath('config.json')
self.loadFile()
def value(self, key, default=None):
return self.data.get(key, default)
def setValue(self, key, ... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | scripts/rsl_rl/play.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:56.533850 | # Copyright (c) 2022-2025, The Isaac Lab Project Developers.
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
"""Script to play a checkpoint if an RL agent from RSL-RL."""
"""Launch Isaac Sim Simulator first."""
import argparse
from importlib.metadata import version
from isaaclab.app import AppLaunc... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/unitree_rl_lab/setup.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:56.600049 | """Installation script for the 'unitree_rl_lab' python package."""
import os
import toml
from setuptools import setup
# Obtain the extension data from the extension.toml file
EXTENSION_PATH = os.path.dirname(os.path.realpath(__file__))
# Read the extension.toml file
EXTENSION_TOML_DATA = toml.load(os.path.join(EXTEN... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | scripts/mimic/csv_to_npz.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:56.603291 | """This script replay a motion from a csv file and output it to a npz file
.. code-block:: bash
# Usage
python csv_to_npz.py -f path_to_input.csv --input_fps 60
"""
"""Launch Isaac Sim Simulator first."""
import argparse
import numpy as np
from isaaclab.app import AppLauncher
# add argparse arguments
pars... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | scripts/mimic/replay_npz.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:56.612067 | """This script demonstrates how to use the interactive scene interface to setup a scene with multiple prims.
.. code-block:: bash
# Usage
python replay_npz.py -f path_to_motion.npz
"""
"""Launch Isaac Sim Simulator first."""
import argparse
import numpy as np
import torch
from isaaclab.app import AppLaunch... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | scripts/rsl_rl/train.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:56.613443 | # Copyright (c) 2022-2025, The Isaac Lab Project Developers.
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
"""Script to train RL agent with RSL-RL."""
"""Launch Isaac Sim Simulator first."""
import gymnasium as gym
import pathlib
import sys
sys.path.insert(0, f"{pathlib.Path(__file__).parent.par... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/unitree_rl_lab/unitree_rl_lab/assets/robots/unitree.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:56.621638 | # Copyright (c) 2022-2025, The Isaac Lab Project Developers.
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
"""Configuration for Unitree robots.
Reference: https://github.com/unitreerobotics/unitree_ros
"""
import os
import isaaclab.sim as sim_utils
from isaaclab.actuators import IdealPDActuatorCf... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | scripts/rsl_rl/cli_args.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:56.628234 | # Copyright (c) 2022-2025, The Isaac Lab Project Developers.
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
from __future__ import annotations
import argparse
import random
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from isaaclab_rl.rsl_rl import RslRlOnPolicyRunnerCfg
def add_rsl_rl_... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | .vscode/tools/setup_vscode.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:56.631070 | # Copyright (c) 2024-2025, The Isaac Lab Project Developers.
# All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
"""This script sets up the vs-code settings for the Isaac Lab project.
This script merges the python.analysis.extraPaths from the "{ISAACSIM_DIR}/.vscode/settings.json" file into
the ".vscode/se... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | scripts/list_envs.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:56.664017 | """
Script to print all the available environments in Isaac Lab.
The script iterates over all registered environments and stores the details in a table.
It prints the name of the environment, the entry point and the config file.
All the environments are registered in the `unitree_rl_lab` extension. They start
with `U... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/unitree_rl_lab/unitree_rl_lab/assets/robots/unitree_actuators.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:57.353440 | from __future__ import annotations
import torch
from dataclasses import MISSING
from isaaclab.actuators import DelayedPDActuator, DelayedPDActuatorCfg
from isaaclab.utils import configclass
from isaaclab.utils.types import ArticulationActions
class UnitreeActuator(DelayedPDActuator):
"""Unitree actuator class t... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/unitree_rl_lab/unitree_rl_lab/tasks/locomotion/mdp/curriculums.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:57.566490 | from __future__ import annotations
import torch
from collections.abc import Sequence
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from isaaclab.envs import ManagerBasedRLEnv
def lin_vel_cmd_levels(
env: ManagerBasedRLEnv,
env_ids: Sequence[int],
reward_term_name: str = "track_lin_vel_xy",
) ->... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/unitree_rl_lab/unitree_rl_lab/tasks/locomotion/mdp/observations.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:57.567042 | from __future__ import annotations
import torch
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from isaaclab.envs import ManagerBasedRLEnv
def gait_phase(env: ManagerBasedRLEnv, period: float) -> torch.Tensor:
if not hasattr(env, "episode_length_buf"):
env.episode_length_buf = torch.zeros(env.nu... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/unitree_rl_lab/unitree_rl_lab/tasks/locomotion/mdp/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:57.771732 | from isaaclab.envs.mdp import * # noqa: F401, F403
from isaaclab_tasks.manager_based.locomotion.velocity.mdp import * # noqa: F401, F403
from .commands import * # noqa: F401, F403
from .curriculums import * # noqa: F401, F403
from .observations import * # noqa: F401, F403
from .rewards import * # noqa: F401, F40... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/unitree_rl_lab/unitree_rl_lab/tasks/locomotion/mdp/commands/velocity_command.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:57.772952 | from __future__ import annotations
from dataclasses import MISSING
from isaaclab.envs.mdp import UniformVelocityCommandCfg
from isaaclab.utils import configclass
@configclass
class UniformLevelVelocityCommandCfg(UniformVelocityCommandCfg):
limit_ranges: UniformVelocityCommandCfg.Ranges = MISSING
|
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/unitree_rl_lab/unitree_rl_lab/tasks/locomotion/mdp/rewards.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:57.990995 | from __future__ import annotations
import torch
from typing import TYPE_CHECKING
try:
from isaaclab.utils.math import quat_apply_inverse
except ImportError:
from isaaclab.utils.math import quat_rotate_inverse as quat_apply_inverse
from isaaclab.assets import Articulation, RigidObject
from isaaclab.managers im... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/unitree_rl_lab/unitree_rl_lab/tasks/locomotion/robots/g1/29dof/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:58.184582 | import gymnasium as gym
gym.register(
id="Unitree-G1-29dof-Velocity",
entry_point="isaaclab.envs:ManagerBasedRLEnv",
disable_env_checker=True,
kwargs={
"env_cfg_entry_point": f"{__name__}.velocity_env_cfg:RobotEnvCfg",
"play_env_cfg_entry_point": f"{__name__}.velocity_env_cfg:RobotPlayE... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/unitree_rl_lab/unitree_rl_lab/tasks/locomotion/robots/g1/29dof/velocity_env_cfg.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:58.341716 | import math
import isaaclab.sim as sim_utils
import isaaclab.terrains as terrain_gen
from isaaclab.assets import ArticulationCfg, AssetBaseCfg
from isaaclab.envs import ManagerBasedRLEnvCfg
from isaaclab.managers import CurriculumTermCfg as CurrTerm
from isaaclab.managers import EventTermCfg as EventTerm
from isaaclab... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/unitree_rl_lab/unitree_rl_lab/tasks/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:58.380184 | ##
# Register Gym environments.
##
from isaaclab_tasks.utils import import_packages
# The blacklist is used to prevent importing configs from sub-packages
_BLACKLIST_PKGS = []
# Import all configs in this package
import_packages(__name__, _BLACKLIST_PKGS)
|
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/unitree_rl_lab/unitree_rl_lab/tasks/locomotion/robots/go2/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:58.403783 | import gymnasium as gym
gym.register(
id="Unitree-Go2-Velocity",
entry_point="isaaclab.envs:ManagerBasedRLEnv",
disable_env_checker=True,
kwargs={
"env_cfg_entry_point": f"{__name__}.velocity_env_cfg:RobotEnvCfg",
"play_env_cfg_entry_point": f"{__name__}.velocity_env_cfg:RobotPlayEnvCfg... |
unitreerobotics/unitree_rl_lab | https://github.com/unitreerobotics/unitree_rl_lab | null | null | null | null | 988 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/unitree_rl_lab/unitree_rl_lab/tasks/locomotion/agents/rsl_rl_ppo_cfg.py | null | null | null | null | null | null | Python | 2026-05-04T02:31:58.435215 | # Copyright (c) 2022-2025, The Isaac Lab Project Developers.
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
from isaaclab.utils import configclass
from isaaclab_rl.rsl_rl import RslRlOnPolicyRunnerCfg, RslRlPpoActorCriticCfg, RslRlPpoAlgorithmCfg
@configclass
class BasePPORunnerCfg(RslRlOnPolicyRun... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.