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
""" | |
Examples: | |
(1) python benchmark_distilled_sd.py --pipeline_id CompVis/stable-diffusion-v1-4 | |
(2) python benchmark_distilled_sd.py --pipeline_id CompVis/stable-diffusion-v1-4 --vae_path sayakpaul/taesd-diffusers | |
(3) python benchmark_distilled_sd.py --pipeline_id nota-ai/bk-sdm-small | |
(4) python benchmark_distilled_sd.py --pipeline_id nota-ai/bk-sdm-small --vae_path sayakpaul/taesd-diffusers | |
""" | |
import argparse | |
import time |
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
#' Creates a \code{data.frame} version of the str function for data.frames. | |
#' | |
#' Note that this function only works with \code{data.frames}. The function | |
#' will throw an error for any other object types. | |
#' | |
#' @param n the first n element to show | |
#' @param width maximum width in characters for the examples to show | |
#' @param n.levels the first n levels of a factor to show. | |
#' @param width.levels maximum width in characters for the number of levels to show. | |
#' @param factor.values function defining how factor examples should be printed. |
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
# load required libraries | |
library(shiny) | |
library(plyr) | |
library(ggplot2) | |
library(googleVis) | |
library(reshape2) | |
####creation of example data on local directory for uploading#### |