Skip to content

Instantly share code, notes, and snippets.

View KokeCacao's full-sized avatar
❤️
❤️ ∈ {Miku}

Koke_Cacao KokeCacao

❤️
❤️ ∈ {Miku}
View GitHub Profile
@KokeCacao
KokeCacao / Dreamfusion2D
Created July 9, 2023 23:31
Simple 100 lines implementation of 2D Dreamfusion
import os
join = os.path.join
import numpy as np
import torch
import torch.nn.functional as F
from tqdm import tqdm
from datetime import datetime
from utils.utils import save_image
from torch.cuda.amp import custom_bwd, custom_fwd
@KokeCacao
KokeCacao / 📊 Weekly development breakdown
Last active May 29, 2024 00:25
📊 Weekly development breakdown
Python 🕓 3h44m ██████████████▍░░░░░░░░░░░░░ 51.7%
TypeScript 🕓 2h58m ███████████▌░░░░░░░░░░░░░░░░ 41.1%
Markdown 🕓 31m ██░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.2%
@KokeCacao
KokeCacao / vidcut.sh
Created January 26, 2019 20:31
A Bad Written Video Cutter for Data Preperation
#!/bin/bash
function vidcut2() {
if (( $# < 3 )); then
echo "Illegal number of parameters. It should be greater than 3."
fi
name=`basename "$1"`
name_0="${name}_0"
name_1="${name}_1"
name_2="${name}_2"
name_3="${name}_3"