Skip to content

Commit e0dc377

Browse files
authored
fix diffusers version in photomaker (#2282)
1 parent d0ed4fe commit e0dc377

File tree

1 file changed

+2
-268
lines changed

1 file changed

+2
-268
lines changed

notebooks/photo-maker/photo-maker.ipynb

Lines changed: 2 additions & 268 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"cells": [
33
{
4-
"attachments": {},
54
"cell_type": "markdown",
65
"id": "ebc080c9-4580-4a8c-bbfb-e391d2871b10",
76
"metadata": {},
@@ -42,7 +41,6 @@
4241
]
4342
},
4443
{
45-
"attachments": {},
4644
"cell_type": "markdown",
4745
"id": "4a41b1c9",
4846
"metadata": {},
@@ -63,7 +61,6 @@
6361
]
6462
},
6563
{
66-
"attachments": {},
6764
"cell_type": "markdown",
6865
"id": "7509c1ba-a099-49fd-a1c5-7118f2d0c4e6",
6966
"metadata": {},
@@ -91,7 +88,6 @@
9188
]
9289
},
9390
{
94-
"attachments": {},
9591
"cell_type": "markdown",
9692
"id": "8648f92f",
9793
"metadata": {},
@@ -107,11 +103,10 @@
107103
"outputs": [],
108104
"source": [
109105
"%pip install -q --extra-index-url https://download.pytorch.org/whl/cpu \\\n",
110-
"transformers \"torch>=2.1\" \"diffusers>=0.26\" \"gradio>=4.19\" \"openvino>=2024.0.0\" \"einops\" torchvision \"peft==0.6.2\" \"nncf>=2.9.0\" \"protobuf==3.20.3\" \"insightface\" \"onnxruntime\""
106+
"transformers \"torch>=2.1\" \"diffusers>=0.26,<0.30\" \"gradio>=4.19\" \"openvino>=2024.0.0\" \"einops\" torchvision \"peft==0.6.2\" \"nncf>=2.9.0\" \"protobuf==3.20.3\" \"insightface\" \"onnxruntime\""
111107
]
112108
},
113109
{
114-
"attachments": {},
115110
"cell_type": "markdown",
116111
"id": "5959be5b",
117112
"metadata": {},
@@ -137,7 +132,6 @@
137132
]
138133
},
139134
{
140-
"attachments": {},
141135
"cell_type": "markdown",
142136
"id": "4ead4649-6aea-4c52-bec7-a87dd1a1251c",
143137
"metadata": {},
@@ -232,7 +226,6 @@
232226
]
233227
},
234228
{
235-
"attachments": {},
236229
"cell_type": "markdown",
237230
"id": "7719901d-caed-4c4f-b89f-32eac02a4712",
238231
"metadata": {},
@@ -339,7 +332,6 @@
339332
]
340333
},
341334
{
342-
"attachments": {},
343335
"cell_type": "markdown",
344336
"id": "fb4c8b72-3d6b-4643-ba56-7a3103725bae",
345337
"metadata": {},
@@ -381,7 +373,6 @@
381373
]
382374
},
383375
{
384-
"attachments": {},
385376
"cell_type": "markdown",
386377
"id": "9c896614-c369-48fe-a04a-65456458c7dd",
387378
"metadata": {},
@@ -512,7 +503,6 @@
512503
]
513504
},
514505
{
515-
"attachments": {},
516506
"cell_type": "markdown",
517507
"id": "49ae9c7e-15e6-4304-bd93-f493011503d9",
518508
"metadata": {},
@@ -573,7 +563,6 @@
573563
]
574564
},
575565
{
576-
"attachments": {},
577566
"cell_type": "markdown",
578567
"id": "a74680d5-9bf1-438b-8d3b-bd91a8dc3802",
579568
"metadata": {},
@@ -616,7 +605,6 @@
616605
]
617606
},
618607
{
619-
"attachments": {},
620608
"cell_type": "markdown",
621609
"id": "61c721a4-de35-4d62-b910-98927486580c",
622610
"metadata": {},
@@ -670,7 +658,6 @@
670658
]
671659
},
672660
{
673-
"attachments": {},
674661
"cell_type": "markdown",
675662
"id": "c9c9170c",
676663
"metadata": {},
@@ -811,7 +798,6 @@
811798
]
812799
},
813800
{
814-
"attachments": {},
815801
"cell_type": "markdown",
816802
"id": "ed6bef08-e5c3-4d82-9541-627035413590",
817803
"metadata": {},
@@ -834,7 +820,6 @@
834820
]
835821
},
836822
{
837-
"attachments": {},
838823
"cell_type": "markdown",
839824
"id": "dda95419",
840825
"metadata": {},
@@ -958,7 +943,6 @@
958943
]
959944
},
960945
{
961-
"attachments": {},
962946
"cell_type": "markdown",
963947
"id": "235a6c7d-1f5c-4cb2-b3ad-829eee29327f",
964948
"metadata": {},
@@ -1121,257 +1105,7 @@
11211105
},
11221106
"widgets": {
11231107
"application/vnd.jupyter.widget-state+json": {
1124-
"state": {
1125-
"0467721282ce4fafa2e51247a212f668": {
1126-
"model_module": "@jupyter-widgets/controls",
1127-
"model_module_version": "2.0.0",
1128-
"model_name": "HTMLStyleModel",
1129-
"state": {
1130-
"description_width": "",
1131-
"font_size": null,
1132-
"text_color": null
1133-
}
1134-
},
1135-
"0ec49ddfa9f146d2901e94b77949857a": {
1136-
"model_module": "@jupyter-widgets/controls",
1137-
"model_module_version": "2.0.0",
1138-
"model_name": "HTMLStyleModel",
1139-
"state": {
1140-
"description_width": "",
1141-
"font_size": null,
1142-
"text_color": null
1143-
}
1144-
},
1145-
"2c34394034c84b25874b5201c787f324": {
1146-
"model_module": "@jupyter-widgets/base",
1147-
"model_module_version": "2.0.0",
1148-
"model_name": "LayoutModel",
1149-
"state": {}
1150-
},
1151-
"554e435516ae40cd955f97d31f3e5660": {
1152-
"model_module": "@jupyter-widgets/controls",
1153-
"model_module_version": "2.0.0",
1154-
"model_name": "HTMLStyleModel",
1155-
"state": {
1156-
"description_width": "",
1157-
"font_size": null,
1158-
"text_color": null
1159-
}
1160-
},
1161-
"5689358466d74164982ffd20a4ed930c": {
1162-
"model_module": "@jupyter-widgets/base",
1163-
"model_module_version": "2.0.0",
1164-
"model_name": "LayoutModel",
1165-
"state": {}
1166-
},
1167-
"597da167ab33442e962a2ae7955073ff": {
1168-
"model_module": "@jupyter-widgets/controls",
1169-
"model_module_version": "2.0.0",
1170-
"model_name": "ProgressStyleModel",
1171-
"state": {
1172-
"description_width": ""
1173-
}
1174-
},
1175-
"5c5f12fe5f29477dbc078299553f2bf6": {
1176-
"model_module": "@jupyter-widgets/controls",
1177-
"model_module_version": "2.0.0",
1178-
"model_name": "HBoxModel",
1179-
"state": {
1180-
"children": [
1181-
"IPY_MODEL_8913d1b1cd01434fb1531b355c257463",
1182-
"IPY_MODEL_72ab72bbafe94e54a60881ad56820154",
1183-
"IPY_MODEL_edfb77550e40401bb6fc5a8fb636067d"
1184-
],
1185-
"layout": "IPY_MODEL_e0c22e96ef5f4933b5a6a004d4628de3"
1186-
}
1187-
},
1188-
"6ba80a643ecc42cbb778cc0c4680dbcd": {
1189-
"model_module": "@jupyter-widgets/controls",
1190-
"model_module_version": "2.0.0",
1191-
"model_name": "DropdownModel",
1192-
"state": {
1193-
"_options_labels": [
1194-
"CPU",
1195-
"GPU.0",
1196-
"GPU.1",
1197-
"AUTO"
1198-
],
1199-
"description": "Device:",
1200-
"index": 0,
1201-
"layout": "IPY_MODEL_a1bce410f46142239253f1ed902321b3",
1202-
"style": "IPY_MODEL_c5a678567a32460da908c1f25d0b78f4"
1203-
}
1204-
},
1205-
"7202b9f3ed69466dbcac7c533116be04": {
1206-
"model_module": "@jupyter-widgets/controls",
1207-
"model_module_version": "2.0.0",
1208-
"model_name": "HBoxModel",
1209-
"state": {
1210-
"children": [
1211-
"IPY_MODEL_ca0f21e671ae42f592f9b7d6e77071d1",
1212-
"IPY_MODEL_abc9d364c43c4e6dbc4beccf75463db4",
1213-
"IPY_MODEL_ef6467eb3a714ea18cb3e0e5ec19e767"
1214-
],
1215-
"layout": "IPY_MODEL_84d146eaa43c47e2b5ffff73cdb2f749"
1216-
}
1217-
},
1218-
"72ab72bbafe94e54a60881ad56820154": {
1219-
"model_module": "@jupyter-widgets/controls",
1220-
"model_module_version": "2.0.0",
1221-
"model_name": "FloatProgressModel",
1222-
"state": {
1223-
"bar_style": "success",
1224-
"layout": "IPY_MODEL_e10589a737b8439fb201e770a77963fe",
1225-
"max": 7,
1226-
"style": "IPY_MODEL_c73ec5713dad4c1985a9e42bc52481d9",
1227-
"value": 7
1228-
}
1229-
},
1230-
"84d146eaa43c47e2b5ffff73cdb2f749": {
1231-
"model_module": "@jupyter-widgets/base",
1232-
"model_module_version": "2.0.0",
1233-
"model_name": "LayoutModel",
1234-
"state": {}
1235-
},
1236-
"8913d1b1cd01434fb1531b355c257463": {
1237-
"model_module": "@jupyter-widgets/controls",
1238-
"model_module_version": "2.0.0",
1239-
"model_name": "HTMLModel",
1240-
"state": {
1241-
"layout": "IPY_MODEL_5689358466d74164982ffd20a4ed930c",
1242-
"style": "IPY_MODEL_0ec49ddfa9f146d2901e94b77949857a",
1243-
"value": "Loading pipeline components...: 100%"
1244-
}
1245-
},
1246-
"8ebe6173889e4fc1a26ebfac700536f6": {
1247-
"model_module": "@jupyter-widgets/output",
1248-
"model_module_version": "1.0.0",
1249-
"model_name": "OutputModel",
1250-
"state": {
1251-
"layout": "IPY_MODEL_2c34394034c84b25874b5201c787f324",
1252-
"outputs": [
1253-
{
1254-
"data": {
1255-
"text/html": "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Applying Weight Compression <span style=\"color: #729c1f; text-decoration-color: #729c1f\">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</span> <span style=\"color: #800080; text-decoration-color: #800080\">100%</span> <span style=\"color: #0068b5; text-decoration-color: #0068b5\">194/194</span> • <span style=\"color: #0068b5; text-decoration-color: #0068b5\">0:00:03</span> • <span style=\"color: #0068b5; text-decoration-color: #0068b5\">0:00:00</span>\n</pre>\n",
1256-
"text/plain": "Applying Weight Compression \u001b[38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[35m100%\u001b[0m \u001b[38;2;0;104;181m194/194\u001b[0m • \u001b[38;2;0;104;181m0:00:03\u001b[0m • \u001b[38;2;0;104;181m0:00:00\u001b[0m\n"
1257-
},
1258-
"metadata": {},
1259-
"output_type": "display_data"
1260-
}
1261-
]
1262-
}
1263-
},
1264-
"92c39ea72a444375adbfd9e55f9d6796": {
1265-
"model_module": "@jupyter-widgets/base",
1266-
"model_module_version": "2.0.0",
1267-
"model_name": "LayoutModel",
1268-
"state": {}
1269-
},
1270-
"a1bce410f46142239253f1ed902321b3": {
1271-
"model_module": "@jupyter-widgets/base",
1272-
"model_module_version": "2.0.0",
1273-
"model_name": "LayoutModel",
1274-
"state": {}
1275-
},
1276-
"abc9d364c43c4e6dbc4beccf75463db4": {
1277-
"model_module": "@jupyter-widgets/controls",
1278-
"model_module_version": "2.0.0",
1279-
"model_name": "FloatProgressModel",
1280-
"state": {
1281-
"bar_style": "success",
1282-
"layout": "IPY_MODEL_c7ac4544b06f40fe983da2ab6363683f",
1283-
"max": 20,
1284-
"style": "IPY_MODEL_597da167ab33442e962a2ae7955073ff",
1285-
"value": 20
1286-
}
1287-
},
1288-
"be6a0171a78a434495b5ab4bfbd7593e": {
1289-
"model_module": "@jupyter-widgets/base",
1290-
"model_module_version": "2.0.0",
1291-
"model_name": "LayoutModel",
1292-
"state": {}
1293-
},
1294-
"c501db72dd89454991a6c61b6260fcb8": {
1295-
"model_module": "@jupyter-widgets/controls",
1296-
"model_module_version": "2.0.0",
1297-
"model_name": "HTMLStyleModel",
1298-
"state": {
1299-
"description_width": "",
1300-
"font_size": null,
1301-
"text_color": null
1302-
}
1303-
},
1304-
"c5a678567a32460da908c1f25d0b78f4": {
1305-
"model_module": "@jupyter-widgets/controls",
1306-
"model_module_version": "2.0.0",
1307-
"model_name": "DescriptionStyleModel",
1308-
"state": {
1309-
"description_width": ""
1310-
}
1311-
},
1312-
"c73ec5713dad4c1985a9e42bc52481d9": {
1313-
"model_module": "@jupyter-widgets/controls",
1314-
"model_module_version": "2.0.0",
1315-
"model_name": "ProgressStyleModel",
1316-
"state": {
1317-
"description_width": ""
1318-
}
1319-
},
1320-
"c7ac4544b06f40fe983da2ab6363683f": {
1321-
"model_module": "@jupyter-widgets/base",
1322-
"model_module_version": "2.0.0",
1323-
"model_name": "LayoutModel",
1324-
"state": {}
1325-
},
1326-
"ca0f21e671ae42f592f9b7d6e77071d1": {
1327-
"model_module": "@jupyter-widgets/controls",
1328-
"model_module_version": "2.0.0",
1329-
"model_name": "HTMLModel",
1330-
"state": {
1331-
"layout": "IPY_MODEL_f833b7aaf6bf4cdaa3d0ddd1e5c0ce62",
1332-
"style": "IPY_MODEL_554e435516ae40cd955f97d31f3e5660",
1333-
"value": "100%"
1334-
}
1335-
},
1336-
"e0c22e96ef5f4933b5a6a004d4628de3": {
1337-
"model_module": "@jupyter-widgets/base",
1338-
"model_module_version": "2.0.0",
1339-
"model_name": "LayoutModel",
1340-
"state": {}
1341-
},
1342-
"e10589a737b8439fb201e770a77963fe": {
1343-
"model_module": "@jupyter-widgets/base",
1344-
"model_module_version": "2.0.0",
1345-
"model_name": "LayoutModel",
1346-
"state": {}
1347-
},
1348-
"edfb77550e40401bb6fc5a8fb636067d": {
1349-
"model_module": "@jupyter-widgets/controls",
1350-
"model_module_version": "2.0.0",
1351-
"model_name": "HTMLModel",
1352-
"state": {
1353-
"layout": "IPY_MODEL_be6a0171a78a434495b5ab4bfbd7593e",
1354-
"style": "IPY_MODEL_c501db72dd89454991a6c61b6260fcb8",
1355-
"value": " 7/7 [00:00&lt;00:00,  8.05it/s]"
1356-
}
1357-
},
1358-
"ef6467eb3a714ea18cb3e0e5ec19e767": {
1359-
"model_module": "@jupyter-widgets/controls",
1360-
"model_module_version": "2.0.0",
1361-
"model_name": "HTMLModel",
1362-
"state": {
1363-
"layout": "IPY_MODEL_92c39ea72a444375adbfd9e55f9d6796",
1364-
"style": "IPY_MODEL_0467721282ce4fafa2e51247a212f668",
1365-
"value": " 20/20 [03:13&lt;00:00,  9.63s/it]"
1366-
}
1367-
},
1368-
"f833b7aaf6bf4cdaa3d0ddd1e5c0ce62": {
1369-
"model_module": "@jupyter-widgets/base",
1370-
"model_module_version": "2.0.0",
1371-
"model_name": "LayoutModel",
1372-
"state": {}
1373-
}
1374-
},
1108+
"state": {},
13751109
"version_major": 2,
13761110
"version_minor": 0
13771111
}

0 commit comments

Comments
 (0)