This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Efficiently downloads HuggingFace models by circumventing the `.git` directory. | |
Speeds up the download process by approximately 2x by avoiding downloading the | |
`.git` folder, which contains a copy of the models (thanks to git-lfs). This script | |
can be especially beneficial for large models (e.g., Meta-Llama-3.1-405B). | |
Usage: | |
python download_hf.py \ | |
<hf_repo_id> <destination_folder> \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var scriptProperties = PropertiesService.getScriptProperties(); | |
const NOTION_API_TOKEN = scriptProperties.getProperty('NOTION_TOKEN'); | |
const NOTION_PAGE_ID = scriptProperties.getProperty('NOTION_PAGE_URL'); | |
function main(e) { | |
var itemResponses = e.response.getItemResponses(); | |
var rawResponseData = {}; | |
for (var j = 0; j < itemResponses.length; j++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import plistlib | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument("--META_NAME", type=str, default="programName") | |
parser.add_argument("--LOG_PATH", type=str, default="/var/log/programName") | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Download the paper information from thecvf website and save them into csv files | |
Examples: | |
>> python download_cvf_paper.py --save_path 'save' | |
Saved Files: | |
* cvf_all.csv | |
both paper and workshop papers listed on the thecvf website | |
* cvf_papers.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import matplotlib.pyplot as plt | |
from skimage import measure | |
#### | |
# Ref to https://github.com/Vasistareddy/python-rlsa/blob/master/rlsa.py | |
import numpy as np | |
def iteration(image: np.ndarray, value: int) -> np.ndarray: | |
""" |