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
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/fix_location.py
null
null
null
null
null
null
Python
2026-05-04T02:00:43.998929
#!/usr/bin/env python3 """ Fix location problems in the activities database. This script fixes common location-related issues: 1. Activities with "China" as location that should have more specific location data 2. Activities with missing location_country that have valid coordinates 3. Activities with incorrect locatio...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/garmin_device_adaptor.py
null
null
null
null
null
null
Python
2026-05-04T02:00:44.001918
import traceback from io import BytesIO try: from fit_tool.fit_file import FitFile from fit_tool.fit_file_builder import FitFileBuilder from fit_tool.profile.messages.device_info_message import DeviceInfoMessage from fit_tool.profile.messages.record_message import RecordMessage FIT_TOOL_AVAILABLE ...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/auto_share_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:44.004013
import argparse from openai import OpenAI from config import SQL_FILE, PNG_FOLDER from generator import Generator import polyline import base64 import os import cairosvg # 替换 svglib.svglib 和 reportlab.graphics SVG_WIDTH = 800 SVG_HEIGHT = 600 SVG_MARGIN = 30 BACKGROUND_COLOR = "#f8f9fa" POLYLINE_COLOR = "rgb(224,237,...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/data_to_csv.py
null
null
null
null
null
null
Python
2026-05-04T02:00:44.007633
import sqlite3 try: import pandas as pd except Exception: raise Exception("please install pandas run: pip3 install pandas") from math import floor data = sqlite3.connect("run_page/data.db") df = pd.read_sql_query("SELECT * FROM activities", data) def apply_duration_time(d): try: return d.split()...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/coros_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:44.010219
import argparse import asyncio import hashlib import os import time import aiofiles import httpx from config import JSON_FILE, SQL_FILE, FOLDER_DICT from utils import make_activities_file COROS_URL_DICT = { "LOGIN_URL": "https://teamcnapi.coros.com/account/login", "DOWNLOAD_URL": "https://teamcnapi.coros.com...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/config.py
null
null
null
null
null
null
Python
2026-05-04T02:00:44.011294
import os from collections import namedtuple # getting content root directory current = os.path.dirname(os.path.realpath(__file__)) parent = os.path.dirname(current) OUTPUT_DIR = os.path.join(parent, "activities") GPX_FOLDER = os.path.join(parent, "GPX_OUT") TCX_FOLDER = os.path.join(parent, "TCX_OUT") FIT_FOLDER = o...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/endomondo_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:44.012610
""" need to download the files from endomondo and store it in Workouts dir in running_page """ import json import os from collections import namedtuple from datetime import datetime, timedelta import polyline from config import BASE_TIMEZONE, ENDOMONDO_FILE_DIR, JSON_FILE, SQL_FILE from generator import Generator fr...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/codoon_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:44.016890
import argparse import base64 import hashlib import hmac import json import os import time import urllib.parse import xml.etree.ElementTree as ET from collections import namedtuple from datetime import datetime, timedelta, timezone from xml.dom import minidom import eviltransform import gpxpy import numpy as np import ...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/db_updater.py
null
null
null
null
null
null
Python
2026-05-04T02:00:44.034822
from generator.db import init_db, Activity from config import SQL_FILE import sqlalchemy from sqlalchemy import text from config import GPX_FOLDER, JSON_FILE from utils import make_activities_file def add_column_elevation_gain(session): # check if column elevation_gain is already added # if not add it to the ...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/generator/db.py
null
null
null
null
null
null
Python
2026-05-04T02:00:44.790240
import datetime import random import string from geopy.geocoders import options, Nominatim from sqlalchemy import ( Column, Float, Integer, Interval, String, create_engine, inspect, text, ) from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker ...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/garmin_to_strava_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:44.790755
""" new garmin ids to strava; not the same logic as nike_to_strava_sync """ import argparse import asyncio import os import sys import time from config import FOLDER_DICT from garmin_sync import download_new_activities, get_downloaded_ids from strava_sync import run_strava_sync from utils import make_strava_client, u...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/gen_svg.py
null
null
null
null
null
null
Python
2026-05-04T02:00:44.792939
import argparse import logging import os import sys from config import SQL_FILE from gpxtrackposter import ( circular_drawer, github_drawer, grid_drawer, poster, track_loader, month_of_life_drawer, year_summary_drawer, ) from gpxtrackposter.exceptions import ParameterError, PosterError # f...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/gpx_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:44.794076
""" If you do not want bind any account Only the gpx files in GPX_OUT sync """ from config import GPX_FOLDER, JSON_FILE, SQL_FILE from utils import make_activities_file if __name__ == "__main__": print("only sync gpx files in GPX_OUT") make_activities_file(SQL_FILE, GPX_FOLDER, JSON_FILE)
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/garmin_sync_cn_global.py
null
null
null
null
null
null
Python
2026-05-04T02:00:44.795722
""" Python 3 API wrapper for Garmin Connect to get your statistics. Copy most code from https://github.com/cyberjunky/python-garminconnect """ import argparse import asyncio import os import sys from config import FIT_FOLDER, GPX_FOLDER, JSON_FILE, SQL_FILE from garmin_sync import Garmin, get_downloaded_ids from gar...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/generator/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:00:44.797179
import datetime import math import os import sys import arrow import polyline as polyline_codec import stravalib from gpxtrackposter import track_loader from sqlalchemy import func from polyline_processor import filter_out from synced_data_file_logger import save_synced_data_file_list from .db import Activity, init_...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/garmin_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:44.799930
""" Python 3 API wrapper for Garmin Connect to get your statistics. Copy most code from https://github.com/cyberjunky/python-garminconnect """ import argparse import asyncio import datetime as dt import logging import os os.environ["GARTH_TELEMETRY_ENABLED"] = "false" import sys import time import traceback import zi...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/gpx_to_strava_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:44.860363
import argparse import os import time import gpxpy as mod_gpxpy from config import GPX_FOLDER from strava_sync import run_strava_sync from stravalib.exc import ActivityUploadFailed, RateLimitTimeout from utils import get_strava_last_time, make_strava_client, upload_file_to_strava def get_to_generate_files(last_time)...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/get_garmin_secret.py
null
null
null
null
null
null
Python
2026-05-04T02:00:44.952328
import argparse import garth if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("email", nargs="?", help="email of garmin") parser.add_argument("password", nargs="?", help="password of garmin") parser.add_argument( "--is-cn", dest="is_cn", action=...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/gpxtrackposter/grid_drawer.py
null
null
null
null
null
null
Python
2026-05-04T02:00:46.380388
"""Draw a grid poster.""" # Copyright 2016-2019 Florian Pigorsch & Contributors. All rights reserved. # # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. import svgwrite from .exceptions import PosterError from .poster import Poster from .track import Track from .t...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/gpxtrackposter/exceptions.py
null
null
null
null
null
null
Python
2026-05-04T02:00:46.381993
# Copyright 2016-2019 Florian Pigorsch & Contributors. All rights reserved. # # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. class PosterError(Exception): "Base class for all errors" pass class TrackLoadError(PosterError): "Something went wrong whe...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/gpxtrackposter/github_drawer.py
null
null
null
null
null
null
Python
2026-05-04T02:00:46.384661
import calendar import datetime import locale import argparse import svgwrite from .exceptions import PosterError from .poster import Poster from .tracks_drawer import TracksDrawer from .utils import format_float from .xy import XY class GithubDrawer(TracksDrawer): """Draw a github profile-like poster""" d...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/gpxtrackposter/month_of_life_drawer.py
null
null
null
null
null
null
Python
2026-05-04T02:00:46.386181
import math import datetime import svgwrite from .exceptions import PosterError from .tracks_drawer import TracksDrawer from .utils import format_float from .xy import XY class MonthOfLifeDrawer(TracksDrawer): """Draw a Month of Life poster with 1000 months as circles""" def __init__(self, the_poster): ...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/gpxtrackposter/poster.py
null
null
null
null
null
null
Python
2026-05-04T02:00:46.387238
"""Create a poster from track data.""" import gettext import locale from collections import defaultdict from datetime import datetime import pytz import svgwrite from .utils import format_float from .value_range import ValueRange from .xy import XY from .year_range import YearRange class Poster: """Create a po...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/gpxtrackposter/track.py
null
null
null
null
null
null
Python
2026-05-04T02:00:46.388310
"""Create and maintain info about a given activity track (corresponding to one GPX file).""" # Copyright 2016-2019 Florian Pigorsch & Contributors. All rights reserved. # 2019-now yihong0618 Florian Pigorsch & Contributors. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/gpxtrackposter/circular_drawer.py
null
null
null
null
null
null
Python
2026-05-04T02:00:46.389475
"""Draw a circular Poster.""" # Copyright 2016-2019 Florian Pigorsch & Contributors. All rights reserved. # # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. import argparse import calendar import datetime import math from typing import List, Optional import svgwri...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/gpxtrackposter/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:00:48.687973
"""Assorted utility methods for use in creating posters.""" # Copyright 2016-2019 Florian Pigorsch & Contributors. All rights reserved. # # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. import locale import math from datetime import datetime from typing import Lis...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/gpxtrackposter/tracks_drawer.py
null
null
null
null
null
null
Python
2026-05-04T02:00:48.689441
"""Contains the base class TracksDrawer, which other Drawers inherit from.""" # Copyright 2016-2019 Florian Pigorsch & Contributors. All rights reserved. # # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. import argparse import svgwrite from .poster import Poster...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/gpxtrackposter/xy.py
null
null
null
null
null
null
Python
2026-05-04T02:00:48.865150
"""Represent x,y coords with properly overloaded operations.""" # Copyright 2016-2019 Florian Pigorsch & Contributors. All rights reserved. # # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. from typing import Tuple, Union class XY: """Represent x,y coords wi...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/gpxtrackposter/year_summary_drawer.py
null
null
null
null
null
null
Python
2026-05-04T02:00:48.866350
"""Draw a Year Summary poster similar to Cursor stats style.""" import datetime from collections import defaultdict import svgwrite from .tracks_drawer import TracksDrawer from .xy import XY class YearSummaryDrawer(TracksDrawer): """Draw a Year Summary poster with monthly activity dots and statistics""" d...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/gpxtrackposter/value_range.py
null
null
null
null
null
null
Python
2026-05-04T02:00:48.868944
"""Represent a range of numerical values""" # Copyright 2016-2019 Florian Pigorsch & Contributors. All rights reserved. # # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. class ValueRange: """Represent a range of numerical values. Attributes: _low...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/intervals_icu_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:48.887997
import argparse import gzip import os import time import xml.etree.ElementTree as ET from datetime import datetime import eviltransform import gpxpy import requests from requests.auth import HTTPBasicAuth from config import JSON_FILE, SQL_FILE, FOLDER_DICT from utils import make_activities_file BASE_URL = "https://i...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/gpxtrackposter/year_range.py
null
null
null
null
null
null
Python
2026-05-04T02:00:48.889619
"""Represent a range of years, with ability to update based on a track""" # Copyright 2016-2019 Florian Pigorsch & Contributors. All rights reserved. # # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. import datetime import re from typing import Optional class Ye...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/joyrun_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:48.891020
# some code from https://github.com/fieryd/PKURunningHelper great thanks import argparse import ast import json import os import subprocess import sys import time import warnings from collections import namedtuple from datetime import datetime, timedelta, timezone from xml.dom import minidom from hashlib import md5 fro...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/keep_to_strava_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:49.274666
import argparse import json import os import time from collections import namedtuple from config import GPX_FOLDER, OUTPUT_DIR from keep_sync import KEEP_SPORT_TYPES, get_all_keep_tracks from strava_sync import run_strava_sync from stravalib.exc import ActivityUploadFailed, RateLimitTimeout from utils import make_str...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/keep_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:49.277607
import argparse import base64 import json import os import time import zlib from collections import namedtuple from datetime import datetime, timedelta, timezone from xml.dom import minidom import eviltransform import gpxpy import polyline import requests from config import ( GPX_FOLDER, JSON_FILE, SQL_FILE...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/nike_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:49.468327
import argparse import json import logging import os.path import time from collections import namedtuple from datetime import datetime, timedelta, timezone from xml.etree import ElementTree import gpxpy.gpx import httpx from config import ( BASE_TIMEZONE, GPX_FOLDER, JSON_FILE, OUTPUT_DIR, SQL_FILE...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/komoot_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:49.505159
# some code from # https://github.com/timschneeb/KomootGPX.git # great thanks import os import re import sys import argparse import base64 import requests from datetime import datetime, timedelta import gpxpy.gpx from config import GPX_FOLDER def extract_user_from_tip(json): if ( "_embedded" in json ...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/onelap_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:49.505673
# some code from # https://github.com/DreamMryang/synchronizeTheRecordingOfOnelapToGiant.git # https://github.com/moruoxian/SyncOnelapToXoss.git # great thanks import os import uuid import hashlib import time import argparse import requests from config import FIT_FOLDER SIGNIN_URL = "https://www.onelap.cn/api/login" ...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/oppo_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:49.522607
import argparse import hashlib import json import os import time import xml.etree.ElementTree as ET from collections import namedtuple from datetime import datetime, timedelta, timezone from xml.dom import minidom import gpxpy import polyline import requests from tzlocal import get_localzone from config import ( ...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/nike_to_strava_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:49.534231
import argparse import os import time from config import OUTPUT_DIR from nike_sync import make_new_gpxs, run from strava_sync import run_strava_sync from utils import make_strava_client, get_strava_last_time, upload_file_to_strava def get_to_generate_files(last_time): file_names = os.listdir(OUTPUT_DIR) ret...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/polyline_processor.py
null
null
null
null
null
null
Python
2026-05-04T02:00:49.563902
from typing import List, Tuple import polyline import os import warnings from haversine import haversine # Initialize IGNORE_POLYLINE with graceful error handling IGNORE_POLYLINE = [] ignore_polyline_env = os.getenv("IGNORE_POLYLINE") if ignore_polyline_env: try: IGNORE_POLYLINE = polyline.decode(ignore_po...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/save_to_parqent.py
null
null
null
null
null
null
Python
2026-05-04T02:00:49.844904
import duckdb with duckdb.connect() as conn: conn.install_extension("sqlite") conn.load_extension("sqlite") conn.sql("ATTACH 'run_page/data.db' (TYPE SQLITE);USE data;") conn.sql( "COPY (SELECT * FROM activities) TO 'run_page/data.parquet' (FORMAT PARQUET);" ) """ examples: duckdb.sql("se...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/strava_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:49.874193
import argparse import json from config import JSON_FILE, SQL_FILE from generator import Generator # for only run type, we use the same logic as garmin_sync def run_strava_sync( client_id, client_secret, refresh_token, sync_types: list = [], only_run=False, ): generator = Generator(SQL_FILE) ...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/strava_to_garmin_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:50.098176
import argparse import asyncio from datetime import datetime from garmin_sync import Garmin from strava_sync import run_strava_sync from stravaweblib import DataFormat, WebClient from utils import make_strava_client async def upload_to_activities( garmin_client, strava_client, strava_web_client, format, use_fake...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/tcx_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:50.098843
""" If you do not want bind any account Only the gpx files in GPX_OUT sync """ from config import JSON_FILE, SQL_FILE, TCX_FOLDER from utils import make_activities_file if __name__ == "__main__": print("only sync tcx files in TCX_OUT") make_activities_file(SQL_FILE, TCX_FOLDER, JSON_FILE, file_suffix="tcx")
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/synced_data_file_logger.py
null
null
null
null
null
null
Python
2026-05-04T02:00:50.154867
import os from config import SYNCED_FILE import json def save_synced_data_file_list(file_list: list): old_list = load_synced_file_list() with open(SYNCED_FILE, "w") as f: file_list.extend(old_list) json.dump(file_list, f) def load_synced_file_list(): if os.path.exists(SYNCED_FILE): ...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/igpsport_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:00:52.390585
import os import sys import argparse import requests from config import ( GPX_FOLDER, TCX_FOLDER, FIT_FOLDER, ) BASE_URL = "https://prod.zh.igpsport.com/service/" LOGIN_URL = BASE_URL + "auth/account/login" ACTIVITY_URL = BASE_URL + "web-gateway/web-analyze/activity/" QUERY_URL = ACTIVITY_URL + "queryMyAct...
yihong0618/running_page
https://github.com/yihong0618/running_page
null
null
null
null
4,444
null
null
mit
null
null
null
null
null
null
null
run_page/gpxtrackposter/track_loader.py
null
null
null
null
null
null
Python
2026-05-04T02:00:55.566095
"""Handle parsing of GPX files""" # Copyright 2016-2019 Florian Pigorsch & Contributors. All rights reserved. # 2019-now Yihong0618 # # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. import logging import os import sys sys.path.append(os.path.join(os.path.dirname(...
PiotrMachowski/Xiaomi-cloud-tokens-extractor
https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor
null
null
null
null
4,424
null
null
mit
null
null
null
null
null
null
null
token_extractor.py
null
null
null
null
null
null
Python
2026-05-04T02:00:57.674387
from abc import ABC, abstractmethod import argparse import base64 import hashlib import hmac import json import logging import os import random import re import socket import sys import tempfile import threading import time from getpass import getpass from http.server import BaseHTTPRequestHandler, HTTPServer from urll...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
models/bert_CNN.py
null
null
null
null
null
null
Python
2026-05-04T02:01:00.458675
# coding: UTF-8 import torch import torch.nn as nn import torch.nn.functional as F from pytorch_pretrained import BertModel, BertTokenizer class Config(object): """配置参数""" def __init__(self, dataset): self.model_name = 'bert' self.train_path = dataset + '/data/train.txt' ...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/__main__.py
null
null
null
null
null
null
Python
2026-05-04T02:01:00.471974
# coding: utf8 def main(): import sys if (len(sys.argv) != 4 and len(sys.argv) != 5) or sys.argv[1] not in [ "convert_tf_checkpoint_to_pytorch", "convert_openai_checkpoint", "convert_transfo_xl_checkpoint", "convert_gpt2_checkpoint", ]: print( "Should be used ...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/convert_openai_checkpoint_to_pytorch.py
null
null
null
null
null
null
Python
2026-05-04T02:01:00.488625
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
models/bert.py
null
null
null
null
null
null
Python
2026-05-04T02:01:00.489959
# coding: UTF-8 import torch import torch.nn as nn # from pytorch_pretrained_bert import BertModel, BertTokenizer from pytorch_pretrained import BertModel, BertTokenizer class Config(object): """配置参数""" def __init__(self, dataset): self.model_name = 'bert' self.train_path = dataset + '/data/t...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
models/ERNIE.py
null
null
null
null
null
null
Python
2026-05-04T02:01:00.491713
# coding: UTF-8 import torch import torch.nn as nn # from pytorch_pretrained_bert import BertModel, BertTokenizer from pytorch_pretrained import BertModel, BertTokenizer class Config(object): """配置参数""" def __init__(self, dataset): self.model_name = 'ERNIE' self.train_path = dataset + '/data/t...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
models/bert_DPCNN.py
null
null
null
null
null
null
Python
2026-05-04T02:01:00.493381
# coding: UTF-8 import torch import torch.nn as nn import torch.nn.functional as F # from pytorch_pretrained_bert import BertModel, BertTokenizer from pytorch_pretrained import BertModel, BertTokenizer class Config(object): """配置参数""" def __init__(self, dataset): self.model_name = 'bert' self...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/convert_gpt2_checkpoint_to_pytorch.py
null
null
null
null
null
null
Python
2026-05-04T02:01:00.494507
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
models/bert_RNN.py
null
null
null
null
null
null
Python
2026-05-04T02:01:00.500279
# coding: UTF-8 import torch import torch.nn as nn import torch.nn.functional as F from pytorch_pretrained import BertModel, BertTokenizer class Config(object): """配置参数""" def __init__(self, dataset): self.model_name = 'bert' self.train_path = dataset + '/data/train.txt' ...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:01:00.541807
__version__ = "0.6.2" from .tokenization import BertTokenizer, BasicTokenizer, WordpieceTokenizer from .tokenization_openai import OpenAIGPTTokenizer from .tokenization_transfo_xl import (TransfoXLTokenizer, TransfoXLCorpus) from .tokenization_gpt2 import GPT2Tokenizer from .modeling import (BertConfig, BertModel, Ber...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
models/bert_RCNN.py
null
null
null
null
null
null
Python
2026-05-04T02:01:00.542406
# coding: UTF-8 import torch import torch.nn as nn import torch.nn.functional as F from pytorch_pretrained import BertModel, BertTokenizer class Config(object): """配置参数""" def __init__(self, dataset): self.model_name = 'bert' self.train_path = dataset + '/data/train.txt' ...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/file_utils.py
null
null
null
null
null
null
Python
2026-05-04T02:01:01.103083
""" Utilities for working with the local dataset cache. This file is adapted from the AllenNLP library at https://github.com/allenai/allennlp Copyright by the AllenNLP authors. """ from __future__ import (absolute_import, division, print_function, unicode_literals) import sys import json import logging import os impor...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/convert_tf_checkpoint_to_pytorch.py
null
null
null
null
null
null
Python
2026-05-04T02:01:01.121693
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/convert_transfo_xl_checkpoint_to_pytorch.py
null
null
null
null
null
null
Python
2026-05-04T02:01:01.127949
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/modeling_transfo_xl_utilities.py
null
null
null
null
null
null
Python
2026-05-04T02:01:01.131871
# coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Lice...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/modeling_openai.py
null
null
null
null
null
null
Python
2026-05-04T02:01:01.158648
# coding=utf-8 # Copyright 2018 The OpenAI Team Authors and HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/optimization.py
null
null
null
null
null
null
Python
2026-05-04T02:01:01.169134
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICEN...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/optimization_openai.py
null
null
null
null
null
null
Python
2026-05-04T02:01:01.176723
# coding=utf-8 # Copyright 2018 The Open AI Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/modeling_gpt2.py
null
null
null
null
null
null
Python
2026-05-04T02:01:01.189349
# coding=utf-8 # Copyright 2018 The OpenAI Team Authors and HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/modeling_transfo_xl.py
null
null
null
null
null
null
Python
2026-05-04T02:01:01.190040
# coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Lice...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/modeling.py
null
null
null
null
null
null
Python
2026-05-04T02:01:01.198559
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/tokenization.py
null
null
null
null
null
null
Python
2026-05-04T02:01:01.688471
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICEN...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/tokenization_openai.py
null
null
null
null
null
null
Python
2026-05-04T02:01:01.748735
# coding=utf-8 # Copyright 2018 The Open AI Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/tokenization_transfo_xl.py
null
null
null
null
null
null
Python
2026-05-04T02:01:01.749499
# coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Lice...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
pytorch_pretrained/tokenization_gpt2.py
null
null
null
null
null
null
Python
2026-05-04T02:01:01.750477
# coding=utf-8 # Copyright 2018 The Open AI Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
train_eval.py
null
null
null
null
null
null
Python
2026-05-04T02:01:01.782699
# coding: UTF-8 import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from sklearn import metrics import time from utils import get_time_dif from pytorch_pretrained.optimization import BertAdam # 权重初始化,默认xavier def init_network(model, method='xavier', exclude='embedding', seed=123): ...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
utils.py
null
null
null
null
null
null
Python
2026-05-04T02:01:01.802081
# coding: UTF-8 import torch from tqdm import tqdm import time from datetime import timedelta PAD, CLS = '[PAD]', '[CLS]' # padding符号, bert中综合信息符号 def build_dataset(config): def load_dataset(path, pad_size=32): contents = [] with open(path, 'r', encoding='UTF-8') as f: for line in t...
649453932/Bert-Chinese-Text-Classification-Pytorch
https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
run.py
null
null
null
null
null
null
Python
2026-05-04T02:01:01.802733
# coding: UTF-8 import time import torch import numpy as np from train_eval import train, init_network from importlib import import_module import argparse from utils import build_dataset, build_iterator, get_time_dif parser = argparse.ArgumentParser(description='Chinese Text Classification') parser.add_argument('--mod...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
GPU-Re-Ranking/gnn_reranking.py
null
null
null
null
null
null
Python
2026-05-04T02:01:08.970142
""" Understanding Image Retrieval Re-Ranking: A Graph Neural Network Perspective Xuanmeng Zhang, Minyue Jiang, Zhedong Zheng, Xiao Tan, Errui Ding, Yi Yang Project Page : https://github.com/Xuanmeng-Zhang/gnn-re-ranking Paper: https://arxiv.org/abs/2012.07620v2 ==================================...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
GPU-Re-Ranking/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:01:08.975713
""" Understanding Image Retrieval Re-Ranking: A Graph Neural Network Perspective Xuanmeng Zhang, Minyue Jiang, Zhedong Zheng, Xiao Tan, Errui Ding, Yi Yang Project Page : https://github.com/Xuanmeng-Zhang/gnn-re-ranking Paper: https://arxiv.org/abs/2012.07620v2 ==================================...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
demo.py
null
null
null
null
null
null
Python
2026-05-04T02:01:08.978888
import argparse import scipy.io import torch import numpy as np import os from torchvision import datasets import matplotlib matplotlib.use('agg') import matplotlib.pyplot as plt ####################################################################### # Evaluate parser = argparse.ArgumentParser(description='Demo') parse...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
ODFA.py
null
null
null
null
null
null
Python
2026-05-04T02:01:08.999837
import torch from torch.autograd import Variable from copy import deepcopy import torch.nn as nn import numpy as np from PIL import Image from torchvision import transforms # Online Adversarial Defense Trainnig via ODFA. # https://github.com/layumi/U_turn/blob/master/README.md def ODFA(model, img, rate = 16): ...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
GPU-Re-Ranking/evaluate_rerank_gpu.py
null
null
null
null
null
null
Python
2026-05-04T02:01:09.003696
""" Understanding Image Retrieval Re-Ranking: A Graph Neural Network Perspective Xuanmeng Zhang, Minyue Jiang, Zhedong Zheng, Xiao Tan, Errui Ding, Yi Yang Project Page : https://github.com/Xuanmeng-Zhang/gnn-re-ranking Paper: https://arxiv.org/abs/2012.07620v2 ==================================...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
dgfolder.py
null
null
null
null
null
null
Python
2026-05-04T02:01:09.006226
from torchvision import datasets import numpy as np class DGFolder(datasets.ImageFolder): def __init__(self, root, transform): super(DGFolder, self).__init__(root, transform) targets = np.asarray([s[1] for s in self.samples]) self.targets = targets self.img_num = len(self.samples) ...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
evaluate.py
null
null
null
null
null
null
Python
2026-05-04T02:01:09.008750
import scipy.io import torch import numpy as np #import time import os ####################################################################### # Evaluate def evaluate(qf,ql,qc,gf,gl,gc): query = qf score = np.dot(gf,query) # predict index index = np.argsort(score) #from small to large index = inde...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
GPU-Re-Ranking/extension/propagation/setup.py
null
null
null
null
null
null
Python
2026-05-04T02:01:09.012351
""" Understanding Image Retrieval Re-Ranking: A Graph Neural Network Perspective Xuanmeng Zhang, Minyue Jiang, Zhedong Zheng, Xiao Tan, Errui Ding, Yi Yang Project Page : https://github.com/Xuanmeng-Zhang/gnn-re-ranking Paper: https://arxiv.org/abs/2012.07620v2 ==================================...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
GPU-Re-Ranking/extension/adjacency_matrix/setup.py
null
null
null
null
null
null
Python
2026-05-04T02:01:09.017168
""" Understanding Image Retrieval Re-Ranking: A Graph Neural Network Perspective Xuanmeng Zhang, Minyue Jiang, Zhedong Zheng, Xiao Tan, Errui Ding, Yi Yang Project Page : https://github.com/Xuanmeng-Zhang/gnn-re-ranking Paper: https://arxiv.org/abs/2012.07620v2 ==================================...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
circle_loss.py
null
null
null
null
null
null
Python
2026-05-04T02:01:09.021913
#from https://github.com/TinyZeaMays/CircleLoss/blob/master/circle_loss.py from typing import Tuple import torch from torch import nn, Tensor def convert_label_to_similarity(normed_feature: Tensor, label: Tensor) -> Tuple[Tensor, Tensor]: similarity_matrix = normed_feature @ normed_feature.transpose(1, 0) ...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
instance_loss.py
null
null
null
null
null
null
Python
2026-05-04T02:01:09.575477
import torch from torch import nn, Tensor import torch.nn.functional as F def l2_norm(v): fnorm = torch.norm(v, p=2, dim=1, keepdim=True) + 1e-8 v = v.div(fnorm.expand_as(v)) return v class InstanceLoss(nn.Module): def __init__(self, gamma = 1) -> None: super(InstanceLoss, self).__init__() ...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
evaluate_rerank.py
null
null
null
null
null
null
Python
2026-05-04T02:01:09.594016
import scipy.io import torch import numpy as np import time from re_ranking import re_ranking ####################################################################### # Evaluate def evaluate(score,ql,qc,gl,gc): index = np.argsort(score) #from small to large #index = index[::-1] # good index query_index...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
prepare_CUB.py
null
null
null
null
null
null
Python
2026-05-04T02:01:09.658080
import os from shutil import copyfile # 1-100 train # 101-200 test os.system('wget http://www.vision.caltech.edu/visipedia-data/CUB-200-2011/CUB_200_2011.tgz') os.system('tar -zxvf CUB_200_2011.tgz') os.system('cd ./CUB_200_2011/images') os.system('mkdir train_all') os.system('mkdir test') os.system('mv 0* train_all')...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
evaluate_gpu.py
null
null
null
null
null
null
Python
2026-05-04T02:01:09.659438
import scipy.io import torch import numpy as np #import time import os ####################################################################### # Evaluate def evaluate(qf,ql,qc,gf,gl,gc): query = qf.view(-1,1) # print(query.shape) score = torch.mm(gf,query) score = score.squeeze(1).cpu() score = sco...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
prepare_VeRi.py
null
null
null
null
null
null
Python
2026-05-04T02:01:09.661201
import os from shutil import copyfile def copy_file(s, t): for root, dirs, files in os.walk(s): for name in files: copyfile(root+'/'+name,t+'/'+name) # You only need to change this line to your dataset download path download_path = './data/VeRi' if not os.path.isdir(download_path): print(...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
prepare_Duke.py
null
null
null
null
null
null
Python
2026-05-04T02:01:09.662394
import os from shutil import copyfile # You only need to change this line to your dataset download path download_path = '../DukeMTMC-reID' if not os.path.isdir(download_path): print('please change the download_path') save_path = download_path + '/pytorch' if not os.path.isdir(save_path): os.mkdir(save_path) ...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
model.py
null
null
null
null
null
null
Python
2026-05-04T02:01:09.663359
import torch import torch.nn as nn from torch.nn import init from torchvision import models from torch.autograd import Variable import pretrainedmodels import timm from utils import load_state_dict_mute ###################################################################### def weights_init_kaiming(m): classname = m...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
prepare_MSMT.py
null
null
null
null
null
null
Python
2026-05-04T02:01:09.668203
import os from shutil import copyfile # You only need to change this line to your dataset download path download_path = '/home/zzd/MSMT17_V1/' if not os.path.isdir(download_path): print('please change the download_path') save_path = download_path + '/pytorch' if not os.path.isdir(save_path): os.mkdir(save_pa...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
prepare.py
null
null
null
null
null
null
Python
2026-05-04T02:01:09.669147
import os from shutil import copyfile download_path = '../Market' # Please not change. download_path2 = '../Market-1501-v15.09.15' # You only need to change this line to your dataset download path if not os.path.isdir(download_path): if os.path.isdir(download_path2): os.system('mv %s %s'%(download_path2, ...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
prepare_VehicleID.py
null
null
null
null
null
null
Python
2026-05-04T02:01:09.670830
import os from shutil import copyfile def copy_file(s, t): for root, dirs, files in os.walk(s): for name in files: copyfile(root+'/'+name,t+'/'+name) # You only need to change this line to your dataset download path download_path = './data/VehicleID_V1.0/' if not os.path.isdir(download_path):...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
prepare_viper.py
null
null
null
null
null
null
Python
2026-05-04T02:01:10.574663
import os from shutil import copyfile import numpy as np #http://users.soe.ucsc.edu/~manduchi/VIPeR.v1.0.zip download_path = '../VIPeR' if not os.path.isdir(download_path): print('please change the download_path') save_path = download_path + '/pytorch' if not os.path.isdir(save_path): os.mkdir(save_path) ...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
prepare_static.py
null
null
null
null
null
null
Python
2026-05-04T02:01:10.851614
# -*- coding: utf-8 -*- from __future__ import print_function, division import argparse import torch from torchvision import datasets, transforms import time import os version = torch.__version__ ###################################################################### # Options # -------- parser = argparse.ArgumentP...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
utils.py
null
null
null
null
null
null
Python
2026-05-04T02:01:11.225328
import os import torch import torch.nn as nn from torch.nn.utils import fuse_conv_bn_eval class CrossEntropyLabelSmooth(nn.Module): """Cross entropy loss with label smoothing regularizer. Reference: Szegedy et al. Rethinking the Inception Architecture for Computer Vision. CVPR 2016. Equation: y = (1 - ...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
random_erasing.py
null
null
null
null
null
null
Python
2026-05-04T02:01:11.310364
from __future__ import absolute_import #from torchvision.transforms import * #from PIL import Image import random import math #import numpy as np class RandomErasing(object): """ Randomly selects a rectangle region in an image and erases its pixels. 'Random Erasing Data Augmentation' by Zhong et al. ...