Skip to content

Instantly share code, notes, and snippets.

View tisu19021997's full-sized avatar

Pham Minh Quang tisu19021997

View GitHub Profile

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@tisu19021997
tisu19021997 / stablediffusionwalk.py
Created September 19, 2022 20:25 — forked from karpathy/stablediffusionwalk.py
hacky stablediffusion code for generating videos
"""
stable diffusion dreaming
creates hypnotic moving videos by smoothly walking randomly through the sample space
example way to run this script:
$ python stablediffusionwalk.py --prompt "blueberry spaghetti" --name blueberry
to stitch together the images, e.g.:
$ ffmpeg -r 10 -f image2 -s 512x512 -i blueberry/frame%06d.jpg -vcodec libx264 -crf 10 -pix_fmt yuv420p blueberry.mp4
@tisu19021997
tisu19021997 / multiple_head.py
Created August 1, 2021 05:49 — forked from quanvuong/multiple_head.py
Multiple head network with pytorch
import torch
import torch.nn as nn
from torch.autograd import Variable
# Do this to display pytorch version.
# The version used in this gist is 0.3.0.post4.
print(torch.__version__)
# There are three steps to demonstrate multi head network
# 1. build the network