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,283,900 | __init__.py | drzeeshanahmed_IntelliGenes/intelligenes/__init__.py | from . import intelligenes
from . import selection
from . import classification
| 83 | Python | .py | 3 | 25.666667 | 29 | 0.8125 | drzeeshanahmed/IntelliGenes | 8 | 7 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,283,901 | selection.py | drzeeshanahmed_IntelliGenes/intelligenes/selection.py | # (Packages/Libraries) Matrix Manipulation
import pandas as pd
# (Packages/Libraries) Statistical Analysis & Machine Learning
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import MinMaxScaler
from sklearn.feature_selection import SelectKBest, chi2, f_classif, RFE
from sklearn.... | 7,027 | Python | .py | 127 | 43.370079 | 210 | 0.618293 | drzeeshanahmed/IntelliGenes | 8 | 7 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,283,902 | test.py | Hiram1026_misaligned_RGB-IR_detection/test.py | import argparse
import json
import os
from pathlib import Path
from threading import Thread
import numpy as np
import torch
import yaml
from tqdm import tqdm
from models.experimental import attempt_load
from utils.datasets import create_dataloader, create_dataloader_rgb_ir
from utils.general import coco8... | 18,750 | Python | .py | 328 | 44.862805 | 127 | 0.551632 | Hiram1026/misaligned_RGB-IR_detection | 8 | 2 | 4 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,283,903 | global_var.py | Hiram1026_misaligned_RGB-IR_detection/global_var.py | # @Time : 2021/6/22 下午4:46
# @Author : Richard FANG
# @File : global_var.py.py
# @Software: PyCharm
def _init(): # 初始化
global _global_dict
_global_dict = {}
def set_value(key, value):
# 定义一个全局变量
_global_dict[key] = value
def get_value(key):
# 获得一个全局变量,不存在则提示读取对应变量失败
try:
return ... | 462 | Python | .py | 16 | 19.6875 | 32 | 0.620499 | Hiram1026/misaligned_RGB-IR_detection | 8 | 2 | 4 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,283,904 | train.py | Hiram1026_misaligned_RGB-IR_detection/train.py | import argparse
import logging
import math
import os
import random
import time
import torch
from copy import deepcopy
from pathlib import Path
from threading import Thread
import numpy as np
import torch.distributed as dist
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as opti... | 58,313 | Python | .py | 963 | 46.136033 | 136 | 0.542352 | Hiram1026/misaligned_RGB-IR_detection | 8 | 2 | 4 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,283,905 | hubconf.py | Hiram1026_misaligned_RGB-IR_detection/hubconf.py | """YOLOv5 PyTorch Hub models https://pytorch.org/hub/ultralytics_yolov5/
Usage:
import torch
model = torch.hub.load('ultralytics/yolov5', 'yolov5s')
"""
from pathlib import Path
import torch
from models.yolo import Model
from utils.general import check_requirements, set_logging
from utils.google_utils impor... | 5,863 | Python | .py | 104 | 49.855769 | 119 | 0.690264 | Hiram1026/misaligned_RGB-IR_detection | 8 | 2 | 4 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,283,906 | detect_twostream.py | Hiram1026_misaligned_RGB-IR_detection/detect_twostream.py | import argparse
import time
from pathlib import Path
import cv2
import torch
import torch.backends.cudnn as cudnn
import numpy as np
from numpy import random
from models.experimental import attempt_load
from utils.datasets import LoadStreams, LoadImages
from utils.general import check_img_size, check_requ... | 11,813 | Python | .py | 199 | 46.839196 | 152 | 0.557712 | Hiram1026/misaligned_RGB-IR_detection | 8 | 2 | 4 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,283,907 | export.py | Hiram1026_misaligned_RGB-IR_detection/models/export.py | """Exports a YOLOv5 *.pt model to ONNX and TorchScript formats
Usage:
$ export PYTHONPATH="$PWD" && python models/export.py --weights yolov5s.pt --img 640 --batch 1
"""
import argparse
import sys
import time
from pathlib import Path
sys.path.append(Path(__file__).parent.parent.absolute().__str__()) # to run '$ ... | 5,964 | Python | .py | 108 | 46.75 | 120 | 0.590714 | Hiram1026/misaligned_RGB-IR_detection | 8 | 2 | 4 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,283,908 | yolo.py | Hiram1026_misaligned_RGB-IR_detection/models/yolo.py | # YOLOv5 YOLO-specific modules
import argparse
import logging
import sys
from copy import deepcopy
from pathlib import Path
sys.path.append(Path(__file__).parent.parent.absolute().__str__()) # to run '$ python *.py' files in subdirectories
logger = logging.getLogger(__name__)
from models.common import *
from models... | 13,171 | Python | .py | 266 | 39.466165 | 119 | 0.538444 | Hiram1026/misaligned_RGB-IR_detection | 8 | 2 | 4 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,283,909 | experimental.py | Hiram1026_misaligned_RGB-IR_detection/models/experimental.py | # YOLOv5 experimental modules
import numpy as np
import torch
import torch.nn as nn
from models.common import Conv, DWConv
from utils.google_utils import attempt_download
class CrossConv(nn.Module):
# Cross Convolution Downsample
def __init__(self, c1, c2, k=3, s=1, g=1, e=1.0, shortcut=False):
# ch... | 5,134 | Python | .py | 109 | 38.256881 | 114 | 0.5668 | Hiram1026/misaligned_RGB-IR_detection | 8 | 2 | 4 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,283,910 | yolo_test.py | Hiram1026_misaligned_RGB-IR_detection/models/yolo_test.py | # YOLOv5 YOLO-specific modules
import argparse
import logging
import sys
from copy import deepcopy
from pathlib import Path
sys.path.append(Path(__file__).parent.parent.absolute().__str__()) # to run '$ python *.py' files in subdirectories
logger = logging.getLogger(__name__)
from models.common import *
from models... | 29,124 | Python | .py | 641 | 39.683307 | 165 | 0.504648 | Hiram1026/misaligned_RGB-IR_detection | 8 | 2 | 4 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,283,911 | common.py | Hiram1026_misaligned_RGB-IR_detection/models/common.py | # YOLOv5 common modules
import math
from copy import copy
from pathlib import Path
from matplotlib import style
import numpy as np
import pandas as pd
import requests
import torch
import torch.nn as nn
from PIL import Image
from torch.cuda import amp
import torch.nn.functional as F
from utils.dataset... | 35,588 | Python | .py | 720 | 38.854167 | 170 | 0.546018 | Hiram1026/misaligned_RGB-IR_detection | 8 | 2 | 4 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,283,912 | yolo.cpython-37.pyc | Hiram1026_misaligned_RGB-IR_detection/models/__pycache__/yolo.cpython-37.pyc | B
Pe4b&3 ã @ s† d dl Z d dlZd dlZd dlmZ d dlmZ ej ee ƒj
j
¡ ¡ ¡ e
e¡Zd dlT d dlT d dlmZ d dlmZmZmZ d dlmZmZmZmZmZmZmZ yd dl Z W n e!k
rÎ dZ Y nX G dd „ d e"j#ƒZ$G d
d„ de"j#ƒZ%dd
„ Z&edk�r‚e '¡ Z(e(j)de*... | 10,457 | Python | .py | 109 | 94.798165 | 869 | 0.390451 | Hiram1026/misaligned_RGB-IR_detection | 8 | 2 | 4 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,283,913 | yolo_test.cpython-37.pyc | Hiram1026_misaligned_RGB-IR_detection/models/__pycache__/yolo_test.cpython-37.pyc | B
€ø_b{o ã @ sà d dl Z d dlZd dlZd dlmZ d dlmZ ej ee ƒj
j
¡ ¡ ¡ e
e¡Zd dlT d dlT d dlmZ d dlmZmZmZ d dlmZmZmZmZmZmZmZ yd dl Z W n e!k
rÎ dZ Y nX G dd „ d e"j#ƒZ$G d
d„ de"j#ƒZ%dd
„ Z&dd„ Z'edk�rÜe (¡ Z)... | 13,223 | Python | .py | 153 | 85.058824 | 1,136 | 0.380624 | Hiram1026/misaligned_RGB-IR_detection | 8 | 2 | 4 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,283,914 | yolo_test.cpython-38.pyc | Hiram1026_misaligned_RGB-IR_detection/models/__pycache__/yolo_test.cpython-38.pyc | U
2{¡cÄq ã @ sØ d dl Z d dlZd dlZd dlmZ d dlmZ ej ee ƒj
j
¡ ¡ ¡ e
e¡Zd dlT d dlT d dlmZ d dlmZmZmZ d dlmZmZmZmZmZmZmZ zd dl Z W n e!k
rÎ dZ Y nX G dd „ d e"j#ƒZ$G d
d„ de"j#ƒZ%dd
„ Z&edk�rÔe '¡ Z(e(j)... | 11,097 | Python | .py | 144 | 75.673611 | 884 | 0.391836 | Hiram1026/misaligned_RGB-IR_detection | 8 | 2 | 4 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,283,915 | experimental.cpython-38.pyc | Hiram1026_misaligned_RGB-IR_detection/models/__pycache__/experimental.cpython-38.pyc | U
Pe4b ã @ s² d dl Zd dlZd dlmZ d dlmZmZ d dlm Z G dd„ dej
ƒZG dd„ dej
ƒZG dd „ d ej
ƒZ
G d
d„ dej
ƒZG dd
„ d
ej
ƒZG dd„ dejƒZddd„ZdS )é N)ÚConvÚDWConv)Úattempt_downloadc s& |