summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/stable-generate
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-11-22 10:44:06 +0100
committerlassulus <lassulus@lassul.us>2022-11-22 10:44:06 +0100
commit618185c6f8936a6f70509be554704418e8471477 (patch)
tree21a5c7af5e5c8c0a8a755d962d9ad73f2c41f948 /krebs/5pkgs/simple/stable-generate
parent6858631284ae94fddf30180590c1f38aaf55fa5a (diff)
stable-generate: activate repair faces
Diffstat (limited to 'krebs/5pkgs/simple/stable-generate')
-rw-r--r--krebs/5pkgs/simple/stable-generate/default.nix41
1 files changed, 40 insertions, 1 deletions
diff --git a/krebs/5pkgs/simple/stable-generate/default.nix b/krebs/5pkgs/simple/stable-generate/default.nix
index 23e4cfc8e..c30fa2cfa 100644
--- a/krebs/5pkgs/simple/stable-generate/default.nix
+++ b/krebs/5pkgs/simple/stable-generate/default.nix
@@ -10,7 +10,46 @@ pkgs.writers.writeDashBin "stable-generate" ''
STABLE_URL=''${STABLE_URL:-http://stable-confusion.r}
- PAYLOAD=$(jq -cn --arg query "$*" '{fn_index: 51, data: [$query,"","None","None",20,"Euler a",false,false,1,1,7,-1,-1,0,0,0,false,512,512,false,0.7,0,0,"None","",false,false,false,"","Seed","","Nothing","",true,false,false,null,"",""], session_hash: "hello_this_is_dog"}')
+ PAYLOAD=$(jq -cn --arg query "$*" '{fn_index: 51, data: [
+ $query,
+ "",
+ "None",
+ "None",
+ 20,
+ "Euler a",
+ false, # restore faces
+ false,
+ 1,
+ 1,
+ 7,
+ -1,
+ -1,
+ 0,
+ 0,
+ 0,
+ false,
+ 512, #probably resolution
+ 512, #probably resolution
+ false,
+ 0.7,
+ 0,
+ 0,
+ "None",
+ "",
+ false,
+ false,
+ false,
+ "",
+ "Seed",
+ "",
+ "Nothing",
+ "",
+ true,
+ false,
+ false,
+ null,
+ "",
+ ""], session_hash: "hello_this_is_dog"}')
data=$(curl -Ssf "$STABLE_URL/run/predict/" \
-X POST \