An example of a diff code block:
Unchanged Line
- Removed Line
+ Added Line
import os | |
# This guide can only be run with the jax backend. | |
os.environ["KERAS_BACKEND"] = "jax" | |
from typing import Union | |
import keras | |
import keras.ops as kops | |
from keras import Model, Input, Layer |
import os | |
import gc | |
import cv2 | |
import glob | |
import shutil | |
import random | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from tqdm import tqdm |
An example of a diff code block:
Unchanged Line
- Removed Line
+ Added Line
""" | |
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 |
""" | |
Usage: | |
# Create train data: | |
python generate_tfrecord.py - --csv_input = <PATH_TO_ANNOTATIONS_FOLDER > /train_labels.csv - -output_path = <PATH_TO_ANNOTATIONS_FOLDER > /train.record | |
# Create test data: | |
python generate_tfrecord.py - --csv_input = <PATH_TO_ANNOTATIONS_FOLDER > /test_labels.csv - -output_path = <PATH_TO_ANNOTATIONS_FOLDER > /test.record | |
""" |