This file contains hidden or 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
# Refs: | |
# https://matplotlib.org/3.9.3/users/explain/quick_start.html | |
# https://stackoverflow.com/questions/7908636/how-to-add-hovering-annotations-to-a-plot | |
# https://www.geeksforgeeks.org/how-to-draw-a-line-inside-a-scatter-plot/ | |
# https://python-graph-gallery.com/scatterplot-with-regression-fit-in-matplotlib/ | |
# https://stackoverflow.com/questions/22239691/code-for-best-fit-straight-line-of-a-scatter-plot | |
# https://stackoverflow.com/questions/27878217/how-do-i-extend-the-margin-at-the-bottom-of-a-figure-in-matplotlib | |
# https://stackoverflow.com/questions/51473993/plot-an-histogram-with-y-axis-as-percentage-using-funcformatter | |
def plot_cols(inp_df: pandas.DataFrame, *args): |
This file contains hidden or 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
fdisk -l # To get diskname - '/dev/nvme1n1' in example below and mount at /local/mnt2/ | |
# DISK_NAME=/dev/nvme1n1 | |
# VG_NAME=vg10 | |
# LV_NAME=lv_local_mnt2 | |
# MOUNT_TARGET=/local/mnt2 | |
pvcreate /dev/nvme1n1 # You might have to wipe GPT signatures if this was partitioned by Windows | |
vgcreate vg10 /dev/nvme1n1 | |
lvcreate -n lv_local_mnt2 -l +100%FREE vg10 |
This file contains hidden or 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
exit 1 # DONT RUN DIRECTLY | |
# Original system: "/" and "/local/mnt" with 20 GB and 2000 GB | |
# Target: Increase "/" to 200 GB | |
# Do reboot since some random processes keep accessing /local/mnt | |
# Run following as root as soon as you reboot | |
df -h # Note down / and /local/mnt partition sizes | |
umount /local/mnt |
This file contains hidden or 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 argparse | |
from typing import Any, Dict | |
def create_cli_args_from_dict(parser: argparse.ArgumentParser, inp_args_dict: Dict[str, Any]): | |
ret_val_list = [] | |
for action in parser._actions: | |
if action.dest not in inp_args_dict: continue | |
val = inp_args_dict[action.dest] | |
if isinstance(action, argparse._StoreTrueAction): | |
assert isinstance(val, bool) |
LLM survey
- Understanding LLMs: A Comprehensive Overview from Training to Inference
- A Comprehensive Overview of Large Language Models
BEV networks survey
- Vision-Centric BEV Perception: A Survey
- [Delving into the Devils of Bird’s-eye-view
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<meta charset="utf-8"> | |
<head> | |
<title>Dot Viewer</title> | |
<meta property="og:title" content="Dot Viewer"> | |
</head> | |
<body> |
This file contains hidden or 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
#!/usr/bin/env python | |
import argparse | |
import logging | |
import logging.handlers | |
import os | |
import sys | |
import textwrap | |
import traceback | |
from dataclasses import dataclass |
This file contains hidden or 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
git clone https://github.com/lutzroeder/netron.git | |
cd netron | |
npm install | |
npx electron-builder --linux appimage --x64 --publish never | |
ls $PWD/dist/Netron*AppImage -ltr | awk '{print $NF}' | tail -n 1 | xargs -IXX sudo cp XX /usr/bin/netron |
This file contains hidden or 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
vscode_reconnect_insiders () | |
{ | |
BIN_DIR=$(ls ~/.vscode-server-insiders/cli/servers/*/server/bin/remote-cli/code-insiders -altr | awk '{print $NF}' | tail -n 1 | sed 's:.code.insiders$::') | |
export PATH=$PATH:$BIN_DIR | |
export VSCODE_IPC_HOOK_CLI=$(ls /run/user/${UID}/vscode-ipc-*.sock -ltr | awk '{print $NF}' | tail -n 1) | |
} | |
vscode_reconnect () | |
{ | |
BIN_DIR=$(ls ~/.vscode-server/cli/servers/*/server/bin/remote-cli/code -altr | awk '{print $NF}' | tail -n 1 | sed 's:.code$::') |
NewerOlder