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
command = r''' | |
#!/bin/bash | |
! | |
cd /root/CleanCode/Github/DiffSynth-Studio | |
# Copy Model To This Machine (Super Fast the Second Time) | |
HUG_DIR=/huggingface_models | |
mkdir -p $HUG_DIR | |
rclone copy --progress --transfers 128 /root/CleanCode/Github/DiffSynth-Studio/huggingface_models $HUG_DIR | |
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
command = r''' | |
#!/bin/bash | |
! | |
# Copy Model To This Machine (Super Fast the Second Time) | |
HUG_DIR=/huggingface_models | |
mkdir -p $HUG_DIR | |
rclone copy --progress --transfers 128 /root/CleanCode/Github/DiffSynth-Studio/huggingface_models $HUG_DIR | |
# Icecream equivalent for bash |
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
b |
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
# pip install textual rich | |
from __future__ import annotations | |
import time | |
from statistics import median | |
from typing import Dict, TypedDict, Optional | |
from textual.app import App, ComposeResult | |
from textual.widgets import Static, ProgressBar, Digits | |
from textual import events | |
from rich.table import Table |
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> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Spacetime Hull — Snappy UI (Offline)</title> | |
<style> | |
@font-face { | |
font-family: 'Futura'; | |
src: url('https://github.com/RyannDaGreat/Images/raw/refs/heads/master/fonts/Futura.ttc') format('truetype-collection'); | |
font-weight: normal; |
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
! | |
set -x # Print bash script out as it executes | |
#Copy Model To This Machine (Super Fast the Second Time) | |
HUG_DIR=/huggingface_models | |
mkdir $HUG_DIR | |
rclone copy --progress --transfers 128 /root/CleanCode/Github/DiffSynth-Studio/huggingface_models $HUG_DIR | |
#Icecream equivalent for bash |
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 booster_robotics_sdk_python as B | |
def set_global(name, value): | |
globals()[name] = value | |
@globalize_locals | |
def _init_communication() -> None: | |
if not "INITIALIZED" in globals(): |
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 io | |
import argparse | |
import numpy as np | |
import torch | |
from decord import cpu, VideoReader, bridge | |
from transformers import AutoModelForCausalLM, AutoTokenizer | |
MODEL_PATH = "THUDM/cogvlm2-llama3-caption" |
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
# INSTANCE: gpu80gb-f OWNER: [email protected] GPUS: 8×NVIDIA A100-SXM4-80GB DATE: Wed Sep 03, 2025 at 4:47:30AM EDT | |
rp call tmuxp_launch_session_from_yaml --- 'session_name: PH-gpu80gb-f | |
windows: | |
- window_name: Jupyter | |
panes: | |
- '"'"'set -x ; ( sleep 0.0 ; open http://localhost:57418 ) & ( while true ; do ( ssh -i $KEY_FILE -L 57418:localhost:57418 [email protected] ) ; done ) # JUPYTER: Runs on laptop'"'"' | |
- window_name: VSCode | |
panes: | |
- '"'"'set -x ; ( sleep 0.3 ; open http://localhost:42499 ) & ( while true ; do ( ssh -i $KEY_FILE -L 42499:localhost:42499 [email protected] ) ; done ) # VSCODE: Runs on laptop'"'"' | |
- window_name: Filebrowser |
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 rp#pip install rp | |
import sys, io, math | |
import numpy as np | |
import pygame | |
# ------------------------------------------------------------ | |
# Config | |
# ------------------------------------------------------------ | |
W, H = 1260, 800 | |
CANVAS_W = 980 |
NewerOlder