This file contains 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 stable_diffusion_videos.stable_diffusion_walk import walk | |
prompt_n_seed = { | |
"1965 Porsche 911": 743, | |
"1975 Porsche 911": 140, | |
"1985 Porsche 911": 40, | |
"1995 Porsche 911": 560, | |
"2005 Porsche 911 directly facing camera": 996, | |
"2015 Porsche 911": 283, | |
"2020 Porsche 911": 116, |
This file contains 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
/** | |
* General-purpose NodeJS CLI/API wrapping the Stable-Diffusion python scripts. | |
* | |
* Note that this uses an older fork of stable-diffusion | |
* with the 'txt2img.py' script, and that script was modified to | |
* support the --outfile command. | |
*/ | |
var { spawn, exec } = require("child_process"); | |
var path = require("path"); |
This file contains 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
#!/bin/bash | |
set -e | |
resourceGroupDefault='<set your default here, to avoid having to specify in the common case>' | |
resourceGroup=${RESOURCE_GROUP:-$resourceGroupDefault} | |
clusterNameDefault='<set your default here>' | |
clusterName=${CLUSTER_NAME:-$clusterNameDefault} | |
regionDefault='<set your default here>' | |
region=${REGION:-$regionDefault} |
This file contains 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
public class ApplySchemaVendorExtensions : ISchemaFilter | |
{ | |
public void Apply(Schema schema, SchemaRegistry schemaRegistry, Type type) | |
{ | |
if (type.IsArray && type.GetElementType() != typeof(byte)) | |
{ | |
// Special case | |
return; | |
} |