Spaces:
Runtime error
Runtime error
Bbmyy
commited on
Commit
•
a45f50c
1
Parent(s):
f3c508d
Add MIGC and ReCo
Browse files- .gradio/certificate.pem +31 -0
- ksort-logs/vote_log/gr_web_image_editing.log +0 -0
- ksort-logs/vote_log/gr_web_image_editing_multi.log +0 -0
- ksort-logs/vote_log/gr_web_image_generation.log +811 -0
- ksort-logs/vote_log/gr_web_image_generation_multi.log +6 -0
- ksort-logs/vote_log/gr_web_video_generation.log +0 -0
- ksort-logs/vote_log/gr_web_video_generation_multi.log +0 -0
- model/__pycache__/__init__.cpython-312.pyc +0 -0
- model/__pycache__/model_manager.cpython-310.pyc +0 -0
- model/__pycache__/model_registry.cpython-312.pyc +0 -0
- model/model_manager.py +33 -38
- model/models/__init__.py +5 -0
- model/models/__pycache__/__init__.cpython-310.pyc +0 -0
- model/models/__pycache__/huggingface_models.cpython-310.pyc +0 -0
- model/models/__pycache__/local_models.cpython-310.pyc +0 -0
- model/models/huggingface_models.py +4 -0
- model/models/local_models.py +8 -0
- model_bbox/GeoDiffusion +1 -0
- model_bbox/MIGC +1 -0
- model_bbox/ReCo/__pycache__/inference.cpython-310.pyc +0 -0
- model_bbox/ReCo/inference.py +110 -0
- output.png +0 -0
- serve/__pycache__/__init__.cpython-312.pyc +0 -0
- serve/__pycache__/constants.cpython-312.pyc +0 -0
- serve/__pycache__/gradio_web.cpython-312.pyc +0 -0
- serve/__pycache__/gradio_web_bbox.cpython-310.pyc +0 -0
- serve/__pycache__/utils.cpython-310.pyc +0 -0
- serve/__pycache__/utils.cpython-312.pyc +0 -0
- serve/__pycache__/vote_utils.cpython-310.pyc +0 -0
- serve/__pycache__/vote_utils.cpython-312.pyc +0 -0
- serve/gradio_web_bbox.py +18 -2
- serve/utils.py +3 -3
- serve/vote_utils.py +44 -0
- tmp.py +5 -0
.gradio/certificate.pem
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
-----BEGIN CERTIFICATE-----
|
2 |
+
MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAw
|
3 |
+
TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh
|
4 |
+
cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTEwNDM4
|
5 |
+
WhcNMzUwNjA0MTEwNDM4WjBPMQswCQYDVQQGEwJVUzEpMCcGA1UEChMgSW50ZXJu
|
6 |
+
ZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMTDElTUkcgUm9vdCBY
|
7 |
+
MTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAK3oJHP0FDfzm54rVygc
|
8 |
+
h77ct984kIxuPOZXoHj3dcKi/vVqbvYATyjb3miGbESTtrFj/RQSa78f0uoxmyF+
|
9 |
+
0TM8ukj13Xnfs7j/EvEhmkvBioZxaUpmZmyPfjxwv60pIgbz5MDmgK7iS4+3mX6U
|
10 |
+
A5/TR5d8mUgjU+g4rk8Kb4Mu0UlXjIB0ttov0DiNewNwIRt18jA8+o+u3dpjq+sW
|
11 |
+
T8KOEUt+zwvo/7V3LvSye0rgTBIlDHCNAymg4VMk7BPZ7hm/ELNKjD+Jo2FR3qyH
|
12 |
+
B5T0Y3HsLuJvW5iB4YlcNHlsdu87kGJ55tukmi8mxdAQ4Q7e2RCOFvu396j3x+UC
|
13 |
+
B5iPNgiV5+I3lg02dZ77DnKxHZu8A/lJBdiB3QW0KtZB6awBdpUKD9jf1b0SHzUv
|
14 |
+
KBds0pjBqAlkd25HN7rOrFleaJ1/ctaJxQZBKT5ZPt0m9STJEadao0xAH0ahmbWn
|
15 |
+
OlFuhjuefXKnEgV4We0+UXgVCwOPjdAvBbI+e0ocS3MFEvzG6uBQE3xDk3SzynTn
|
16 |
+
jh8BCNAw1FtxNrQHusEwMFxIt4I7mKZ9YIqioymCzLq9gwQbooMDQaHWBfEbwrbw
|
17 |
+
qHyGO0aoSCqI3Haadr8faqU9GY/rOPNk3sgrDQoo//fb4hVC1CLQJ13hef4Y53CI
|
18 |
+
rU7m2Ys6xt0nUW7/vGT1M0NPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNV
|
19 |
+
HRMBAf8EBTADAQH/MB0GA1UdDgQWBBR5tFnme7bl5AFzgAiIyBpY9umbbjANBgkq
|
20 |
+
hkiG9w0BAQsFAAOCAgEAVR9YqbyyqFDQDLHYGmkgJykIrGF1XIpu+ILlaS/V9lZL
|
21 |
+
ubhzEFnTIZd+50xx+7LSYK05qAvqFyFWhfFQDlnrzuBZ6brJFe+GnY+EgPbk6ZGQ
|
22 |
+
3BebYhtF8GaV0nxvwuo77x/Py9auJ/GpsMiu/X1+mvoiBOv/2X/qkSsisRcOj/KK
|
23 |
+
NFtY2PwByVS5uCbMiogziUwthDyC3+6WVwW6LLv3xLfHTjuCvjHIInNzktHCgKQ5
|
24 |
+
ORAzI4JMPJ+GslWYHb4phowim57iaztXOoJwTdwJx4nLCgdNbOhdjsnvzqvHu7Ur
|
25 |
+
TkXWStAmzOVyyghqpZXjFaH3pO3JLF+l+/+sKAIuvtd7u+Nxe5AW0wdeRlN8NwdC
|
26 |
+
jNPElpzVmbUq4JUagEiuTDkHzsxHpFKVK7q4+63SM1N95R1NbdWhscdCb+ZAJzVc
|
27 |
+
oyi3B43njTOQ5yOf+1CceWxG1bQVs5ZufpsMljq4Ui0/1lvh+wjChP4kqKOJ2qxq
|
28 |
+
4RgqsahDYVvTH9w7jXbyLeiNdd8XM2w9U/t7y0Ff/9yi0GE44Za4rF2LN9d11TPA
|
29 |
+
mRGunUHBcnWEvgJBQl9nJEiU0Zsnvgc/ubhPgXRR4Xq37Z0j4r7g1SgEEzwxA57d
|
30 |
+
emyPxgcYxn/eR44/KJ4EBs+lVDR3veyJm+kXQ99b21/+jh5Xos1AnX5iItreGCc=
|
31 |
+
-----END CERTIFICATE-----
|
ksort-logs/vote_log/gr_web_image_editing.log
ADDED
File without changes
|
ksort-logs/vote_log/gr_web_image_editing_multi.log
ADDED
File without changes
|
ksort-logs/vote_log/gr_web_image_generation.log
ADDED
@@ -0,0 +1,811 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
2024-12-24 12:54:21 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/diffusers/models/transformers/transformer_2d.py:34: FutureWarning: `Transformer2DModelOutput` is deprecated and will be removed in version 1.0.0. Importing `Transformer2DModelOutput` from `diffusers.models.transformer_2d` is deprecated and this will be removed in a future version. Please use `from diffusers.models.modeling_outputs import Transformer2DModelOutput`, instead.
|
2 |
+
2024-12-24 12:54:21 | ERROR | stderr | deprecate("Transformer2DModelOutput", "1.0.0", deprecation_message)
|
3 |
+
2024-12-24 12:54:24 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py:1003: UserWarning: Expected 12 arguments for function functools.partial(<function generate_igm_annoy at 0x7f5da264b1c0>, <bound method ModelManager.generate_image_b2i_parallel_anony of <model.model_manager.ModelManager object at 0x7f5febc53d60>>), received 11.
|
4 |
+
2024-12-24 12:54:24 | ERROR | stderr | warnings.warn(
|
5 |
+
2024-12-24 12:54:24 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py:1007: UserWarning: Expected at least 12 arguments for function functools.partial(<function generate_igm_annoy at 0x7f5da264b1c0>, <bound method ModelManager.generate_image_b2i_parallel_anony of <model.model_manager.ModelManager object at 0x7f5febc53d60>>), received 11.
|
6 |
+
2024-12-24 12:54:24 | ERROR | stderr | warnings.warn(
|
7 |
+
2024-12-24 12:54:24 | INFO | stdout | * Running on local URL: http://127.0.0.1:7860
|
8 |
+
2024-12-24 12:54:52 | INFO | stdout | background.shape (600, 600, 4)
|
9 |
+
2024-12-24 12:54:52 | INFO | stdout | len(layers) 1
|
10 |
+
2024-12-24 12:54:52 | INFO | stdout | composite.shape (600, 600, 4)
|
11 |
+
2024-12-24 12:54:55 | INFO | stdout | background.shape (600, 600, 4)
|
12 |
+
2024-12-24 12:54:55 | INFO | stdout | len(layers) 1
|
13 |
+
2024-12-24 12:54:55 | INFO | stdout | composite.shape (600, 600, 4)
|
14 |
+
2024-12-24 12:54:56 | INFO | stdout | background.shape (600, 600, 4)
|
15 |
+
2024-12-24 12:54:56 | INFO | stdout | len(layers) 1
|
16 |
+
2024-12-24 12:54:56 | INFO | stdout | composite.shape (600, 600, 4)
|
17 |
+
2024-12-24 12:54:58 | INFO | stdout | background.shape (600, 600, 4)
|
18 |
+
2024-12-24 12:54:58 | INFO | stdout | len(layers) 1
|
19 |
+
2024-12-24 12:54:58 | INFO | stdout | composite.shape (600, 600, 4)
|
20 |
+
2024-12-24 12:55:00 | INFO | stdout |
|
21 |
+
2024-12-24 12:55:00 | INFO | stdout | Could not create share link. Missing file: /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/frpc_linux_amd64_v0.3.
|
22 |
+
2024-12-24 12:55:00 | INFO | stdout |
|
23 |
+
2024-12-24 12:55:00 | INFO | stdout | Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps:
|
24 |
+
2024-12-24 12:55:00 | INFO | stdout |
|
25 |
+
2024-12-24 12:55:00 | INFO | stdout | 1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.3/frpc_linux_amd64
|
26 |
+
2024-12-24 12:55:00 | INFO | stdout | 2. Rename the downloaded file to: frpc_linux_amd64_v0.3
|
27 |
+
2024-12-24 12:55:00 | INFO | stdout | 3. Move the file to this location: /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio
|
28 |
+
2024-12-24 12:55:04 | INFO | stdout | background.shape (600, 600, 4)
|
29 |
+
2024-12-24 12:55:04 | INFO | stdout | len(layers) 1
|
30 |
+
2024-12-24 12:55:04 | INFO | stdout | composite.shape (600, 600, 4)
|
31 |
+
2024-12-24 12:55:06 | INFO | stdout | background.shape (600, 600, 4)
|
32 |
+
2024-12-24 12:55:06 | INFO | stdout | len(layers) 1
|
33 |
+
2024-12-24 12:55:06 | INFO | stdout | composite.shape (600, 600, 4)
|
34 |
+
2024-12-24 12:55:09 | INFO | stdout | background.shape (600, 600, 4)
|
35 |
+
2024-12-24 12:55:09 | INFO | stdout | len(layers) 1
|
36 |
+
2024-12-24 12:55:09 | INFO | stdout | composite.shape (600, 600, 4)
|
37 |
+
2024-12-24 12:55:14 | INFO | stdout | background.shape (600, 600, 4)
|
38 |
+
2024-12-24 12:55:14 | INFO | stdout | len(layers) 1
|
39 |
+
2024-12-24 12:55:14 | INFO | stdout | composite.shape (600, 600, 4)
|
40 |
+
2024-12-24 12:55:21 | INFO | stdout | background.shape (600, 600, 4)
|
41 |
+
2024-12-24 12:55:21 | INFO | stdout | len(layers) 1
|
42 |
+
2024-12-24 12:55:21 | INFO | stdout | composite.shape (600, 600, 4)
|
43 |
+
2024-12-24 12:55:21 | INFO | stdout | background.shape (600, 600, 4)
|
44 |
+
2024-12-24 12:55:21 | INFO | stdout | len(layers) 1
|
45 |
+
2024-12-24 12:55:21 | INFO | stdout | composite.shape (600, 600, 4)
|
46 |
+
2024-12-24 12:55:25 | INFO | stdout | background.shape (600, 600, 4)
|
47 |
+
2024-12-24 12:55:25 | INFO | stdout | len(layers) 1
|
48 |
+
2024-12-24 12:55:25 | INFO | stdout | composite.shape (600, 600, 4)
|
49 |
+
2024-12-24 12:55:26 | INFO | stdout | background.shape (600, 600, 4)
|
50 |
+
2024-12-24 12:55:26 | INFO | stdout | len(layers) 1
|
51 |
+
2024-12-24 12:55:26 | INFO | stdout | composite.shape (600, 600, 4)
|
52 |
+
2024-12-24 12:55:27 | INFO | stdout | background.shape (600, 600, 4)
|
53 |
+
2024-12-24 12:55:27 | INFO | stdout | len(layers) 1
|
54 |
+
2024-12-24 12:55:27 | INFO | stdout | composite.shape (600, 600, 4)
|
55 |
+
2024-12-24 12:55:29 | INFO | stdout | background.shape (600, 600, 4)
|
56 |
+
2024-12-24 12:55:29 | INFO | stdout | len(layers) 1
|
57 |
+
2024-12-24 12:55:29 | INFO | stdout | composite.shape (600, 600, 4)
|
58 |
+
2024-12-24 12:55:31 | INFO | stdout | background.shape (600, 600, 4)
|
59 |
+
2024-12-24 12:55:31 | INFO | stdout | len(layers) 1
|
60 |
+
2024-12-24 12:55:31 | INFO | stdout | composite.shape (600, 600, 4)
|
61 |
+
2024-12-24 12:55:35 | INFO | stdout | background.shape (600, 600, 4)
|
62 |
+
2024-12-24 12:55:35 | INFO | stdout | len(layers) 1
|
63 |
+
2024-12-24 12:55:35 | INFO | stdout | composite.shape (600, 600, 4)
|
64 |
+
2024-12-24 12:55:41 | INFO | stdout | background.shape (600, 600, 4)
|
65 |
+
2024-12-24 12:55:41 | INFO | stdout | len(layers) 1
|
66 |
+
2024-12-24 12:55:41 | INFO | stdout | composite.shape (600, 600, 4)
|
67 |
+
2024-12-24 12:55:47 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py:1780: UserWarning: A function (disable_order_buttons) returned too many output values (needed: 3, returned: 5). Ignoring extra values.
|
68 |
+
2024-12-24 12:55:47 | ERROR | stderr | Output components:
|
69 |
+
2024-12-24 12:55:47 | ERROR | stderr | [textbox, button, button]
|
70 |
+
2024-12-24 12:55:47 | ERROR | stderr | Output values returned:
|
71 |
+
2024-12-24 12:55:47 | ERROR | stderr | [{'interactive': False, '__type__': 'update'}, {'interactive': False, '__type__': 'update'}, {'interactive': False, '__type__': 'update'}, {'interactive': False, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}]
|
72 |
+
2024-12-24 12:55:47 | ERROR | stderr | warnings.warn(
|
73 |
+
2024-12-24 12:55:47 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/helpers.py:968: UserWarning: Unexpected argument. Filling with None.
|
74 |
+
2024-12-24 12:55:47 | ERROR | stderr | warnings.warn("Unexpected argument. Filling with None.")
|
75 |
+
2024-12-24 12:55:47 | ERROR | stderr | Traceback (most recent call last):
|
76 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/queueing.py", line 625, in process_events
|
77 |
+
2024-12-24 12:55:47 | ERROR | stderr | response = await route_utils.call_process_api(
|
78 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
|
79 |
+
2024-12-24 12:55:47 | ERROR | stderr | output = await app.get_blocks().process_api(
|
80 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2047, in process_api
|
81 |
+
2024-12-24 12:55:47 | ERROR | stderr | result = await self.call_function(
|
82 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 1606, in call_function
|
83 |
+
2024-12-24 12:55:47 | ERROR | stderr | prediction = await utils.async_iteration(iterator)
|
84 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 714, in async_iteration
|
85 |
+
2024-12-24 12:55:47 | ERROR | stderr | return await anext(iterator)
|
86 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 708, in __anext__
|
87 |
+
2024-12-24 12:55:47 | ERROR | stderr | return await anyio.to_thread.run_sync(
|
88 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
|
89 |
+
2024-12-24 12:55:47 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread(
|
90 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2505, in run_sync_in_worker_thread
|
91 |
+
2024-12-24 12:55:47 | ERROR | stderr | return await future
|
92 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1005, in run
|
93 |
+
2024-12-24 12:55:47 | ERROR | stderr | result = context.run(func, *args)
|
94 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 691, in run_sync_iterator_async
|
95 |
+
2024-12-24 12:55:47 | ERROR | stderr | return next(iterator)
|
96 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 852, in gen_wrapper
|
97 |
+
2024-12-24 12:55:47 | ERROR | stderr | response = next(iterator)
|
98 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/serve/vote_utils.py", line 793, in generate_igm_annoy
|
99 |
+
2024-12-24 12:55:47 | ERROR | stderr | = gen_func(text, grounding_instruction, out_imagebox, model_name0, model_name1, model_name2, model_name3)
|
100 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/model_manager.py", line 94, in generate_image_b2i_parallel_anony
|
101 |
+
2024-12-24 12:55:47 | ERROR | stderr | model_ids = matchmaker(num_players=len(self.model_ig_list), not_run=not_run)
|
102 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/matchmaker.py", line 95, in matchmaker
|
103 |
+
2024-12-24 12:55:47 | ERROR | stderr | ratings, comparison_counts, total_comparisons = load_json_via_sftp()
|
104 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/matchmaker.py", line 79, in load_json_via_sftp
|
105 |
+
2024-12-24 12:55:47 | ERROR | stderr | create_ssh_matchmaker_client(SSH_SERVER, SSH_PORT, SSH_USER, SSH_PASSWORD)
|
106 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/matchmaker.py", line 21, in create_ssh_matchmaker_client
|
107 |
+
2024-12-24 12:55:47 | ERROR | stderr | ssh_matchmaker_client.connect(server, port, user, password)
|
108 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/paramiko/client.py", line 377, in connect
|
109 |
+
2024-12-24 12:55:47 | ERROR | stderr | to_try = list(self._families_and_addresses(hostname, port))
|
110 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/paramiko/client.py", line 202, in _families_and_addresses
|
111 |
+
2024-12-24 12:55:47 | ERROR | stderr | addrinfos = socket.getaddrinfo(
|
112 |
+
2024-12-24 12:55:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/socket.py", line 955, in getaddrinfo
|
113 |
+
2024-12-24 12:55:47 | ERROR | stderr | for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
|
114 |
+
2024-12-24 12:55:47 | ERROR | stderr | socket.gaierror: [Errno -8] Servname not supported for ai_socktype
|
115 |
+
2024-12-24 12:55:47 | INFO | stdout | Rank
|
116 |
+
2024-12-24 13:17:15 | INFO | stdout | Keyboard interruption in main thread... closing server.
|
117 |
+
2024-12-24 13:17:15 | ERROR | stderr | Traceback (most recent call last):
|
118 |
+
2024-12-24 13:17:15 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2869, in block_thread
|
119 |
+
2024-12-24 13:17:15 | ERROR | stderr | time.sleep(0.1)
|
120 |
+
2024-12-24 13:17:15 | ERROR | stderr | KeyboardInterrupt
|
121 |
+
2024-12-24 13:17:15 | ERROR | stderr |
|
122 |
+
2024-12-24 13:17:15 | ERROR | stderr | During handling of the above exception, another exception occurred:
|
123 |
+
2024-12-24 13:17:15 | ERROR | stderr |
|
124 |
+
2024-12-24 13:17:15 | ERROR | stderr | Traceback (most recent call last):
|
125 |
+
2024-12-24 13:17:15 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/app.py", line 88, in <module>
|
126 |
+
2024-12-24 13:17:15 | ERROR | stderr | demo.queue(max_size=20).launch(server_port=server_port, root_path=ROOT_PATH, share=True)
|
127 |
+
2024-12-24 13:17:15 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2774, in launch
|
128 |
+
2024-12-24 13:17:15 | ERROR | stderr | self.block_thread()
|
129 |
+
2024-12-24 13:17:15 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2873, in block_thread
|
130 |
+
2024-12-24 13:17:15 | ERROR | stderr | self.server.close()
|
131 |
+
2024-12-24 13:17:15 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/http_server.py", line 69, in close
|
132 |
+
2024-12-24 13:17:15 | ERROR | stderr | self.thread.join(timeout=5)
|
133 |
+
2024-12-24 13:17:15 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/threading.py", line 1100, in join
|
134 |
+
2024-12-24 13:17:15 | ERROR | stderr | self._wait_for_tstate_lock(timeout=max(timeout, 0))
|
135 |
+
2024-12-24 13:17:15 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/threading.py", line 1116, in _wait_for_tstate_lock
|
136 |
+
2024-12-24 13:17:15 | ERROR | stderr | if lock.acquire(block, timeout):
|
137 |
+
2024-12-24 13:17:15 | ERROR | stderr | KeyboardInterrupt
|
138 |
+
2024-12-24 13:17:23 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/diffusers/models/transformers/transformer_2d.py:34: FutureWarning: `Transformer2DModelOutput` is deprecated and will be removed in version 1.0.0. Importing `Transformer2DModelOutput` from `diffusers.models.transformer_2d` is deprecated and this will be removed in a future version. Please use `from diffusers.models.modeling_outputs import Transformer2DModelOutput`, instead.
|
139 |
+
2024-12-24 13:17:23 | ERROR | stderr | deprecate("Transformer2DModelOutput", "1.0.0", deprecation_message)
|
140 |
+
2024-12-24 13:17:25 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py:1003: UserWarning: Expected 10 arguments for function functools.partial(<function generate_igm_annoy at 0x7f3b81f730a0>, <bound method ModelManager.generate_image_b2i_parallel_anony of <model.model_manager.ModelManager object at 0x7f3dcb5d7d60>>), received 11.
|
141 |
+
2024-12-24 13:17:25 | ERROR | stderr | warnings.warn(
|
142 |
+
2024-12-24 13:17:25 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py:1011: UserWarning: Expected maximum 10 arguments for function functools.partial(<function generate_igm_annoy at 0x7f3b81f730a0>, <bound method ModelManager.generate_image_b2i_parallel_anony of <model.model_manager.ModelManager object at 0x7f3dcb5d7d60>>), received 11.
|
143 |
+
2024-12-24 13:17:25 | ERROR | stderr | warnings.warn(
|
144 |
+
2024-12-24 13:17:25 | INFO | stdout | * Running on local URL: http://127.0.0.1:7860
|
145 |
+
2024-12-24 13:17:40 | INFO | stdout | background.shape (600, 600, 4)
|
146 |
+
2024-12-24 13:17:40 | INFO | stdout | len(layers) 1
|
147 |
+
2024-12-24 13:17:40 | INFO | stdout | composite.shape (600, 600, 4)
|
148 |
+
2024-12-24 13:17:43 | INFO | stdout | background.shape (600, 600, 4)
|
149 |
+
2024-12-24 13:17:43 | INFO | stdout | len(layers) 1
|
150 |
+
2024-12-24 13:17:43 | INFO | stdout | composite.shape (600, 600, 4)
|
151 |
+
2024-12-24 13:17:47 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py:1780: UserWarning: A function (disable_order_buttons) returned too many output values (needed: 3, returned: 5). Ignoring extra values.
|
152 |
+
2024-12-24 13:17:47 | ERROR | stderr | Output components:
|
153 |
+
2024-12-24 13:17:47 | ERROR | stderr | [textbox, button, button]
|
154 |
+
2024-12-24 13:17:47 | ERROR | stderr | Output values returned:
|
155 |
+
2024-12-24 13:17:47 | ERROR | stderr | [{'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}]
|
156 |
+
2024-12-24 13:17:47 | ERROR | stderr | warnings.warn(
|
157 |
+
2024-12-24 13:17:47 | ERROR | stderr | Traceback (most recent call last):
|
158 |
+
2024-12-24 13:17:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/queueing.py", line 625, in process_events
|
159 |
+
2024-12-24 13:17:47 | ERROR | stderr | response = await route_utils.call_process_api(
|
160 |
+
2024-12-24 13:17:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
|
161 |
+
2024-12-24 13:17:47 | ERROR | stderr | output = await app.get_blocks().process_api(
|
162 |
+
2024-12-24 13:17:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2047, in process_api
|
163 |
+
2024-12-24 13:17:47 | ERROR | stderr | result = await self.call_function(
|
164 |
+
2024-12-24 13:17:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 1606, in call_function
|
165 |
+
2024-12-24 13:17:47 | ERROR | stderr | prediction = await utils.async_iteration(iterator)
|
166 |
+
2024-12-24 13:17:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 714, in async_iteration
|
167 |
+
2024-12-24 13:17:47 | ERROR | stderr | return await anext(iterator)
|
168 |
+
2024-12-24 13:17:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 708, in __anext__
|
169 |
+
2024-12-24 13:17:47 | ERROR | stderr | return await anyio.to_thread.run_sync(
|
170 |
+
2024-12-24 13:17:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
|
171 |
+
2024-12-24 13:17:47 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread(
|
172 |
+
2024-12-24 13:17:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2505, in run_sync_in_worker_thread
|
173 |
+
2024-12-24 13:17:47 | ERROR | stderr | return await future
|
174 |
+
2024-12-24 13:17:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1005, in run
|
175 |
+
2024-12-24 13:17:47 | ERROR | stderr | result = context.run(func, *args)
|
176 |
+
2024-12-24 13:17:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 691, in run_sync_iterator_async
|
177 |
+
2024-12-24 13:17:47 | ERROR | stderr | return next(iterator)
|
178 |
+
2024-12-24 13:17:47 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 847, in gen_wrapper
|
179 |
+
2024-12-24 13:17:47 | ERROR | stderr | iterator = f(*args, **kwargs)
|
180 |
+
2024-12-24 13:17:47 | ERROR | stderr | TypeError: generate_igm_annoy() takes 11 positional arguments but 12 were given
|
181 |
+
2024-12-24 13:17:48 | INFO | stdout | Rank
|
182 |
+
2024-12-24 13:17:56 | INFO | stdout |
|
183 |
+
2024-12-24 13:17:56 | INFO | stdout | Could not create share link. Missing file: /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/frpc_linux_amd64_v0.3.
|
184 |
+
2024-12-24 13:17:56 | INFO | stdout |
|
185 |
+
2024-12-24 13:17:56 | INFO | stdout | Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps:
|
186 |
+
2024-12-24 13:17:56 | INFO | stdout |
|
187 |
+
2024-12-24 13:17:56 | INFO | stdout | 1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.3/frpc_linux_amd64
|
188 |
+
2024-12-24 13:17:56 | INFO | stdout | 2. Rename the downloaded file to: frpc_linux_amd64_v0.3
|
189 |
+
2024-12-24 13:17:56 | INFO | stdout | 3. Move the file to this location: /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio
|
190 |
+
2024-12-24 13:18:00 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py:1780: UserWarning: A function (disable_order_buttons) returned too many output values (needed: 3, returned: 5). Ignoring extra values.
|
191 |
+
2024-12-24 13:18:00 | ERROR | stderr | Output components:
|
192 |
+
2024-12-24 13:18:00 | ERROR | stderr | [textbox, button, button]
|
193 |
+
2024-12-24 13:18:00 | ERROR | stderr | Output values returned:
|
194 |
+
2024-12-24 13:18:00 | ERROR | stderr | [{'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}]
|
195 |
+
2024-12-24 13:18:00 | ERROR | stderr | warnings.warn(
|
196 |
+
2024-12-24 13:18:00 | ERROR | stderr | Traceback (most recent call last):
|
197 |
+
2024-12-24 13:18:00 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/queueing.py", line 625, in process_events
|
198 |
+
2024-12-24 13:18:00 | ERROR | stderr | response = await route_utils.call_process_api(
|
199 |
+
2024-12-24 13:18:00 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
|
200 |
+
2024-12-24 13:18:00 | ERROR | stderr | output = await app.get_blocks().process_api(
|
201 |
+
2024-12-24 13:18:00 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2047, in process_api
|
202 |
+
2024-12-24 13:18:00 | ERROR | stderr | result = await self.call_function(
|
203 |
+
2024-12-24 13:18:00 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 1606, in call_function
|
204 |
+
2024-12-24 13:18:00 | ERROR | stderr | prediction = await utils.async_iteration(iterator)
|
205 |
+
2024-12-24 13:18:00 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 714, in async_iteration
|
206 |
+
2024-12-24 13:18:00 | ERROR | stderr | return await anext(iterator)
|
207 |
+
2024-12-24 13:18:00 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 708, in __anext__
|
208 |
+
2024-12-24 13:18:00 | ERROR | stderr | return await anyio.to_thread.run_sync(
|
209 |
+
2024-12-24 13:18:00 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
|
210 |
+
2024-12-24 13:18:00 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread(
|
211 |
+
2024-12-24 13:18:00 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2505, in run_sync_in_worker_thread
|
212 |
+
2024-12-24 13:18:00 | ERROR | stderr | return await future
|
213 |
+
2024-12-24 13:18:00 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1005, in run
|
214 |
+
2024-12-24 13:18:00 | ERROR | stderr | result = context.run(func, *args)
|
215 |
+
2024-12-24 13:18:00 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 691, in run_sync_iterator_async
|
216 |
+
2024-12-24 13:18:00 | ERROR | stderr | return next(iterator)
|
217 |
+
2024-12-24 13:18:00 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 847, in gen_wrapper
|
218 |
+
2024-12-24 13:18:00 | ERROR | stderr | iterator = f(*args, **kwargs)
|
219 |
+
2024-12-24 13:18:00 | ERROR | stderr | TypeError: generate_igm_annoy() takes 11 positional arguments but 12 were given
|
220 |
+
2024-12-24 13:18:00 | INFO | stdout | Rank
|
221 |
+
2024-12-24 13:18:01 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py:1780: UserWarning: A function (disable_order_buttons) returned too many output values (needed: 3, returned: 5). Ignoring extra values.
|
222 |
+
2024-12-24 13:18:01 | ERROR | stderr | Output components:
|
223 |
+
2024-12-24 13:18:01 | ERROR | stderr | [textbox, button, button]
|
224 |
+
2024-12-24 13:18:01 | ERROR | stderr | Output values returned:
|
225 |
+
2024-12-24 13:18:01 | ERROR | stderr | [{'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}]
|
226 |
+
2024-12-24 13:18:01 | ERROR | stderr | warnings.warn(
|
227 |
+
2024-12-24 13:18:01 | ERROR | stderr | Traceback (most recent call last):
|
228 |
+
2024-12-24 13:18:01 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/queueing.py", line 625, in process_events
|
229 |
+
2024-12-24 13:18:01 | ERROR | stderr | response = await route_utils.call_process_api(
|
230 |
+
2024-12-24 13:18:01 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
|
231 |
+
2024-12-24 13:18:01 | ERROR | stderr | output = await app.get_blocks().process_api(
|
232 |
+
2024-12-24 13:18:01 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2047, in process_api
|
233 |
+
2024-12-24 13:18:01 | ERROR | stderr | result = await self.call_function(
|
234 |
+
2024-12-24 13:18:01 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 1606, in call_function
|
235 |
+
2024-12-24 13:18:01 | ERROR | stderr | prediction = await utils.async_iteration(iterator)
|
236 |
+
2024-12-24 13:18:01 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 714, in async_iteration
|
237 |
+
2024-12-24 13:18:01 | ERROR | stderr | return await anext(iterator)
|
238 |
+
2024-12-24 13:18:01 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 708, in __anext__
|
239 |
+
2024-12-24 13:18:01 | ERROR | stderr | return await anyio.to_thread.run_sync(
|
240 |
+
2024-12-24 13:18:01 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
|
241 |
+
2024-12-24 13:18:01 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread(
|
242 |
+
2024-12-24 13:18:01 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2505, in run_sync_in_worker_thread
|
243 |
+
2024-12-24 13:18:01 | ERROR | stderr | return await future
|
244 |
+
2024-12-24 13:18:01 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1005, in run
|
245 |
+
2024-12-24 13:18:01 | ERROR | stderr | result = context.run(func, *args)
|
246 |
+
2024-12-24 13:18:01 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 691, in run_sync_iterator_async
|
247 |
+
2024-12-24 13:18:01 | ERROR | stderr | return next(iterator)
|
248 |
+
2024-12-24 13:18:01 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 847, in gen_wrapper
|
249 |
+
2024-12-24 13:18:01 | ERROR | stderr | iterator = f(*args, **kwargs)
|
250 |
+
2024-12-24 13:18:01 | ERROR | stderr | TypeError: generate_igm_annoy() takes 11 positional arguments but 12 were given
|
251 |
+
2024-12-24 13:18:01 | INFO | stdout | Rank
|
252 |
+
2024-12-24 13:32:32 | INFO | stdout | Keyboard interruption in main thread... closing server.
|
253 |
+
2024-12-24 13:32:32 | ERROR | stderr | Traceback (most recent call last):
|
254 |
+
2024-12-24 13:32:32 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2869, in block_thread
|
255 |
+
2024-12-24 13:32:32 | ERROR | stderr | time.sleep(0.1)
|
256 |
+
2024-12-24 13:32:32 | ERROR | stderr | KeyboardInterrupt
|
257 |
+
2024-12-24 13:32:32 | ERROR | stderr |
|
258 |
+
2024-12-24 13:32:32 | ERROR | stderr | During handling of the above exception, another exception occurred:
|
259 |
+
2024-12-24 13:32:32 | ERROR | stderr |
|
260 |
+
2024-12-24 13:32:32 | ERROR | stderr | Traceback (most recent call last):
|
261 |
+
2024-12-24 13:32:32 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/app.py", line 88, in <module>
|
262 |
+
2024-12-24 13:32:32 | ERROR | stderr | demo.queue(max_size=20).launch(server_port=server_port, root_path=ROOT_PATH, share=True)
|
263 |
+
2024-12-24 13:32:32 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2774, in launch
|
264 |
+
2024-12-24 13:32:32 | ERROR | stderr | self.block_thread()
|
265 |
+
2024-12-24 13:32:32 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2873, in block_thread
|
266 |
+
2024-12-24 13:32:32 | ERROR | stderr | self.server.close()
|
267 |
+
2024-12-24 13:32:32 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/http_server.py", line 69, in close
|
268 |
+
2024-12-24 13:32:32 | ERROR | stderr | self.thread.join(timeout=5)
|
269 |
+
2024-12-24 13:32:32 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/threading.py", line 1100, in join
|
270 |
+
2024-12-24 13:32:32 | ERROR | stderr | self._wait_for_tstate_lock(timeout=max(timeout, 0))
|
271 |
+
2024-12-24 13:32:32 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/threading.py", line 1116, in _wait_for_tstate_lock
|
272 |
+
2024-12-24 13:32:32 | ERROR | stderr | if lock.acquire(block, timeout):
|
273 |
+
2024-12-24 13:32:32 | ERROR | stderr | KeyboardInterrupt
|
274 |
+
2024-12-24 13:32:52 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/diffusers/models/transformers/transformer_2d.py:34: FutureWarning: `Transformer2DModelOutput` is deprecated and will be removed in version 1.0.0. Importing `Transformer2DModelOutput` from `diffusers.models.transformer_2d` is deprecated and this will be removed in a future version. Please use `from diffusers.models.modeling_outputs import Transformer2DModelOutput`, instead.
|
275 |
+
2024-12-24 13:32:52 | ERROR | stderr | deprecate("Transformer2DModelOutput", "1.0.0", deprecation_message)
|
276 |
+
2024-12-24 13:32:54 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py:1003: UserWarning: Expected 12 arguments for function functools.partial(<function generate_b2i_annoy at 0x7f3f2c4731c0>, <bound method ModelManager.generate_image_b2i_parallel_anony of <model.model_manager.ModelManager object at 0x7f3da2b87970>>), received 11.
|
277 |
+
2024-12-24 13:32:54 | ERROR | stderr | warnings.warn(
|
278 |
+
2024-12-24 13:32:54 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py:1007: UserWarning: Expected at least 12 arguments for function functools.partial(<function generate_b2i_annoy at 0x7f3f2c4731c0>, <bound method ModelManager.generate_image_b2i_parallel_anony of <model.model_manager.ModelManager object at 0x7f3da2b87970>>), received 11.
|
279 |
+
2024-12-24 13:32:54 | ERROR | stderr | warnings.warn(
|
280 |
+
2024-12-24 13:32:54 | INFO | stdout | * Running on local URL: http://127.0.0.1:7860
|
281 |
+
2024-12-24 13:33:05 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py:1780: UserWarning: A function (disable_order_buttons) returned too many output values (needed: 3, returned: 5). Ignoring extra values.
|
282 |
+
2024-12-24 13:33:05 | ERROR | stderr | Output components:
|
283 |
+
2024-12-24 13:33:05 | ERROR | stderr | [textbox, button, button]
|
284 |
+
2024-12-24 13:33:05 | ERROR | stderr | Output values returned:
|
285 |
+
2024-12-24 13:33:05 | ERROR | stderr | [{'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}]
|
286 |
+
2024-12-24 13:33:05 | ERROR | stderr | warnings.warn(
|
287 |
+
2024-12-24 13:33:05 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/helpers.py:968: UserWarning: Unexpected argument. Filling with None.
|
288 |
+
2024-12-24 13:33:05 | ERROR | stderr | warnings.warn("Unexpected argument. Filling with None.")
|
289 |
+
2024-12-24 13:33:06 | INFO | stdout | Rank
|
290 |
+
2024-12-24 13:33:17 | INFO | stdout | background.shape (600, 600, 4)
|
291 |
+
2024-12-24 13:33:17 | INFO | stdout | len(layers) 1
|
292 |
+
2024-12-24 13:33:17 | INFO | stdout | composite.shape (600, 600, 4)
|
293 |
+
2024-12-24 13:33:18 | INFO | stdout | background.shape (600, 600, 4)
|
294 |
+
2024-12-24 13:33:18 | INFO | stdout | len(layers) 1
|
295 |
+
2024-12-24 13:33:18 | INFO | stdout | composite.shape (600, 600, 4)
|
296 |
+
2024-12-24 13:33:19 | INFO | stdout | background.shape (600, 600, 4)
|
297 |
+
2024-12-24 13:33:19 | INFO | stdout | len(layers) 1
|
298 |
+
2024-12-24 13:33:19 | INFO | stdout | composite.shape (600, 600, 4)
|
299 |
+
2024-12-24 13:33:20 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py:1780: UserWarning: A function (disable_order_buttons) returned too many output values (needed: 3, returned: 5). Ignoring extra values.
|
300 |
+
2024-12-24 13:33:20 | ERROR | stderr | Output components:
|
301 |
+
2024-12-24 13:33:20 | ERROR | stderr | [textbox, button, button]
|
302 |
+
2024-12-24 13:33:20 | ERROR | stderr | Output values returned:
|
303 |
+
2024-12-24 13:33:20 | ERROR | stderr | [{'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}]
|
304 |
+
2024-12-24 13:33:20 | ERROR | stderr | warnings.warn(
|
305 |
+
2024-12-24 13:33:20 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/helpers.py:968: UserWarning: Unexpected argument. Filling with None.
|
306 |
+
2024-12-24 13:33:20 | ERROR | stderr | warnings.warn("Unexpected argument. Filling with None.")
|
307 |
+
2024-12-24 13:33:20 | INFO | stdout | Rank
|
308 |
+
2024-12-24 13:33:25 | INFO | stdout |
|
309 |
+
2024-12-24 13:33:25 | INFO | stdout | Could not create share link. Missing file: /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/frpc_linux_amd64_v0.3.
|
310 |
+
2024-12-24 13:33:25 | INFO | stdout |
|
311 |
+
2024-12-24 13:33:25 | INFO | stdout | Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps:
|
312 |
+
2024-12-24 13:33:25 | INFO | stdout |
|
313 |
+
2024-12-24 13:33:25 | INFO | stdout | 1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.3/frpc_linux_amd64
|
314 |
+
2024-12-24 13:33:25 | INFO | stdout | 2. Rename the downloaded file to: frpc_linux_amd64_v0.3
|
315 |
+
2024-12-24 13:33:25 | INFO | stdout | 3. Move the file to this location: /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio
|
316 |
+
2024-12-24 13:33:29 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py:1780: UserWarning: A function (disable_order_buttons) returned too many output values (needed: 3, returned: 5). Ignoring extra values.
|
317 |
+
2024-12-24 13:33:29 | ERROR | stderr | Output components:
|
318 |
+
2024-12-24 13:33:29 | ERROR | stderr | [textbox, button, button]
|
319 |
+
2024-12-24 13:33:29 | ERROR | stderr | Output values returned:
|
320 |
+
2024-12-24 13:33:29 | ERROR | stderr | [{'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}]
|
321 |
+
2024-12-24 13:33:29 | ERROR | stderr | warnings.warn(
|
322 |
+
2024-12-24 13:33:30 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/helpers.py:968: UserWarning: Unexpected argument. Filling with None.
|
323 |
+
2024-12-24 13:33:30 | ERROR | stderr | warnings.warn("Unexpected argument. Filling with None.")
|
324 |
+
2024-12-24 13:33:30 | INFO | stdout | Rank
|
325 |
+
2024-12-24 13:33:31 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py:1780: UserWarning: A function (disable_order_buttons) returned too many output values (needed: 3, returned: 5). Ignoring extra values.
|
326 |
+
2024-12-24 13:33:31 | ERROR | stderr | Output components:
|
327 |
+
2024-12-24 13:33:31 | ERROR | stderr | [textbox, button, button]
|
328 |
+
2024-12-24 13:33:31 | ERROR | stderr | Output values returned:
|
329 |
+
2024-12-24 13:33:31 | ERROR | stderr | [{'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}]
|
330 |
+
2024-12-24 13:33:31 | ERROR | stderr | warnings.warn(
|
331 |
+
2024-12-24 13:33:32 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/helpers.py:968: UserWarning: Unexpected argument. Filling with None.
|
332 |
+
2024-12-24 13:33:32 | ERROR | stderr | warnings.warn("Unexpected argument. Filling with None.")
|
333 |
+
2024-12-24 13:33:32 | INFO | stdout | Rank
|
334 |
+
2024-12-24 13:33:33 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py:1780: UserWarning: A function (disable_order_buttons) returned too many output values (needed: 3, returned: 5). Ignoring extra values.
|
335 |
+
2024-12-24 13:33:33 | ERROR | stderr | Output components:
|
336 |
+
2024-12-24 13:33:33 | ERROR | stderr | [textbox, button, button]
|
337 |
+
2024-12-24 13:33:33 | ERROR | stderr | Output values returned:
|
338 |
+
2024-12-24 13:33:33 | ERROR | stderr | [{'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}]
|
339 |
+
2024-12-24 13:33:33 | ERROR | stderr | warnings.warn(
|
340 |
+
2024-12-24 13:33:33 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/helpers.py:968: UserWarning: Unexpected argument. Filling with None.
|
341 |
+
2024-12-24 13:33:33 | ERROR | stderr | warnings.warn("Unexpected argument. Filling with None.")
|
342 |
+
2024-12-24 13:33:34 | INFO | stdout | Rank
|
343 |
+
2024-12-24 13:33:34 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py:1780: UserWarning: A function (disable_order_buttons) returned too many output values (needed: 3, returned: 5). Ignoring extra values.
|
344 |
+
2024-12-24 13:33:34 | ERROR | stderr | Output components:
|
345 |
+
2024-12-24 13:33:34 | ERROR | stderr | [textbox, button, button]
|
346 |
+
2024-12-24 13:33:34 | ERROR | stderr | Output values returned:
|
347 |
+
2024-12-24 13:33:34 | ERROR | stderr | [{'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}]
|
348 |
+
2024-12-24 13:33:34 | ERROR | stderr | warnings.warn(
|
349 |
+
2024-12-24 13:33:34 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/helpers.py:968: UserWarning: Unexpected argument. Filling with None.
|
350 |
+
2024-12-24 13:33:34 | ERROR | stderr | warnings.warn("Unexpected argument. Filling with None.")
|
351 |
+
2024-12-24 13:33:34 | INFO | stdout | Rank
|
352 |
+
2024-12-24 13:33:35 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py:1780: UserWarning: A function (disable_order_buttons) returned too many output values (needed: 3, returned: 5). Ignoring extra values.
|
353 |
+
2024-12-24 13:33:35 | ERROR | stderr | Output components:
|
354 |
+
2024-12-24 13:33:35 | ERROR | stderr | [textbox, button, button]
|
355 |
+
2024-12-24 13:33:35 | ERROR | stderr | Output values returned:
|
356 |
+
2024-12-24 13:33:35 | ERROR | stderr | [{'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}]
|
357 |
+
2024-12-24 13:33:35 | ERROR | stderr | warnings.warn(
|
358 |
+
2024-12-24 13:33:35 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/helpers.py:968: UserWarning: Unexpected argument. Filling with None.
|
359 |
+
2024-12-24 13:33:35 | ERROR | stderr | warnings.warn("Unexpected argument. Filling with None.")
|
360 |
+
2024-12-24 13:33:35 | INFO | stdout | Rank
|
361 |
+
2024-12-24 13:33:52 | INFO | stdout | Keyboard interruption in main thread... closing server.
|
362 |
+
2024-12-24 13:33:52 | ERROR | stderr | Traceback (most recent call last):
|
363 |
+
2024-12-24 13:33:52 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2869, in block_thread
|
364 |
+
2024-12-24 13:33:52 | ERROR | stderr | time.sleep(0.1)
|
365 |
+
2024-12-24 13:33:52 | ERROR | stderr | KeyboardInterrupt
|
366 |
+
2024-12-24 13:33:52 | ERROR | stderr |
|
367 |
+
2024-12-24 13:33:52 | ERROR | stderr | During handling of the above exception, another exception occurred:
|
368 |
+
2024-12-24 13:33:52 | ERROR | stderr |
|
369 |
+
2024-12-24 13:33:52 | ERROR | stderr | Traceback (most recent call last):
|
370 |
+
2024-12-24 13:33:52 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/app.py", line 88, in <module>
|
371 |
+
2024-12-24 13:33:52 | ERROR | stderr | demo.queue(max_size=20).launch(server_port=server_port, root_path=ROOT_PATH, share=True)
|
372 |
+
2024-12-24 13:33:52 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2774, in launch
|
373 |
+
2024-12-24 13:33:52 | ERROR | stderr | self.block_thread()
|
374 |
+
2024-12-24 13:33:52 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2873, in block_thread
|
375 |
+
2024-12-24 13:33:52 | ERROR | stderr | self.server.close()
|
376 |
+
2024-12-24 13:33:52 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/http_server.py", line 69, in close
|
377 |
+
2024-12-24 13:33:52 | ERROR | stderr | self.thread.join(timeout=5)
|
378 |
+
2024-12-24 13:33:52 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/threading.py", line 1100, in join
|
379 |
+
2024-12-24 13:33:52 | ERROR | stderr | self._wait_for_tstate_lock(timeout=max(timeout, 0))
|
380 |
+
2024-12-24 13:33:52 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/threading.py", line 1116, in _wait_for_tstate_lock
|
381 |
+
2024-12-24 13:33:52 | ERROR | stderr | if lock.acquire(block, timeout):
|
382 |
+
2024-12-24 13:33:52 | ERROR | stderr | KeyboardInterrupt
|
383 |
+
2024-12-24 13:33:53 | ERROR | stderr | Exception ignored in: <module 'threading' from '/share/bcy/miniconda3/envs/Arena/lib/python3.10/threading.py'>
|
384 |
+
2024-12-24 13:33:53 | ERROR | stderr | Traceback (most recent call last):
|
385 |
+
2024-12-24 13:33:53 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/threading.py", line 1567, in _shutdown
|
386 |
+
2024-12-24 13:33:53 | ERROR | stderr | lock.acquire()
|
387 |
+
2024-12-24 13:33:53 | ERROR | stderr | KeyboardInterrupt:
|
388 |
+
2024-12-24 13:34:05 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/diffusers/models/transformers/transformer_2d.py:34: FutureWarning: `Transformer2DModelOutput` is deprecated and will be removed in version 1.0.0. Importing `Transformer2DModelOutput` from `diffusers.models.transformer_2d` is deprecated and this will be removed in a future version. Please use `from diffusers.models.modeling_outputs import Transformer2DModelOutput`, instead.
|
389 |
+
2024-12-24 13:34:05 | ERROR | stderr | deprecate("Transformer2DModelOutput", "1.0.0", deprecation_message)
|
390 |
+
2024-12-24 13:34:07 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py:1003: UserWarning: Expected 12 arguments for function functools.partial(<function generate_b2i_annoy at 0x7f4353e73250>, <bound method ModelManager.generate_image_b2i_parallel_anony of <model.model_manager.ModelManager object at 0x7f459d45bd60>>), received 11.
|
391 |
+
2024-12-24 13:34:07 | ERROR | stderr | warnings.warn(
|
392 |
+
2024-12-24 13:34:07 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py:1007: UserWarning: Expected at least 12 arguments for function functools.partial(<function generate_b2i_annoy at 0x7f4353e73250>, <bound method ModelManager.generate_image_b2i_parallel_anony of <model.model_manager.ModelManager object at 0x7f459d45bd60>>), received 11.
|
393 |
+
2024-12-24 13:34:07 | ERROR | stderr | warnings.warn(
|
394 |
+
2024-12-24 13:34:07 | INFO | stdout | * Running on local URL: http://127.0.0.1:7860
|
395 |
+
2024-12-24 13:34:18 | INFO | stdout |
|
396 |
+
2024-12-24 13:34:18 | INFO | stdout | Could not create share link. Missing file: /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/frpc_linux_amd64_v0.3.
|
397 |
+
2024-12-24 13:34:18 | INFO | stdout |
|
398 |
+
2024-12-24 13:34:18 | INFO | stdout | Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps:
|
399 |
+
2024-12-24 13:34:18 | INFO | stdout |
|
400 |
+
2024-12-24 13:34:18 | INFO | stdout | 1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.3/frpc_linux_amd64
|
401 |
+
2024-12-24 13:34:18 | INFO | stdout | 2. Rename the downloaded file to: frpc_linux_amd64_v0.3
|
402 |
+
2024-12-24 13:34:18 | INFO | stdout | 3. Move the file to this location: /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio
|
403 |
+
2024-12-24 13:34:25 | INFO | stdout | background.shape (600, 600, 4)
|
404 |
+
2024-12-24 13:34:25 | INFO | stdout | len(layers) 1
|
405 |
+
2024-12-24 13:34:25 | INFO | stdout | composite.shape (600, 600, 4)
|
406 |
+
2024-12-24 13:34:26 | INFO | stdout | background.shape (600, 600, 4)
|
407 |
+
2024-12-24 13:34:26 | INFO | stdout | len(layers) 1
|
408 |
+
2024-12-24 13:34:26 | INFO | stdout | composite.shape (600, 600, 4)
|
409 |
+
2024-12-24 13:34:28 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py:1780: UserWarning: A function (disable_order_buttons) returned too many output values (needed: 3, returned: 5). Ignoring extra values.
|
410 |
+
2024-12-24 13:34:28 | ERROR | stderr | Output components:
|
411 |
+
2024-12-24 13:34:28 | ERROR | stderr | [textbox, button, button]
|
412 |
+
2024-12-24 13:34:28 | ERROR | stderr | Output values returned:
|
413 |
+
2024-12-24 13:34:28 | ERROR | stderr | [{'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}]
|
414 |
+
2024-12-24 13:34:28 | ERROR | stderr | warnings.warn(
|
415 |
+
2024-12-24 13:34:29 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/helpers.py:968: UserWarning: Unexpected argument. Filling with None.
|
416 |
+
2024-12-24 13:34:29 | ERROR | stderr | warnings.warn("Unexpected argument. Filling with None.")
|
417 |
+
2024-12-24 13:34:29 | INFO | stdout | Rank
|
418 |
+
2024-12-24 13:43:01 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py:1780: UserWarning: A function (disable_order_buttons) returned too many output values (needed: 3, returned: 5). Ignoring extra values.
|
419 |
+
2024-12-24 13:43:01 | ERROR | stderr | Output components:
|
420 |
+
2024-12-24 13:43:01 | ERROR | stderr | [textbox, button, button]
|
421 |
+
2024-12-24 13:43:01 | ERROR | stderr | Output values returned:
|
422 |
+
2024-12-24 13:43:01 | ERROR | stderr | [{'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}]
|
423 |
+
2024-12-24 13:43:01 | ERROR | stderr | warnings.warn(
|
424 |
+
2024-12-24 13:43:02 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/helpers.py:968: UserWarning: Unexpected argument. Filling with None.
|
425 |
+
2024-12-24 13:43:02 | ERROR | stderr | warnings.warn("Unexpected argument. Filling with None.")
|
426 |
+
2024-12-24 13:43:02 | INFO | stdout | Rank
|
427 |
+
2024-12-24 13:43:10 | INFO | stdout | background.shape (600, 600, 4)
|
428 |
+
2024-12-24 13:43:10 | INFO | stdout | len(layers) 1
|
429 |
+
2024-12-24 13:43:10 | INFO | stdout | composite.shape (600, 600, 4)
|
430 |
+
2024-12-24 13:43:12 | INFO | stdout | background.shape (600, 600, 4)
|
431 |
+
2024-12-24 13:43:12 | INFO | stdout | len(layers) 1
|
432 |
+
2024-12-24 13:43:12 | INFO | stdout | composite.shape (600, 600, 4)
|
433 |
+
2024-12-24 13:43:14 | INFO | stdout | background.shape (600, 600, 4)
|
434 |
+
2024-12-24 13:43:14 | INFO | stdout | len(layers) 1
|
435 |
+
2024-12-24 13:43:14 | INFO | stdout | composite.shape (600, 600, 4)
|
436 |
+
2024-12-24 13:43:17 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py:1780: UserWarning: A function (disable_order_buttons) returned too many output values (needed: 3, returned: 5). Ignoring extra values.
|
437 |
+
2024-12-24 13:43:17 | ERROR | stderr | Output components:
|
438 |
+
2024-12-24 13:43:17 | ERROR | stderr | [textbox, button, button]
|
439 |
+
2024-12-24 13:43:17 | ERROR | stderr | Output values returned:
|
440 |
+
2024-12-24 13:43:17 | ERROR | stderr | [{'interactive': False, '__type__': 'update'}, {'interactive': False, '__type__': 'update'}, {'interactive': False, '__type__': 'update'}, {'interactive': False, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}]
|
441 |
+
2024-12-24 13:43:17 | ERROR | stderr | warnings.warn(
|
442 |
+
2024-12-24 13:43:17 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/helpers.py:968: UserWarning: Unexpected argument. Filling with None.
|
443 |
+
2024-12-24 13:43:17 | ERROR | stderr | warnings.warn("Unexpected argument. Filling with None.")
|
444 |
+
2024-12-24 13:43:17 | ERROR | stderr | Traceback (most recent call last):
|
445 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/queueing.py", line 625, in process_events
|
446 |
+
2024-12-24 13:43:17 | ERROR | stderr | response = await route_utils.call_process_api(
|
447 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
|
448 |
+
2024-12-24 13:43:17 | ERROR | stderr | output = await app.get_blocks().process_api(
|
449 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2047, in process_api
|
450 |
+
2024-12-24 13:43:17 | ERROR | stderr | result = await self.call_function(
|
451 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 1606, in call_function
|
452 |
+
2024-12-24 13:43:17 | ERROR | stderr | prediction = await utils.async_iteration(iterator)
|
453 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 714, in async_iteration
|
454 |
+
2024-12-24 13:43:17 | ERROR | stderr | return await anext(iterator)
|
455 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 708, in __anext__
|
456 |
+
2024-12-24 13:43:17 | ERROR | stderr | return await anyio.to_thread.run_sync(
|
457 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
|
458 |
+
2024-12-24 13:43:17 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread(
|
459 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2505, in run_sync_in_worker_thread
|
460 |
+
2024-12-24 13:43:17 | ERROR | stderr | return await future
|
461 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1005, in run
|
462 |
+
2024-12-24 13:43:17 | ERROR | stderr | result = context.run(func, *args)
|
463 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 691, in run_sync_iterator_async
|
464 |
+
2024-12-24 13:43:17 | ERROR | stderr | return next(iterator)
|
465 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 852, in gen_wrapper
|
466 |
+
2024-12-24 13:43:17 | ERROR | stderr | response = next(iterator)
|
467 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/serve/vote_utils.py", line 896, in generate_b2i_annoy
|
468 |
+
2024-12-24 13:43:17 | ERROR | stderr | = gen_func(text, grounding_instruction, out_imagebox, model_name0, model_name1, model_name2, model_name3)
|
469 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/model_manager.py", line 94, in generate_image_b2i_parallel_anony
|
470 |
+
2024-12-24 13:43:17 | ERROR | stderr | model_ids = matchmaker(num_players=len(self.model_ig_list), not_run=not_run)
|
471 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/matchmaker.py", line 95, in matchmaker
|
472 |
+
2024-12-24 13:43:17 | ERROR | stderr | ratings, comparison_counts, total_comparisons = load_json_via_sftp()
|
473 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/matchmaker.py", line 79, in load_json_via_sftp
|
474 |
+
2024-12-24 13:43:17 | ERROR | stderr | create_ssh_matchmaker_client(SSH_SERVER, SSH_PORT, SSH_USER, SSH_PASSWORD)
|
475 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/matchmaker.py", line 21, in create_ssh_matchmaker_client
|
476 |
+
2024-12-24 13:43:17 | ERROR | stderr | ssh_matchmaker_client.connect(server, port, user, password)
|
477 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/paramiko/client.py", line 377, in connect
|
478 |
+
2024-12-24 13:43:17 | ERROR | stderr | to_try = list(self._families_and_addresses(hostname, port))
|
479 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/paramiko/client.py", line 202, in _families_and_addresses
|
480 |
+
2024-12-24 13:43:17 | ERROR | stderr | addrinfos = socket.getaddrinfo(
|
481 |
+
2024-12-24 13:43:17 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/socket.py", line 955, in getaddrinfo
|
482 |
+
2024-12-24 13:43:17 | ERROR | stderr | for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
|
483 |
+
2024-12-24 13:43:17 | ERROR | stderr | socket.gaierror: [Errno -8] Servname not supported for ai_socktype
|
484 |
+
2024-12-24 13:43:17 | INFO | stdout | Rank
|
485 |
+
2024-12-24 13:44:00 | INFO | stdout | background.shape (600, 600, 4)
|
486 |
+
2024-12-24 13:44:00 | INFO | stdout | len(layers) 1
|
487 |
+
2024-12-24 13:44:00 | INFO | stdout | composite.shape (600, 600, 4)
|
488 |
+
2024-12-24 13:44:01 | INFO | stdout | background.shape (600, 600, 4)
|
489 |
+
2024-12-24 13:44:01 | INFO | stdout | len(layers) 1
|
490 |
+
2024-12-24 13:44:01 | INFO | stdout | composite.shape (600, 600, 4)
|
491 |
+
2024-12-24 13:44:08 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py:1780: UserWarning: A function (disable_order_buttons) returned too many output values (needed: 3, returned: 5). Ignoring extra values.
|
492 |
+
2024-12-24 13:44:08 | ERROR | stderr | Output components:
|
493 |
+
2024-12-24 13:44:08 | ERROR | stderr | [textbox, button, button]
|
494 |
+
2024-12-24 13:44:08 | ERROR | stderr | Output values returned:
|
495 |
+
2024-12-24 13:44:08 | ERROR | stderr | [{'interactive': False, '__type__': 'update'}, {'interactive': False, '__type__': 'update'}, {'interactive': False, '__type__': 'update'}, {'interactive': False, '__type__': 'update'}, {'interactive': True, '__type__': 'update'}]
|
496 |
+
2024-12-24 13:44:08 | ERROR | stderr | warnings.warn(
|
497 |
+
2024-12-24 13:44:08 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/helpers.py:968: UserWarning: Unexpected argument. Filling with None.
|
498 |
+
2024-12-24 13:44:08 | ERROR | stderr | warnings.warn("Unexpected argument. Filling with None.")
|
499 |
+
2024-12-24 13:44:08 | ERROR | stderr | Traceback (most recent call last):
|
500 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/queueing.py", line 625, in process_events
|
501 |
+
2024-12-24 13:44:08 | ERROR | stderr | response = await route_utils.call_process_api(
|
502 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
|
503 |
+
2024-12-24 13:44:08 | ERROR | stderr | output = await app.get_blocks().process_api(
|
504 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2047, in process_api
|
505 |
+
2024-12-24 13:44:08 | ERROR | stderr | result = await self.call_function(
|
506 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 1606, in call_function
|
507 |
+
2024-12-24 13:44:08 | ERROR | stderr | prediction = await utils.async_iteration(iterator)
|
508 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 714, in async_iteration
|
509 |
+
2024-12-24 13:44:08 | ERROR | stderr | return await anext(iterator)
|
510 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 708, in __anext__
|
511 |
+
2024-12-24 13:44:08 | ERROR | stderr | return await anyio.to_thread.run_sync(
|
512 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
|
513 |
+
2024-12-24 13:44:08 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread(
|
514 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2505, in run_sync_in_worker_thread
|
515 |
+
2024-12-24 13:44:08 | ERROR | stderr | return await future
|
516 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1005, in run
|
517 |
+
2024-12-24 13:44:08 | ERROR | stderr | result = context.run(func, *args)
|
518 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 691, in run_sync_iterator_async
|
519 |
+
2024-12-24 13:44:08 | ERROR | stderr | return next(iterator)
|
520 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 852, in gen_wrapper
|
521 |
+
2024-12-24 13:44:08 | ERROR | stderr | response = next(iterator)
|
522 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/serve/vote_utils.py", line 896, in generate_b2i_annoy
|
523 |
+
2024-12-24 13:44:08 | ERROR | stderr | = gen_func(text, grounding_instruction, out_imagebox, model_name0, model_name1, model_name2, model_name3)
|
524 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/model_manager.py", line 94, in generate_image_b2i_parallel_anony
|
525 |
+
2024-12-24 13:44:08 | ERROR | stderr | model_ids = matchmaker(num_players=len(self.model_ig_list), not_run=not_run)
|
526 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/matchmaker.py", line 95, in matchmaker
|
527 |
+
2024-12-24 13:44:08 | ERROR | stderr | ratings, comparison_counts, total_comparisons = load_json_via_sftp()
|
528 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/matchmaker.py", line 79, in load_json_via_sftp
|
529 |
+
2024-12-24 13:44:08 | ERROR | stderr | create_ssh_matchmaker_client(SSH_SERVER, SSH_PORT, SSH_USER, SSH_PASSWORD)
|
530 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/matchmaker.py", line 21, in create_ssh_matchmaker_client
|
531 |
+
2024-12-24 13:44:08 | ERROR | stderr | ssh_matchmaker_client.connect(server, port, user, password)
|
532 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/paramiko/client.py", line 377, in connect
|
533 |
+
2024-12-24 13:44:08 | ERROR | stderr | to_try = list(self._families_and_addresses(hostname, port))
|
534 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/paramiko/client.py", line 202, in _families_and_addresses
|
535 |
+
2024-12-24 13:44:08 | ERROR | stderr | addrinfos = socket.getaddrinfo(
|
536 |
+
2024-12-24 13:44:08 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/socket.py", line 955, in getaddrinfo
|
537 |
+
2024-12-24 13:44:08 | ERROR | stderr | for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
|
538 |
+
2024-12-24 13:44:08 | ERROR | stderr | socket.gaierror: [Errno -8] Servname not supported for ai_socktype
|
539 |
+
2024-12-24 13:44:09 | INFO | stdout | Rank
|
540 |
+
2024-12-24 13:45:55 | INFO | stdout | background.shape (600, 600, 4)
|
541 |
+
2024-12-24 13:45:55 | INFO | stdout | len(layers) 1
|
542 |
+
2024-12-24 13:45:55 | INFO | stdout | composite.shape (600, 600, 4)
|
543 |
+
2024-12-24 13:45:57 | INFO | stdout | background.shape (600, 600, 4)
|
544 |
+
2024-12-24 13:45:57 | INFO | stdout | len(layers) 1
|
545 |
+
2024-12-24 13:45:57 | INFO | stdout | composite.shape (600, 600, 4)
|
546 |
+
2024-12-24 13:45:59 | INFO | stdout | background.shape (600, 600, 4)
|
547 |
+
2024-12-24 13:45:59 | INFO | stdout | len(layers) 1
|
548 |
+
2024-12-24 13:45:59 | INFO | stdout | composite.shape (600, 600, 4)
|
549 |
+
2024-12-24 13:52:19 | INFO | stdout | Keyboard interruption in main thread... closing server.
|
550 |
+
2024-12-24 13:52:20 | ERROR | stderr | Traceback (most recent call last):
|
551 |
+
2024-12-24 13:52:20 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2869, in block_thread
|
552 |
+
2024-12-24 13:52:20 | ERROR | stderr | time.sleep(0.1)
|
553 |
+
2024-12-24 13:52:20 | ERROR | stderr | KeyboardInterrupt
|
554 |
+
2024-12-24 13:52:20 | ERROR | stderr |
|
555 |
+
2024-12-24 13:52:20 | ERROR | stderr | During handling of the above exception, another exception occurred:
|
556 |
+
2024-12-24 13:52:20 | ERROR | stderr |
|
557 |
+
2024-12-24 13:52:20 | ERROR | stderr | Traceback (most recent call last):
|
558 |
+
2024-12-24 13:52:20 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/app.py", line 88, in <module>
|
559 |
+
2024-12-24 13:52:20 | ERROR | stderr | demo.queue(max_size=20).launch(server_port=server_port, root_path=ROOT_PATH, share=True)
|
560 |
+
2024-12-24 13:52:20 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2774, in launch
|
561 |
+
2024-12-24 13:52:20 | ERROR | stderr | self.block_thread()
|
562 |
+
2024-12-24 13:52:20 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2873, in block_thread
|
563 |
+
2024-12-24 13:52:20 | ERROR | stderr | self.server.close()
|
564 |
+
2024-12-24 13:52:20 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/http_server.py", line 69, in close
|
565 |
+
2024-12-24 13:52:20 | ERROR | stderr | self.thread.join(timeout=5)
|
566 |
+
2024-12-24 13:52:20 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/threading.py", line 1100, in join
|
567 |
+
2024-12-24 13:52:20 | ERROR | stderr | self._wait_for_tstate_lock(timeout=max(timeout, 0))
|
568 |
+
2024-12-24 13:52:20 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/threading.py", line 1116, in _wait_for_tstate_lock
|
569 |
+
2024-12-24 13:52:20 | ERROR | stderr | if lock.acquire(block, timeout):
|
570 |
+
2024-12-24 13:52:20 | ERROR | stderr | KeyboardInterrupt
|
571 |
+
2024-12-24 13:52:32 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/diffusers/models/transformers/transformer_2d.py:34: FutureWarning: `Transformer2DModelOutput` is deprecated and will be removed in version 1.0.0. Importing `Transformer2DModelOutput` from `diffusers.models.transformer_2d` is deprecated and this will be removed in a future version. Please use `from diffusers.models.modeling_outputs import Transformer2DModelOutput`, instead.
|
572 |
+
2024-12-24 13:52:32 | ERROR | stderr | deprecate("Transformer2DModelOutput", "1.0.0", deprecation_message)
|
573 |
+
2024-12-24 13:52:34 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py:1003: UserWarning: Expected 12 arguments for function functools.partial(<function generate_b2i_annoy at 0x7fb8f926f250>, <bound method ModelManager.generate_image_b2i_parallel_anony of <model.model_manager.ModelManager object at 0x7fb76fa6b6a0>>), received 11.
|
574 |
+
2024-12-24 13:52:34 | ERROR | stderr | warnings.warn(
|
575 |
+
2024-12-24 13:52:34 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py:1007: UserWarning: Expected at least 12 arguments for function functools.partial(<function generate_b2i_annoy at 0x7fb8f926f250>, <bound method ModelManager.generate_image_b2i_parallel_anony of <model.model_manager.ModelManager object at 0x7fb76fa6b6a0>>), received 11.
|
576 |
+
2024-12-24 13:52:34 | ERROR | stderr | warnings.warn(
|
577 |
+
2024-12-24 13:52:35 | INFO | stdout | * Running on local URL: http://127.0.0.1:7860
|
578 |
+
2024-12-24 13:52:42 | INFO | stdout | background.shape (600, 600, 4)
|
579 |
+
2024-12-24 13:52:42 | INFO | stdout | len(layers) 1
|
580 |
+
2024-12-24 13:52:42 | INFO | stdout | composite.shape (600, 600, 4)
|
581 |
+
2024-12-24 13:52:42 | INFO | stdout | background.shape (600, 600, 4)
|
582 |
+
2024-12-24 13:52:42 | INFO | stdout | len(layers) 1
|
583 |
+
2024-12-24 13:52:42 | INFO | stdout | composite.shape (600, 600, 4)
|
584 |
+
2024-12-24 13:52:44 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/helpers.py:968: UserWarning: Unexpected argument. Filling with None.
|
585 |
+
2024-12-24 13:52:44 | ERROR | stderr | warnings.warn("Unexpected argument. Filling with None.")
|
586 |
+
2024-12-24 13:52:44 | ERROR | stderr | Traceback (most recent call last):
|
587 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/queueing.py", line 625, in process_events
|
588 |
+
2024-12-24 13:52:44 | ERROR | stderr | response = await route_utils.call_process_api(
|
589 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
|
590 |
+
2024-12-24 13:52:44 | ERROR | stderr | output = await app.get_blocks().process_api(
|
591 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2047, in process_api
|
592 |
+
2024-12-24 13:52:44 | ERROR | stderr | result = await self.call_function(
|
593 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 1606, in call_function
|
594 |
+
2024-12-24 13:52:44 | ERROR | stderr | prediction = await utils.async_iteration(iterator)
|
595 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 714, in async_iteration
|
596 |
+
2024-12-24 13:52:44 | ERROR | stderr | return await anext(iterator)
|
597 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 708, in __anext__
|
598 |
+
2024-12-24 13:52:44 | ERROR | stderr | return await anyio.to_thread.run_sync(
|
599 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
|
600 |
+
2024-12-24 13:52:44 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread(
|
601 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2505, in run_sync_in_worker_thread
|
602 |
+
2024-12-24 13:52:44 | ERROR | stderr | return await future
|
603 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1005, in run
|
604 |
+
2024-12-24 13:52:44 | ERROR | stderr | result = context.run(func, *args)
|
605 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 691, in run_sync_iterator_async
|
606 |
+
2024-12-24 13:52:44 | ERROR | stderr | return next(iterator)
|
607 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 852, in gen_wrapper
|
608 |
+
2024-12-24 13:52:44 | ERROR | stderr | response = next(iterator)
|
609 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/serve/vote_utils.py", line 896, in generate_b2i_annoy
|
610 |
+
2024-12-24 13:52:44 | ERROR | stderr | = gen_func(text, grounding_instruction, out_imagebox, model_name0, model_name1, model_name2, model_name3)
|
611 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/model_manager.py", line 94, in generate_image_b2i_parallel_anony
|
612 |
+
2024-12-24 13:52:44 | ERROR | stderr | model_ids = matchmaker(num_players=len(self.model_ig_list), not_run=not_run)
|
613 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/matchmaker.py", line 95, in matchmaker
|
614 |
+
2024-12-24 13:52:44 | ERROR | stderr | ratings, comparison_counts, total_comparisons = load_json_via_sftp()
|
615 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/matchmaker.py", line 79, in load_json_via_sftp
|
616 |
+
2024-12-24 13:52:44 | ERROR | stderr | create_ssh_matchmaker_client(SSH_SERVER, SSH_PORT, SSH_USER, SSH_PASSWORD)
|
617 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/matchmaker.py", line 21, in create_ssh_matchmaker_client
|
618 |
+
2024-12-24 13:52:44 | ERROR | stderr | ssh_matchmaker_client.connect(server, port, user, password)
|
619 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/paramiko/client.py", line 377, in connect
|
620 |
+
2024-12-24 13:52:44 | ERROR | stderr | to_try = list(self._families_and_addresses(hostname, port))
|
621 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/paramiko/client.py", line 202, in _families_and_addresses
|
622 |
+
2024-12-24 13:52:44 | ERROR | stderr | addrinfos = socket.getaddrinfo(
|
623 |
+
2024-12-24 13:52:44 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/socket.py", line 955, in getaddrinfo
|
624 |
+
2024-12-24 13:52:44 | ERROR | stderr | for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
|
625 |
+
2024-12-24 13:52:44 | ERROR | stderr | socket.gaierror: [Errno -8] Servname not supported for ai_socktype
|
626 |
+
2024-12-24 13:52:44 | INFO | stdout | Rank
|
627 |
+
2024-12-24 13:53:06 | INFO | stdout |
|
628 |
+
2024-12-24 13:53:06 | INFO | stdout | Could not create share link. Missing file: /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/frpc_linux_amd64_v0.3.
|
629 |
+
2024-12-24 13:53:06 | INFO | stdout |
|
630 |
+
2024-12-24 13:53:06 | INFO | stdout | Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps:
|
631 |
+
2024-12-24 13:53:06 | INFO | stdout |
|
632 |
+
2024-12-24 13:53:06 | INFO | stdout | 1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.3/frpc_linux_amd64
|
633 |
+
2024-12-24 13:53:06 | INFO | stdout | 2. Rename the downloaded file to: frpc_linux_amd64_v0.3
|
634 |
+
2024-12-24 13:53:06 | INFO | stdout | 3. Move the file to this location: /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio
|
635 |
+
2024-12-24 13:56:11 | INFO | stdout | Keyboard interruption in main thread... closing server.
|
636 |
+
2024-12-24 13:56:12 | ERROR | stderr | Traceback (most recent call last):
|
637 |
+
2024-12-24 13:56:12 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2869, in block_thread
|
638 |
+
2024-12-24 13:56:12 | ERROR | stderr | time.sleep(0.1)
|
639 |
+
2024-12-24 13:56:12 | ERROR | stderr | KeyboardInterrupt
|
640 |
+
2024-12-24 13:56:12 | ERROR | stderr |
|
641 |
+
2024-12-24 13:56:12 | ERROR | stderr | During handling of the above exception, another exception occurred:
|
642 |
+
2024-12-24 13:56:12 | ERROR | stderr |
|
643 |
+
2024-12-24 13:56:12 | ERROR | stderr | Traceback (most recent call last):
|
644 |
+
2024-12-24 13:56:12 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/app.py", line 88, in <module>
|
645 |
+
2024-12-24 13:56:12 | ERROR | stderr | demo.queue(max_size=20).launch(server_port=server_port, root_path=ROOT_PATH, share=True)
|
646 |
+
2024-12-24 13:56:12 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2774, in launch
|
647 |
+
2024-12-24 13:56:12 | ERROR | stderr | self.block_thread()
|
648 |
+
2024-12-24 13:56:12 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2873, in block_thread
|
649 |
+
2024-12-24 13:56:12 | ERROR | stderr | self.server.close()
|
650 |
+
2024-12-24 13:56:12 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/http_server.py", line 69, in close
|
651 |
+
2024-12-24 13:56:12 | ERROR | stderr | self.thread.join(timeout=5)
|
652 |
+
2024-12-24 13:56:12 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/threading.py", line 1100, in join
|
653 |
+
2024-12-24 13:56:12 | ERROR | stderr | self._wait_for_tstate_lock(timeout=max(timeout, 0))
|
654 |
+
2024-12-24 13:56:12 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/threading.py", line 1116, in _wait_for_tstate_lock
|
655 |
+
2024-12-24 13:56:12 | ERROR | stderr | if lock.acquire(block, timeout):
|
656 |
+
2024-12-24 13:56:12 | ERROR | stderr | KeyboardInterrupt
|
657 |
+
2024-12-24 13:56:24 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/diffusers/models/transformers/transformer_2d.py:34: FutureWarning: `Transformer2DModelOutput` is deprecated and will be removed in version 1.0.0. Importing `Transformer2DModelOutput` from `diffusers.models.transformer_2d` is deprecated and this will be removed in a future version. Please use `from diffusers.models.modeling_outputs import Transformer2DModelOutput`, instead.
|
658 |
+
2024-12-24 13:56:24 | ERROR | stderr | deprecate("Transformer2DModelOutput", "1.0.0", deprecation_message)
|
659 |
+
2024-12-24 13:56:26 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py:1003: UserWarning: Expected 12 arguments for function functools.partial(<function generate_b2i_annoy at 0x7ff04a643250>, <bound method ModelManager.generate_image_b2i_parallel_anony of <model.model_manager.ModelManager object at 0x7ff293c5fd60>>), received 11.
|
660 |
+
2024-12-24 13:56:26 | ERROR | stderr | warnings.warn(
|
661 |
+
2024-12-24 13:56:26 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py:1007: UserWarning: Expected at least 12 arguments for function functools.partial(<function generate_b2i_annoy at 0x7ff04a643250>, <bound method ModelManager.generate_image_b2i_parallel_anony of <model.model_manager.ModelManager object at 0x7ff293c5fd60>>), received 11.
|
662 |
+
2024-12-24 13:56:26 | ERROR | stderr | warnings.warn(
|
663 |
+
2024-12-24 13:56:26 | INFO | stdout | * Running on local URL: http://127.0.0.1:7860
|
664 |
+
2024-12-24 13:56:36 | INFO | stdout | background.shape (600, 600, 4)
|
665 |
+
2024-12-24 13:56:36 | INFO | stdout | len(layers) 1
|
666 |
+
2024-12-24 13:56:36 | INFO | stdout | composite.shape (600, 600, 4)
|
667 |
+
2024-12-24 13:56:36 | INFO | stdout | background.shape (600, 600, 4)
|
668 |
+
2024-12-24 13:56:36 | INFO | stdout | len(layers) 1
|
669 |
+
2024-12-24 13:56:36 | INFO | stdout | composite.shape (600, 600, 4)
|
670 |
+
2024-12-24 13:56:41 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/helpers.py:968: UserWarning: Unexpected argument. Filling with None.
|
671 |
+
2024-12-24 13:56:41 | ERROR | stderr | warnings.warn("Unexpected argument. Filling with None.")
|
672 |
+
2024-12-24 13:56:41 | ERROR | stderr | Traceback (most recent call last):
|
673 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/queueing.py", line 625, in process_events
|
674 |
+
2024-12-24 13:56:41 | ERROR | stderr | response = await route_utils.call_process_api(
|
675 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
|
676 |
+
2024-12-24 13:56:41 | ERROR | stderr | output = await app.get_blocks().process_api(
|
677 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2047, in process_api
|
678 |
+
2024-12-24 13:56:41 | ERROR | stderr | result = await self.call_function(
|
679 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 1606, in call_function
|
680 |
+
2024-12-24 13:56:41 | ERROR | stderr | prediction = await utils.async_iteration(iterator)
|
681 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 714, in async_iteration
|
682 |
+
2024-12-24 13:56:41 | ERROR | stderr | return await anext(iterator)
|
683 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 708, in __anext__
|
684 |
+
2024-12-24 13:56:41 | ERROR | stderr | return await anyio.to_thread.run_sync(
|
685 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
|
686 |
+
2024-12-24 13:56:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread(
|
687 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2505, in run_sync_in_worker_thread
|
688 |
+
2024-12-24 13:56:41 | ERROR | stderr | return await future
|
689 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1005, in run
|
690 |
+
2024-12-24 13:56:41 | ERROR | stderr | result = context.run(func, *args)
|
691 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 691, in run_sync_iterator_async
|
692 |
+
2024-12-24 13:56:41 | ERROR | stderr | return next(iterator)
|
693 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 852, in gen_wrapper
|
694 |
+
2024-12-24 13:56:41 | ERROR | stderr | response = next(iterator)
|
695 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/serve/vote_utils.py", line 896, in generate_b2i_annoy
|
696 |
+
2024-12-24 13:56:41 | ERROR | stderr | = gen_func(text, grounding_instruction, out_imagebox, model_name0, model_name1, model_name2, model_name3)
|
697 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/model_manager.py", line 94, in generate_image_b2i_parallel_anony
|
698 |
+
2024-12-24 13:56:41 | ERROR | stderr | model_ids = matchmaker(num_players=len(self.model_ig_list), not_run=not_run)
|
699 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/matchmaker.py", line 95, in matchmaker
|
700 |
+
2024-12-24 13:56:41 | ERROR | stderr | ratings, comparison_counts, total_comparisons = load_json_via_sftp()
|
701 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/matchmaker.py", line 79, in load_json_via_sftp
|
702 |
+
2024-12-24 13:56:41 | ERROR | stderr | create_ssh_matchmaker_client(SSH_SERVER, SSH_PORT, SSH_USER, SSH_PASSWORD)
|
703 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/matchmaker.py", line 21, in create_ssh_matchmaker_client
|
704 |
+
2024-12-24 13:56:41 | ERROR | stderr | ssh_matchmaker_client.connect(server, port, user, password)
|
705 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/paramiko/client.py", line 377, in connect
|
706 |
+
2024-12-24 13:56:41 | ERROR | stderr | to_try = list(self._families_and_addresses(hostname, port))
|
707 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/paramiko/client.py", line 202, in _families_and_addresses
|
708 |
+
2024-12-24 13:56:41 | ERROR | stderr | addrinfos = socket.getaddrinfo(
|
709 |
+
2024-12-24 13:56:41 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/socket.py", line 955, in getaddrinfo
|
710 |
+
2024-12-24 13:56:41 | ERROR | stderr | for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
|
711 |
+
2024-12-24 13:56:41 | ERROR | stderr | socket.gaierror: [Errno -8] Servname not supported for ai_socktype
|
712 |
+
2024-12-24 13:56:41 | INFO | stdout | Rank
|
713 |
+
2024-12-24 13:57:05 | INFO | stdout |
|
714 |
+
2024-12-24 13:57:05 | INFO | stdout | Could not create share link. Missing file: /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/frpc_linux_amd64_v0.3.
|
715 |
+
2024-12-24 13:57:05 | INFO | stdout |
|
716 |
+
2024-12-24 13:57:05 | INFO | stdout | Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps:
|
717 |
+
2024-12-24 13:57:05 | INFO | stdout |
|
718 |
+
2024-12-24 13:57:05 | INFO | stdout | 1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.3/frpc_linux_amd64
|
719 |
+
2024-12-24 13:57:05 | INFO | stdout | 2. Rename the downloaded file to: frpc_linux_amd64_v0.3
|
720 |
+
2024-12-24 13:57:05 | INFO | stdout | 3. Move the file to this location: /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio
|
721 |
+
2024-12-24 13:58:10 | INFO | stdout | Keyboard interruption in main thread... closing server.
|
722 |
+
2024-12-24 13:58:10 | ERROR | stderr | Traceback (most recent call last):
|
723 |
+
2024-12-24 13:58:10 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2869, in block_thread
|
724 |
+
2024-12-24 13:58:10 | ERROR | stderr | time.sleep(0.1)
|
725 |
+
2024-12-24 13:58:10 | ERROR | stderr | KeyboardInterrupt
|
726 |
+
2024-12-24 13:58:10 | ERROR | stderr |
|
727 |
+
2024-12-24 13:58:10 | ERROR | stderr | During handling of the above exception, another exception occurred:
|
728 |
+
2024-12-24 13:58:10 | ERROR | stderr |
|
729 |
+
2024-12-24 13:58:10 | ERROR | stderr | Traceback (most recent call last):
|
730 |
+
2024-12-24 13:58:10 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/app.py", line 88, in <module>
|
731 |
+
2024-12-24 13:58:10 | ERROR | stderr | demo.queue(max_size=20).launch(server_port=server_port, root_path=ROOT_PATH, share=True)
|
732 |
+
2024-12-24 13:58:10 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2774, in launch
|
733 |
+
2024-12-24 13:58:10 | ERROR | stderr | self.block_thread()
|
734 |
+
2024-12-24 13:58:10 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2873, in block_thread
|
735 |
+
2024-12-24 13:58:10 | ERROR | stderr | self.server.close()
|
736 |
+
2024-12-24 13:58:10 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/http_server.py", line 69, in close
|
737 |
+
2024-12-24 13:58:10 | ERROR | stderr | self.thread.join(timeout=5)
|
738 |
+
2024-12-24 13:58:10 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/threading.py", line 1100, in join
|
739 |
+
2024-12-24 13:58:10 | ERROR | stderr | self._wait_for_tstate_lock(timeout=max(timeout, 0))
|
740 |
+
2024-12-24 13:58:10 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/threading.py", line 1116, in _wait_for_tstate_lock
|
741 |
+
2024-12-24 13:58:10 | ERROR | stderr | if lock.acquire(block, timeout):
|
742 |
+
2024-12-24 13:58:10 | ERROR | stderr | KeyboardInterrupt
|
743 |
+
2024-12-24 13:58:11 | ERROR | stderr | Exception ignored in: <module 'threading' from '/share/bcy/miniconda3/envs/Arena/lib/python3.10/threading.py'>
|
744 |
+
2024-12-24 13:58:11 | ERROR | stderr | Traceback (most recent call last):
|
745 |
+
2024-12-24 13:58:11 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/threading.py", line 1567, in _shutdown
|
746 |
+
2024-12-24 13:58:11 | ERROR | stderr | lock.acquire()
|
747 |
+
2024-12-24 13:58:11 | ERROR | stderr | KeyboardInterrupt:
|
748 |
+
2024-12-24 13:58:20 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/diffusers/models/transformers/transformer_2d.py:34: FutureWarning: `Transformer2DModelOutput` is deprecated and will be removed in version 1.0.0. Importing `Transformer2DModelOutput` from `diffusers.models.transformer_2d` is deprecated and this will be removed in a future version. Please use `from diffusers.models.modeling_outputs import Transformer2DModelOutput`, instead.
|
749 |
+
2024-12-24 13:58:20 | ERROR | stderr | deprecate("Transformer2DModelOutput", "1.0.0", deprecation_message)
|
750 |
+
2024-12-24 13:58:21 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py:1003: UserWarning: Expected 12 arguments for function functools.partial(<function generate_b2i_annoy at 0x7f8ee8393250>, <bound method ModelManager.generate_image_b2i_parallel_anony of <model.model_manager.ModelManager object at 0x7f913195bd60>>), received 11.
|
751 |
+
2024-12-24 13:58:21 | ERROR | stderr | warnings.warn(
|
752 |
+
2024-12-24 13:58:21 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py:1007: UserWarning: Expected at least 12 arguments for function functools.partial(<function generate_b2i_annoy at 0x7f8ee8393250>, <bound method ModelManager.generate_image_b2i_parallel_anony of <model.model_manager.ModelManager object at 0x7f913195bd60>>), received 11.
|
753 |
+
2024-12-24 13:58:21 | ERROR | stderr | warnings.warn(
|
754 |
+
2024-12-24 13:58:22 | INFO | stdout | * Running on local URL: http://127.0.0.1:7860
|
755 |
+
2024-12-24 13:58:32 | INFO | stdout | background.shape (600, 600, 4)
|
756 |
+
2024-12-24 13:58:32 | INFO | stdout | len(layers) 1
|
757 |
+
2024-12-24 13:58:32 | INFO | stdout | composite.shape (600, 600, 4)
|
758 |
+
2024-12-24 13:58:33 | INFO | stdout | background.shape (600, 600, 4)
|
759 |
+
2024-12-24 13:58:33 | INFO | stdout | len(layers) 1
|
760 |
+
2024-12-24 13:58:33 | INFO | stdout | composite.shape (600, 600, 4)
|
761 |
+
2024-12-24 13:58:37 | ERROR | stderr | /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/helpers.py:968: UserWarning: Unexpected argument. Filling with None.
|
762 |
+
2024-12-24 13:58:37 | ERROR | stderr | warnings.warn("Unexpected argument. Filling with None.")
|
763 |
+
2024-12-24 13:58:37 | INFO | stdout | [0]
|
764 |
+
2024-12-24 13:58:37 | INFO | stdout | ['replicate_SDXL_text2image']
|
765 |
+
2024-12-24 13:58:37 | ERROR | stderr | Traceback (most recent call last):
|
766 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/queueing.py", line 625, in process_events
|
767 |
+
2024-12-24 13:58:37 | ERROR | stderr | response = await route_utils.call_process_api(
|
768 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/route_utils.py", line 322, in call_process_api
|
769 |
+
2024-12-24 13:58:37 | ERROR | stderr | output = await app.get_blocks().process_api(
|
770 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 2047, in process_api
|
771 |
+
2024-12-24 13:58:37 | ERROR | stderr | result = await self.call_function(
|
772 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/blocks.py", line 1606, in call_function
|
773 |
+
2024-12-24 13:58:37 | ERROR | stderr | prediction = await utils.async_iteration(iterator)
|
774 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 714, in async_iteration
|
775 |
+
2024-12-24 13:58:37 | ERROR | stderr | return await anext(iterator)
|
776 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 708, in __anext__
|
777 |
+
2024-12-24 13:58:37 | ERROR | stderr | return await anyio.to_thread.run_sync(
|
778 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
|
779 |
+
2024-12-24 13:58:37 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread(
|
780 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2505, in run_sync_in_worker_thread
|
781 |
+
2024-12-24 13:58:37 | ERROR | stderr | return await future
|
782 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1005, in run
|
783 |
+
2024-12-24 13:58:37 | ERROR | stderr | result = context.run(func, *args)
|
784 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 691, in run_sync_iterator_async
|
785 |
+
2024-12-24 13:58:37 | ERROR | stderr | return next(iterator)
|
786 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/utils.py", line 852, in gen_wrapper
|
787 |
+
2024-12-24 13:58:37 | ERROR | stderr | response = next(iterator)
|
788 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/serve/vote_utils.py", line 896, in generate_b2i_annoy
|
789 |
+
2024-12-24 13:58:37 | ERROR | stderr | = gen_func(text, grounding_instruction, out_imagebox, model_name0, model_name1, model_name2, model_name3)
|
790 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/model_manager.py", line 104, in generate_image_b2i_parallel_anony
|
791 |
+
2024-12-24 13:58:37 | ERROR | stderr | results = [future.result() for future in futures]
|
792 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/model_manager.py", line 104, in <listcomp>
|
793 |
+
2024-12-24 13:58:37 | ERROR | stderr | results = [future.result() for future in futures]
|
794 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/concurrent/futures/_base.py", line 451, in result
|
795 |
+
2024-12-24 13:58:37 | ERROR | stderr | return self.__get_result()
|
796 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
|
797 |
+
2024-12-24 13:58:37 | ERROR | stderr | raise self._exception
|
798 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/share/bcy/miniconda3/envs/Arena/lib/python3.10/concurrent/futures/thread.py", line 58, in run
|
799 |
+
2024-12-24 13:58:37 | ERROR | stderr | result = self.fn(*self.args, **self.kwargs)
|
800 |
+
2024-12-24 13:58:37 | ERROR | stderr | File "/home/bcy/projects/Arena/Control_Ability_Arena/model/model_manager.py", line 87, in generate_image_b2i
|
801 |
+
2024-12-24 13:58:37 | ERROR | stderr | return result
|
802 |
+
2024-12-24 13:58:37 | ERROR | stderr | UnboundLocalError: local variable 'result' referenced before assignment
|
803 |
+
2024-12-24 13:58:37 | INFO | stdout | Rank
|
804 |
+
2024-12-24 13:58:53 | INFO | stdout |
|
805 |
+
2024-12-24 13:58:53 | INFO | stdout | Could not create share link. Missing file: /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio/frpc_linux_amd64_v0.3.
|
806 |
+
2024-12-24 13:58:53 | INFO | stdout |
|
807 |
+
2024-12-24 13:58:53 | INFO | stdout | Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps:
|
808 |
+
2024-12-24 13:58:53 | INFO | stdout |
|
809 |
+
2024-12-24 13:58:53 | INFO | stdout | 1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.3/frpc_linux_amd64
|
810 |
+
2024-12-24 13:58:53 | INFO | stdout | 2. Rename the downloaded file to: frpc_linux_amd64_v0.3
|
811 |
+
2024-12-24 13:58:53 | INFO | stdout | 3. Move the file to this location: /share/bcy/miniconda3/envs/Arena/lib/python3.10/site-packages/gradio
|
ksort-logs/vote_log/gr_web_image_generation_multi.log
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
2024-12-24 12:55:47 | INFO | gradio_web_server_image_generation_multi | generate. ip: None
|
2 |
+
2024-12-24 13:43:17 | INFO | gradio_web_server_image_generation_multi | generate. ip: None
|
3 |
+
2024-12-24 13:44:08 | INFO | gradio_web_server_image_generation_multi | generate. ip: None
|
4 |
+
2024-12-24 13:52:44 | INFO | gradio_web_server_image_generation_multi | generate. ip: None
|
5 |
+
2024-12-24 13:56:41 | INFO | gradio_web_server_image_generation_multi | generate. ip: None
|
6 |
+
2024-12-24 13:58:37 | INFO | gradio_web_server_image_generation_multi | generate. ip: None
|
ksort-logs/vote_log/gr_web_video_generation.log
ADDED
File without changes
|
ksort-logs/vote_log/gr_web_video_generation_multi.log
ADDED
File without changes
|
model/__pycache__/__init__.cpython-312.pyc
ADDED
Binary file (161 Bytes). View file
|
|
model/__pycache__/model_manager.cpython-310.pyc
CHANGED
Binary files a/model/__pycache__/model_manager.cpython-310.pyc and b/model/__pycache__/model_manager.cpython-310.pyc differ
|
|
model/__pycache__/model_registry.cpython-312.pyc
ADDED
Binary file (2.72 kB). View file
|
|
model/model_manager.py
CHANGED
@@ -7,7 +7,7 @@ import spaces
|
|
7 |
import torch
|
8 |
from PIL import Image
|
9 |
from openai import OpenAI
|
10 |
-
from .models import IMAGE_GENERATION_MODELS, VIDEO_GENERATION_MODELS, load_pipeline
|
11 |
from serve.upload import get_random_mscoco_prompt, get_random_video_prompt, get_ssh_random_video_prompt, get_ssh_random_image_prompt
|
12 |
from serve.constants import SSH_CACHE_OPENSOURCE, SSH_CACHE_ADVANCE, SSH_CACHE_PIKA, SSH_CACHE_SORA, SSH_CACHE_IMAGE
|
13 |
|
@@ -17,7 +17,7 @@ class ModelManager:
|
|
17 |
self.model_ig_list = IMAGE_GENERATION_MODELS
|
18 |
self.model_ie_list = [] #IMAGE_EDITION_MODELS
|
19 |
self.model_vg_list = VIDEO_GENERATION_MODELS
|
20 |
-
self.model_b2i_list =
|
21 |
self.loaded_models = {}
|
22 |
|
23 |
def load_model_pipe(self, model_name):
|
@@ -80,56 +80,51 @@ class ModelManager:
|
|
80 |
return results[0], results[1], results[2], results[3], \
|
81 |
model_names[0], model_names[1], model_names[2], model_names[3]
|
82 |
|
83 |
-
def generate_image_b2i(self, prompt, bbox, model_name):
|
84 |
pipe = self.load_model_pipe(model_name)
|
85 |
-
if
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
prompt=prompt,
|
92 |
-
height=512,
|
93 |
-
width=512,
|
94 |
-
negative_prompt='',
|
95 |
-
guidance_scale=4.0,
|
96 |
-
num_images_per_prompt=1,
|
97 |
-
num_inference_steps=20
|
98 |
-
)
|
99 |
-
decoder.enable_model_cpu_offload()
|
100 |
-
result = decoder(
|
101 |
-
image_embeddings=prior_output.image_embeddings.to(torch.float16),
|
102 |
-
prompt=prompt,
|
103 |
-
negative_prompt='',
|
104 |
-
guidance_scale=0.0,
|
105 |
-
output_type="pil",
|
106 |
-
num_inference_steps=10
|
107 |
-
).images[0]
|
108 |
return result
|
109 |
|
110 |
-
def generate_image_b2i_api(self, prompt, bbox, model_name):
|
111 |
-
pipe = self.load_model_pipe(model_name)
|
112 |
-
result = pipe(prompt=prompt, bbox=bbox)
|
113 |
-
return result
|
114 |
|
115 |
-
def generate_image_b2i_parallel_anony(self, prompt, bbox, model_A, model_B, model_C, model_D):
|
116 |
if model_A == "" and model_B == "" and model_C == "" and model_D == "":
|
117 |
from .matchmaker import matchmaker
|
118 |
-
not_run = [
|
119 |
-
model_ids = matchmaker(num_players=len(self.model_ig_list), not_run=not_run)
|
|
|
120 |
print(model_ids)
|
121 |
-
model_names = [self.
|
122 |
print(model_names)
|
123 |
else:
|
124 |
model_names = [model_A, model_B, model_C, model_D]
|
125 |
|
126 |
with concurrent.futures.ThreadPoolExecutor() as executor:
|
127 |
-
futures = [executor.submit(self.generate_image_b2i, prompt, bbox, model)
|
128 |
-
else executor.submit(self.generate_image_b2i_api, prompt, bbox, model) for model in model_names]
|
129 |
results = [future.result() for future in futures]
|
130 |
|
131 |
-
|
132 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
|
134 |
def generate_image_ig_cache_anony(self, model_A, model_B, model_C, model_D):
|
135 |
if model_A == "" and model_B == "" and model_C == "" and model_D == "":
|
|
|
7 |
import torch
|
8 |
from PIL import Image
|
9 |
from openai import OpenAI
|
10 |
+
from .models import IMAGE_GENERATION_MODELS, VIDEO_GENERATION_MODELS, B2I_MODELS, load_pipeline
|
11 |
from serve.upload import get_random_mscoco_prompt, get_random_video_prompt, get_ssh_random_video_prompt, get_ssh_random_image_prompt
|
12 |
from serve.constants import SSH_CACHE_OPENSOURCE, SSH_CACHE_ADVANCE, SSH_CACHE_PIKA, SSH_CACHE_SORA, SSH_CACHE_IMAGE
|
13 |
|
|
|
17 |
self.model_ig_list = IMAGE_GENERATION_MODELS
|
18 |
self.model_ie_list = [] #IMAGE_EDITION_MODELS
|
19 |
self.model_vg_list = VIDEO_GENERATION_MODELS
|
20 |
+
self.model_b2i_list = B2I_MODELS
|
21 |
self.loaded_models = {}
|
22 |
|
23 |
def load_model_pipe(self, model_name):
|
|
|
80 |
return results[0], results[1], results[2], results[3], \
|
81 |
model_names[0], model_names[1], model_names[2], model_names[3]
|
82 |
|
83 |
+
def generate_image_b2i(self, prompt, grounding_instruction, bbox, model_name):
|
84 |
pipe = self.load_model_pipe(model_name)
|
85 |
+
if model_name == "local_MIGC_b2i":
|
86 |
+
from model_bbox.MIGC.inference_single_image import inference_image
|
87 |
+
result = inference_image(pipe, prompt, grounding_instruction, bbox)
|
88 |
+
elif model_name == "huggingface_ReCo_b2i":
|
89 |
+
from model_bbox.ReCo.inference import inference_image
|
90 |
+
result = inference_image(pipe, prompt, grounding_instruction, bbox)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
return result
|
92 |
|
|
|
|
|
|
|
|
|
93 |
|
94 |
+
def generate_image_b2i_parallel_anony(self, prompt, grounding_instruction, bbox, model_A, model_B, model_C, model_D):
|
95 |
if model_A == "" and model_B == "" and model_C == "" and model_D == "":
|
96 |
from .matchmaker import matchmaker
|
97 |
+
not_run = [] #12,13,14,15,16,17,18,19,20,21,22, #23,24,
|
98 |
+
# model_ids = matchmaker(num_players=len(self.model_ig_list), not_run=not_run)
|
99 |
+
model_ids = [0, 1]
|
100 |
print(model_ids)
|
101 |
+
model_names = [self.model_b2i_list[i] for i in model_ids]
|
102 |
print(model_names)
|
103 |
else:
|
104 |
model_names = [model_A, model_B, model_C, model_D]
|
105 |
|
106 |
with concurrent.futures.ThreadPoolExecutor() as executor:
|
107 |
+
futures = [executor.submit(self.generate_image_b2i, prompt, grounding_instruction, bbox, model) for model in model_names]
|
|
|
108 |
results = [future.result() for future in futures]
|
109 |
|
110 |
+
blank_image = None
|
111 |
+
final_results = []
|
112 |
+
for i in range(4):
|
113 |
+
if i < len(model_ids):
|
114 |
+
# 如果是有效模型,返回相应的生成结果
|
115 |
+
final_results.append(results[i])
|
116 |
+
else:
|
117 |
+
# 如果没有生成结果,则返回空白图像
|
118 |
+
final_results.append(blank_image)
|
119 |
+
final_model_names = []
|
120 |
+
for i in range(4):
|
121 |
+
if i < len(model_ids):
|
122 |
+
final_model_names.append(model_names[i])
|
123 |
+
else:
|
124 |
+
final_model_names.append("")
|
125 |
+
|
126 |
+
return final_results[0], final_results[1], final_results[2], final_results[3], \
|
127 |
+
final_model_names[0], final_model_names[1], final_model_names[2], final_model_names[3]
|
128 |
|
129 |
def generate_image_ig_cache_anony(self, model_A, model_B, model_C, model_D):
|
130 |
if model_A == "" and model_B == "" and model_C == "" and model_D == "":
|
model/models/__init__.py
CHANGED
@@ -2,6 +2,7 @@ from .huggingface_models import load_huggingface_model
|
|
2 |
from .replicate_api_models import load_replicate_model
|
3 |
from .openai_api_models import load_openai_model
|
4 |
from .other_api_models import load_other_model
|
|
|
5 |
|
6 |
|
7 |
IMAGE_GENERATION_MODELS = [
|
@@ -56,6 +57,8 @@ VIDEO_GENERATION_MODELS = ['replicate_Zeroscope-v2-xl_text2video',
|
|
56 |
'other_KLing-v1.0_text2video',
|
57 |
]
|
58 |
|
|
|
|
|
59 |
|
60 |
def load_pipeline(model_name):
|
61 |
"""
|
@@ -73,6 +76,8 @@ def load_pipeline(model_name):
|
|
73 |
pipe = load_openai_model(model_name, model_type)
|
74 |
elif model_source == "other":
|
75 |
pipe = load_other_model(model_name, model_type)
|
|
|
|
|
76 |
else:
|
77 |
raise ValueError(f"Model source {model_source} not supported")
|
78 |
return pipe
|
|
|
2 |
from .replicate_api_models import load_replicate_model
|
3 |
from .openai_api_models import load_openai_model
|
4 |
from .other_api_models import load_other_model
|
5 |
+
from .local_models import load_local_model
|
6 |
|
7 |
|
8 |
IMAGE_GENERATION_MODELS = [
|
|
|
57 |
'other_KLing-v1.0_text2video',
|
58 |
]
|
59 |
|
60 |
+
B2I_MODELS = ['local_MIGC_b2i', 'huggingface_ReCo_b2i']
|
61 |
+
|
62 |
|
63 |
def load_pipeline(model_name):
|
64 |
"""
|
|
|
76 |
pipe = load_openai_model(model_name, model_type)
|
77 |
elif model_source == "other":
|
78 |
pipe = load_other_model(model_name, model_type)
|
79 |
+
elif model_source == "local":
|
80 |
+
pipe = load_local_model(model_name, model_type)
|
81 |
else:
|
82 |
raise ValueError(f"Model source {model_source} not supported")
|
83 |
return pipe
|
model/models/__pycache__/__init__.cpython-310.pyc
CHANGED
Binary files a/model/models/__pycache__/__init__.cpython-310.pyc and b/model/models/__pycache__/__init__.cpython-310.pyc differ
|
|
model/models/__pycache__/huggingface_models.cpython-310.pyc
CHANGED
Binary files a/model/models/__pycache__/huggingface_models.cpython-310.pyc and b/model/models/__pycache__/huggingface_models.cpython-310.pyc differ
|
|
model/models/__pycache__/local_models.cpython-310.pyc
ADDED
Binary file (431 Bytes). View file
|
|
model/models/huggingface_models.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
from diffusers import DiffusionPipeline
|
2 |
from diffusers import AutoPipelineForText2Image
|
3 |
from diffusers import StableCascadeDecoderPipeline, StableCascadePriorPipeline
|
|
|
4 |
import torch
|
5 |
|
6 |
|
@@ -15,6 +16,9 @@ def load_huggingface_model(model_name, model_type):
|
|
15 |
prior = StableCascadePriorPipeline.from_pretrained("stabilityai/stable-cascade-prior", variant="bf16", torch_dtype=torch.bfloat16)
|
16 |
decoder = StableCascadeDecoderPipeline.from_pretrained("stabilityai/stable-cascade", variant="bf16", torch_dtype=torch.float16)
|
17 |
pipe = [prior, decoder]
|
|
|
|
|
|
|
18 |
else:
|
19 |
raise NotImplementedError
|
20 |
# if model_name == "SD-turbo":
|
|
|
1 |
from diffusers import DiffusionPipeline
|
2 |
from diffusers import AutoPipelineForText2Image
|
3 |
from diffusers import StableCascadeDecoderPipeline, StableCascadePriorPipeline
|
4 |
+
from diffusers import StableDiffusionPipeline
|
5 |
import torch
|
6 |
|
7 |
|
|
|
16 |
prior = StableCascadePriorPipeline.from_pretrained("stabilityai/stable-cascade-prior", variant="bf16", torch_dtype=torch.bfloat16)
|
17 |
decoder = StableCascadeDecoderPipeline.from_pretrained("stabilityai/stable-cascade", variant="bf16", torch_dtype=torch.float16)
|
18 |
pipe = [prior, decoder]
|
19 |
+
elif model_name == "ReCo":
|
20 |
+
pipe = StableDiffusionPipeline.from_pretrained("j-min/reco_sd14_coco",torch_dtype=torch.float16)
|
21 |
+
pipe = pipe.to("cuda")
|
22 |
else:
|
23 |
raise NotImplementedError
|
24 |
# if model_name == "SD-turbo":
|
model/models/local_models.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from model_bbox.MIGC.inference_single_image import MIGC_Pipe
|
2 |
+
|
3 |
+
def load_local_model(model_name, model_type):
|
4 |
+
if model_name == "MIGC":
|
5 |
+
pipe = MIGC_Pipe()
|
6 |
+
else:
|
7 |
+
raise NotImplementedError
|
8 |
+
return pipe
|
model_bbox/GeoDiffusion
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 1878315d245fb5be586f78c323e2776110383204
|
model_bbox/MIGC
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 94de6a347b3bc723fa882610b209bf9a9d4e30a1
|
model_bbox/ReCo/__pycache__/inference.cpython-310.pyc
ADDED
Binary file (2.68 kB). View file
|
|
model_bbox/ReCo/inference.py
ADDED
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from ast import main
|
2 |
+
from numpy import imag
|
3 |
+
import torch
|
4 |
+
from diffusers import StableDiffusionPipeline
|
5 |
+
import os
|
6 |
+
from PIL import Image
|
7 |
+
os.environ ['HF_ENDPOINT'] = 'https://hf-mirror.com'
|
8 |
+
|
9 |
+
def normalize_bbox(bboxes, img_width, img_height):
|
10 |
+
normalized_bboxes = []
|
11 |
+
for box in bboxes:
|
12 |
+
x_min, y_min, x_max, y_max = box
|
13 |
+
|
14 |
+
x_min = (x_min / img_width)
|
15 |
+
y_min = (y_min / img_height)
|
16 |
+
x_max = (x_max / img_width)
|
17 |
+
y_max = (y_max / img_height)
|
18 |
+
|
19 |
+
normalized_bboxes.append([x_min, y_min, x_max, y_max])
|
20 |
+
|
21 |
+
return normalized_bboxes
|
22 |
+
|
23 |
+
def create_reco_prompt(
|
24 |
+
caption: str = '',
|
25 |
+
phrases=[],
|
26 |
+
boxes=[],
|
27 |
+
normalize_boxes=True,
|
28 |
+
image_resolution=512,
|
29 |
+
num_bins=1000,
|
30 |
+
):
|
31 |
+
"""
|
32 |
+
method to create ReCo prompt
|
33 |
+
|
34 |
+
caption: global caption
|
35 |
+
phrases: list of regional captions
|
36 |
+
boxes: list of regional coordinates (unnormalized xyxy)
|
37 |
+
"""
|
38 |
+
|
39 |
+
SOS_token = '<|startoftext|>'
|
40 |
+
EOS_token = '<|endoftext|>'
|
41 |
+
|
42 |
+
box_captions_with_coords = []
|
43 |
+
|
44 |
+
box_captions_with_coords += [caption]
|
45 |
+
box_captions_with_coords += [EOS_token]
|
46 |
+
|
47 |
+
for phrase, box in zip(phrases, boxes):
|
48 |
+
|
49 |
+
if normalize_boxes:
|
50 |
+
box = [float(x) / image_resolution for x in box]
|
51 |
+
|
52 |
+
# quantize into bins
|
53 |
+
quant_x0 = int(round((box[0] * (num_bins - 1))))
|
54 |
+
quant_y0 = int(round((box[1] * (num_bins - 1))))
|
55 |
+
quant_x1 = int(round((box[2] * (num_bins - 1))))
|
56 |
+
quant_y1 = int(round((box[3] * (num_bins - 1))))
|
57 |
+
|
58 |
+
# ReCo format
|
59 |
+
# Add SOS/EOS before/after regional captions
|
60 |
+
box_captions_with_coords += [
|
61 |
+
f"<bin{str(quant_x0).zfill(3)}>",
|
62 |
+
f"<bin{str(quant_y0).zfill(3)}>",
|
63 |
+
f"<bin{str(quant_x1).zfill(3)}>",
|
64 |
+
f"<bin{str(quant_y1).zfill(3)}>",
|
65 |
+
SOS_token,
|
66 |
+
phrase,
|
67 |
+
EOS_token
|
68 |
+
]
|
69 |
+
|
70 |
+
text = " ".join(box_captions_with_coords)
|
71 |
+
return text
|
72 |
+
|
73 |
+
def inference_image(pipe, prompt, grounding_instruction, state):
|
74 |
+
print(prompt)
|
75 |
+
print(grounding_instruction)
|
76 |
+
bbox = state['boxes']
|
77 |
+
# bbox = state
|
78 |
+
print(bbox)
|
79 |
+
bbox = normalize_bbox(bbox, 600, 600)
|
80 |
+
print(bbox)
|
81 |
+
objects = [obj for obj in grounding_instruction.split(';') if obj.strip()]
|
82 |
+
print(objects)
|
83 |
+
prompt_reco = create_reco_prompt(prompt, objects, bbox, normalize_boxes=False)
|
84 |
+
print(prompt_reco)
|
85 |
+
image = pipe(prompt_reco, guidance_scale=4).images[0]
|
86 |
+
return image
|
87 |
+
|
88 |
+
|
89 |
+
|
90 |
+
if __name__ == "__main__":
|
91 |
+
pipe = StableDiffusionPipeline.from_pretrained(
|
92 |
+
"j-min/reco_sd14_coco",
|
93 |
+
torch_dtype=torch.float16
|
94 |
+
)
|
95 |
+
pipe = pipe.to("cuda")
|
96 |
+
# caption = "A box contains six donuts with varying types of glazes and toppings."
|
97 |
+
# phrases = ["chocolate donut.", "dark vanilla donut.", "donut with sprinkles.", "donut with powdered sugar.", "pink donut.", "brown donut."]
|
98 |
+
# boxes = [[263.68, 294.912, 380.544, 392.832], [121.344, 265.216, 267.392, 401.92], [391.168, 294.912, 506.368, 381.952], [120.064, 143.872, 268.8, 270.336], [264.192, 132.928, 393.216, 263.68], [386.048, 148.48, 490.688, 259.584]]
|
99 |
+
# prompt = create_reco_prompt(caption, phrases, boxes)
|
100 |
+
# print(prompt)
|
101 |
+
# generated_image = pipe(
|
102 |
+
# prompt,
|
103 |
+
# guidance_scale=4).images[0]
|
104 |
+
# generated_image.save("output1.jpg")
|
105 |
+
prompt = "a dog and a cat;"
|
106 |
+
grounding_instruction = "cut dog; big cat;"
|
107 |
+
bbox = [(136, 252, 280, 455), (284, 205, 480, 500)]
|
108 |
+
|
109 |
+
inference_image(pipe, prompt, grounding_instruction, bbox)
|
110 |
+
|
output.png
ADDED
serve/__pycache__/__init__.cpython-312.pyc
ADDED
Binary file (161 Bytes). View file
|
|
serve/__pycache__/constants.cpython-312.pyc
ADDED
Binary file (2.95 kB). View file
|
|
serve/__pycache__/gradio_web.cpython-312.pyc
ADDED
Binary file (30 kB). View file
|
|
serve/__pycache__/gradio_web_bbox.cpython-310.pyc
CHANGED
Binary files a/serve/__pycache__/gradio_web_bbox.cpython-310.pyc and b/serve/__pycache__/gradio_web_bbox.cpython-310.pyc differ
|
|
serve/__pycache__/utils.cpython-310.pyc
CHANGED
Binary files a/serve/__pycache__/utils.cpython-310.pyc and b/serve/__pycache__/utils.cpython-310.pyc differ
|
|
serve/__pycache__/utils.cpython-312.pyc
ADDED
Binary file (12.8 kB). View file
|
|
serve/__pycache__/vote_utils.cpython-310.pyc
CHANGED
Binary files a/serve/__pycache__/vote_utils.cpython-310.pyc and b/serve/__pycache__/vote_utils.cpython-310.pyc differ
|
|
serve/__pycache__/vote_utils.cpython-312.pyc
ADDED
Binary file (76.6 kB). View file
|
|
serve/gradio_web_bbox.py
CHANGED
@@ -21,6 +21,7 @@ from serve.vote_utils import (
|
|
21 |
generate_igm,
|
22 |
generate_igm_museum,
|
23 |
generate_igm_annoy,
|
|
|
24 |
generate_igm_annoy_museum,
|
25 |
generate_igm_cache_annoy,
|
26 |
share_js
|
@@ -234,7 +235,7 @@ def build_side_by_side_bbox_ui_anony(models):
|
|
234 |
state2 = gr.State()
|
235 |
state3 = gr.State()
|
236 |
|
237 |
-
|
238 |
# gen_cache_func = partial(generate_igm_cache_annoy, models.generate_image_ig_cache_anony)
|
239 |
|
240 |
|
@@ -438,7 +439,7 @@ def build_side_by_side_bbox_ui_anony(models):
|
|
438 |
queue=False,
|
439 |
)
|
440 |
|
441 |
-
order_btn_list = [textbox, send_btn, clear_btn]
|
442 |
vote_order_list = [leftvote_btn, left1vote_btn, rightvote_btn, right1vote_btn, tie_btn, \
|
443 |
A1_btn, A2_btn, A3_btn, A4_btn, B1_btn, B2_btn, B3_btn, B4_btn, C1_btn, C2_btn, C3_btn, C4_btn, D1_btn, D2_btn, D3_btn, D4_btn, \
|
444 |
vote_textbox, vote_submit_btn, vote_mode_btn]
|
@@ -484,6 +485,21 @@ def build_side_by_side_bbox_ui_anony(models):
|
|
484 |
cache_mode = gr.Textbox(value="True", visible=False, interactive=False)
|
485 |
|
486 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
487 |
|
488 |
|
489 |
if __name__ == "__main__":
|
|
|
21 |
generate_igm,
|
22 |
generate_igm_museum,
|
23 |
generate_igm_annoy,
|
24 |
+
generate_b2i_annoy,
|
25 |
generate_igm_annoy_museum,
|
26 |
generate_igm_cache_annoy,
|
27 |
share_js
|
|
|
235 |
state2 = gr.State()
|
236 |
state3 = gr.State()
|
237 |
|
238 |
+
gen_func = partial(generate_b2i_annoy, models.generate_image_b2i_parallel_anony)
|
239 |
# gen_cache_func = partial(generate_igm_cache_annoy, models.generate_image_ig_cache_anony)
|
240 |
|
241 |
|
|
|
439 |
queue=False,
|
440 |
)
|
441 |
|
442 |
+
order_btn_list = [textbox, send_btn, clear_btn, grounding_instruction, sketch_pad, out_imagebox]
|
443 |
vote_order_list = [leftvote_btn, left1vote_btn, rightvote_btn, right1vote_btn, tie_btn, \
|
444 |
A1_btn, A2_btn, A3_btn, A4_btn, B1_btn, B2_btn, B3_btn, B4_btn, C1_btn, C2_btn, C3_btn, C4_btn, D1_btn, D2_btn, D3_btn, D4_btn, \
|
445 |
vote_textbox, vote_submit_btn, vote_mode_btn]
|
|
|
485 |
cache_mode = gr.Textbox(value="True", visible=False, interactive=False)
|
486 |
|
487 |
|
488 |
+
textbox.submit(
|
489 |
+
disable_order_buttons,
|
490 |
+
inputs=[textbox],
|
491 |
+
outputs=order_btn_list
|
492 |
+
).then(
|
493 |
+
gen_func,
|
494 |
+
inputs=[state0, state1, state2, state3, textbox, grounding_instruction, state, model_selector_left, model_selector_left1, model_selector_right, model_selector_right1],
|
495 |
+
outputs=[state0, state1, state2, state3, generate_ig0, generate_ig1, generate_ig2, generate_ig3, chatbot_left, chatbot_left1, chatbot_right, chatbot_right1, \
|
496 |
+
model_selector_left, model_selector_left1, model_selector_right, model_selector_right1],
|
497 |
+
api_name="submit_btn_annony"
|
498 |
+
).then(
|
499 |
+
enable_vote_mode_buttons,
|
500 |
+
inputs=[vote_mode, textbox],
|
501 |
+
outputs=vote_order_list
|
502 |
+
)
|
503 |
|
504 |
|
505 |
if __name__ == "__main__":
|
serve/utils.py
CHANGED
@@ -206,11 +206,11 @@ def enable_order_buttons():
|
|
206 |
return tuple(gr.update(interactive=True) for _ in range(5))
|
207 |
def disable_order_buttons(textbox, cache="False"):
|
208 |
if cache=="True":
|
209 |
-
return (gr.update(interactive=False), gr.update(interactive=False), gr.update(interactive=False), gr.update(interactive=False), gr.update(interactive=True))
|
210 |
if not textbox.strip():
|
211 |
-
return (gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True))
|
212 |
else:
|
213 |
-
return (gr.update(interactive=False), gr.update(interactive=False), gr.update(interactive=False), gr.update(interactive=False), gr.update(interactive=
|
214 |
|
215 |
def enable_video_order_buttons():
|
216 |
return tuple(gr.update(interactive=True) for _ in range(4))
|
|
|
206 |
return tuple(gr.update(interactive=True) for _ in range(5))
|
207 |
def disable_order_buttons(textbox, cache="False"):
|
208 |
if cache=="True":
|
209 |
+
return (gr.update(interactive=False), gr.update(interactive=False), gr.update(interactive=False), gr.update(interactive=False), gr.update(interactive=True), gr.update(interactive=True))
|
210 |
if not textbox.strip():
|
211 |
+
return (gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True), gr.update(interactive=True))
|
212 |
else:
|
213 |
+
return (gr.update(interactive=False), gr.update(interactive=False), gr.update(interactive=False), gr.update(interactive=False), gr.update(interactive=False), gr.update(interactive=False))
|
214 |
|
215 |
def enable_video_order_buttons():
|
216 |
return tuple(gr.update(interactive=True) for _ in range(4))
|
serve/vote_utils.py
CHANGED
@@ -871,6 +871,50 @@ def generate_igm_annoy(gen_func, state0, state1, state2, state3, text, model_nam
|
|
871 |
# save_any_image(state.output, f)
|
872 |
# save_image_file_on_log_server(output_file)
|
873 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
874 |
def generate_igm_cache_annoy(gen_func, state0, state1, state2, state3, model_name0, model_name1, model_name2, model_name3, request: gr.Request):
|
875 |
if state0 is None:
|
876 |
state0 = ImageStateIG(model_name0)
|
|
|
871 |
# save_any_image(state.output, f)
|
872 |
# save_image_file_on_log_server(output_file)
|
873 |
|
874 |
+
def generate_b2i_annoy(gen_func, state0, state1, state2, state3, text, grounding_instruction, out_imagebox, model_name0, model_name1, model_name2, model_name3, request: gr.Request):
|
875 |
+
if not text.strip():
|
876 |
+
return (gr.update(visible=False),) * 16
|
877 |
+
if state0 is None:
|
878 |
+
state0 = ImageStateIG(model_name0)
|
879 |
+
if state1 is None:
|
880 |
+
state1 = ImageStateIG(model_name1)
|
881 |
+
if state2 is None:
|
882 |
+
state2 = ImageStateIG(model_name2)
|
883 |
+
if state3 is None:
|
884 |
+
state3 = ImageStateIG(model_name3)
|
885 |
+
|
886 |
+
|
887 |
+
ip = get_ip(request)
|
888 |
+
igm_logger.info(f"generate. ip: {ip}")
|
889 |
+
start_tstamp = time.time()
|
890 |
+
model_name0 = ""
|
891 |
+
model_name1 = ""
|
892 |
+
model_name2 = ""
|
893 |
+
model_name3 = ""
|
894 |
+
|
895 |
+
generated_image0, generated_image1, generated_image2, generated_image3, model_name0, model_name1, model_name2, model_name3 \
|
896 |
+
= gen_func(text, grounding_instruction, out_imagebox, model_name0, model_name1, model_name2, model_name3)
|
897 |
+
state0.prompt = text
|
898 |
+
state1.prompt = text
|
899 |
+
state2.prompt = text
|
900 |
+
state3.prompt = text
|
901 |
+
|
902 |
+
state0.output = generated_image0
|
903 |
+
state1.output = generated_image1
|
904 |
+
state2.output = generated_image2
|
905 |
+
state3.output = generated_image3
|
906 |
+
|
907 |
+
state0.model_name = model_name0
|
908 |
+
state1.model_name = model_name1
|
909 |
+
state2.model_name = model_name2
|
910 |
+
state3.model_name = model_name3
|
911 |
+
|
912 |
+
yield state0, state1, state2, state3, generated_image0, generated_image1, generated_image2, generated_image3, \
|
913 |
+
generated_image0, generated_image1, generated_image2, generated_image3, \
|
914 |
+
gr.Markdown(f"### Model A: {model_name0}", visible=False), gr.Markdown(f"### Model B: {model_name1}", visible=False), \
|
915 |
+
gr.Markdown(f"### Model C: {model_name2}", visible=False), gr.Markdown(f"### Model D: {model_name3}", visible=False)
|
916 |
+
|
917 |
+
|
918 |
def generate_igm_cache_annoy(gen_func, state0, state1, state2, state3, model_name0, model_name1, model_name2, model_name3, request: gr.Request):
|
919 |
if state0 is None:
|
920 |
state0 = ImageStateIG(model_name0)
|
tmp.py
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
def generate_image_b2i(self, prompt, grounding_instruction, bbox, model_name):
|
2 |
+
if model_name == "local_MIGC_b2i":
|
3 |
+
from model_bbox.MIGC.inference_single_image import inference_single_image
|
4 |
+
result = inference_single_image(prompt, grounding_instruction, bbox)
|
5 |
+
return result
|