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
Award Winning detailed, archviz style, extreme detail,The inside of a monument designed by Friedensreich Hundertwasser and Antonin Gaudi, octane render, warm colour scheme, white, cinematic, scenery, high detail, high quality, close up angle, people walking | |
Width was set to 832 | |
Height was 512 |
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
beautiful oil painting of tracer from the game overwatch in the style of delphin enjolras, standing alone in grassy field, smiling while the sun shines down, feminine face, light rays, radiant quality, 4 k, brush strokes, beautiful eyes, peaceful atmosphere, artstation, heavenly glow, tracer overwatch, tracer face, detailed face, smiling, tracer vizor |
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
from PIL import Image | |
from PIL import ImageFont | |
from PIL import ImageDraw | |
import math | |
#Self contain this for easy single clicking | |
from PIL import Image | |
def image_grid(imgs, rows, cols): | |
#assert len(imgs) == rows*cols | |
w, h = imgs[0].size | |
grid = Image.new('RGB', size=(cols*w, rows*h)) |
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
Let f(x) be a function on [0,∞) such that | |
limx→∞f(x) = ∞. | |
Then there exists a unique continuous function g(x) on [0,∞) with | |
limx→∞g(x) = ∞. | |
Suppose f and g are two differentiable functions on [0,∞) which satisfy | |
limx→∞f(x) = ∞ implies limx→∞g(x) = ∞ | |
Then limx→∞f(x)/g(x) = 0 for all x in [0,∞). | |
If you want to show that these limits exist then you need to prove that they both converge to some limit as x approaches infinity. This can be done by showing that | |
limx→∞(f(x)/g(x))2 = limx→∞(f(x)/x)2 = limx→∞(f(x)/x + g(x)/x)2 = limx→∞(f(x)/x - g(x)/x)2 = limx→∞(f(x)/x - g(x)/x)2 = limx→∞(f(x)/x - g(x)/x)2 = limx→∞(f(x)/x - g(x)/x)2 = limx→∞(f(x)/x - g(x)/x)2 = limx→∞f(x)/x - g(x)/x |
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 subprocess as sp | |
import sys | |
import numpy | |
FFMPEG_BIN = "ffmpeg.exe" | |
print ('ASplit.py <src.mp3> <silence duration in seconds> <threshold amplitude 0.0 .. 1.0>') | |
src = sys.argv[1] | |
dur = float(sys.argv[2]) |
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 num2words | |
import re | |
import num2words | |
from num2words import num2words | |
texts = "I’m sorry, but I don’t want to be an emperor. not 1, not 2. Not the 1st, not the 2nd, the 3rd, nor the last. \ | |
That’s not my business. I don’t want to rule or conquer anyone. \ | |
I should like to help everyone, if possible, Jew, Gentile, black man, white. We all want to help one another. \ | |
Human beings are like that. We want to live by each other’s happiness, not by each other’s misery. \ | |
We don’t want to hate and despise one another. In this world there is room for everyone. \ |
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 youtube_dl | |
import time | |
import re | |
import requests | |
import os | |
import sys | |
import matplotlib.pyplot as plt | |
import subprocess | |
import re | |
import logging |
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
Write valid molecular SMILE for [Cd]=[Te] bonded to λ²-iron(2+) bis(cyclopenta-2,4-dien-1-ide) | |
[Cd]=[Te]-c1cc([Fe])c([Fe])c1 | |
Noise: | |
CC([TeH2-])=CC([TeH2-]) |
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
from utils import train, Pars, create_image, create_outputfolder, init_textfile | |
from dall_e import map_pixels, unmap_pixels, load_model | |
from stylegan import g_synthesis | |
from biggan import BigGAN | |
from tqdm import tqdm | |
import create_video | |
import tempfile | |
import argparse | |
import torch |
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
''' | |
This is directly borrowed from Yannick Kilcher's work | |
Amended to work on Collab and accept some alternate engine sizes | |
''' | |
#/usr/bin/env python3 | |
# Taken from here: https://github.com/huggingface/pytorch-pretrained-BigGAN | |
# MIT License | |
# |