Spaces:
Running
Running
feat: add customization parameters
Browse files
dev/inference/wandb-backend.ipynb
CHANGED
@@ -32,12 +32,15 @@
|
|
32 |
"outputs": [],
|
33 |
"source": [
|
34 |
"run_ids = ['3kaut6e8']\n",
|
|
|
|
|
|
|
35 |
"ENTITY, PROJECT = 'wandb', 'hf-flax-dalle-mini'\n",
|
36 |
"VQGAN_REPO, VQGAN_COMMIT_ID = 'dalle-mini/vqgan_imagenet_f16_16384', None\n",
|
37 |
"normalize_text = False\n",
|
38 |
"latest_only = True # log only latest or all versions\n",
|
39 |
"suffix = '' # mainly for duplicate inference runs with a deleted version\n",
|
40 |
-
"add_clip_32 =
|
41 |
]
|
42 |
},
|
43 |
{
|
@@ -59,6 +62,19 @@
|
|
59 |
"add_clip_32 = False"
|
60 |
]
|
61 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
{
|
63 |
"cell_type": "code",
|
64 |
"execution_count": null,
|
@@ -327,6 +343,7 @@
|
|
327 |
" top_images = [wandb.Image(cur_images[x]) for x in idx]\n",
|
328 |
" top_scores = [scores[x] for x in idx]\n",
|
329 |
" results32.append([sample] + top_images + top_scores)\n",
|
|
|
330 |
"\n",
|
331 |
" # log results\n",
|
332 |
" table = wandb.Table(columns=columns, data=results)\n",
|
|
|
32 |
"outputs": [],
|
33 |
"source": [
|
34 |
"run_ids = ['3kaut6e8']\n",
|
35 |
+
"# Alamy - 3kaut6e8\n",
|
36 |
+
"# YFCC - to do\n",
|
37 |
+
"# HF spaces - 4oh3u7ca\n",
|
38 |
"ENTITY, PROJECT = 'wandb', 'hf-flax-dalle-mini'\n",
|
39 |
"VQGAN_REPO, VQGAN_COMMIT_ID = 'dalle-mini/vqgan_imagenet_f16_16384', None\n",
|
40 |
"normalize_text = False\n",
|
41 |
"latest_only = True # log only latest or all versions\n",
|
42 |
"suffix = '' # mainly for duplicate inference runs with a deleted version\n",
|
43 |
+
"add_clip_32 = False"
|
44 |
]
|
45 |
},
|
46 |
{
|
|
|
62 |
"add_clip_32 = False"
|
63 |
]
|
64 |
},
|
65 |
+
{
|
66 |
+
"cell_type": "code",
|
67 |
+
"execution_count": null,
|
68 |
+
"id": "71f27b96-7e6c-4472-a2e4-e99a8fb67a72",
|
69 |
+
"metadata": {},
|
70 |
+
"outputs": [],
|
71 |
+
"source": [
|
72 |
+
"# model.generate parameters - Not used yet\n",
|
73 |
+
"top_k = None\n",
|
74 |
+
"top_p = None\n",
|
75 |
+
"temperature = None"
|
76 |
+
]
|
77 |
+
},
|
78 |
{
|
79 |
"cell_type": "code",
|
80 |
"execution_count": null,
|
|
|
343 |
" top_images = [wandb.Image(cur_images[x]) for x in idx]\n",
|
344 |
" top_scores = [scores[x] for x in idx]\n",
|
345 |
" results32.append([sample] + top_images + top_scores)\n",
|
346 |
+
" pbar.close()\n",
|
347 |
"\n",
|
348 |
" # log results\n",
|
349 |
" table = wandb.Table(columns=columns, data=results)\n",
|