[Google Colab] refiner.unet = torch.compile(refiner.unet, mode="reduce-overhead", fullgraph=True) unsupport error

#73
by TheOneHong - opened
[2023-08-23 10:38:31,959] torch._dynamo.convert_frame: [ERROR] WON'T CONVERT forward /usr/local/lib/python3.10/dist-packages/diffusers/models/unet_2d_condition.py line 709 
 755           0 LOAD_CONST               1 (2)
               2 LOAD_FAST                0 (self)
               4 LOAD_ATTR                0 (num_upsamplers)
               6 BINARY_POWER
               8 STORE_DEREF              0 (default_overall_up_factor)

 758          10 LOAD_CONST               2 (False)
              12 STORE_FAST              13 (forward_upsample_size)

 759          14 LOAD_CONST               3 (None)
              16 STORE_FAST              14 (upsample_size)

 761          18 LOAD_GLOBAL              1 (any)
              20 LOAD_CLOSURE             0 (default_overall_up_factor)
              22 BUILD_TUPLE              1
              24 LOAD_CONST               4 (<code object <genexpr> at 0x79d249172c30, file "/usr/local/lib/python3.10/dist-packages/diffusers/models/unet_2d_condition.py", line 761>)
              26 LOAD_CONST               5 ('UNet2DConditionModel.forward.<locals>.<genexpr>')
              28 MAKE_FUNCTION            8 (closure)
              30 LOAD_FAST                1 (sample)
              32 LOAD_ATTR                2 (shape)
              34 LOAD_CONST               6 (-2)
              36 LOAD_CONST               3 (None)
              38 BUILD_SLICE              2
              40 BINARY_SUBSCR
              42 GET_ITER
              44 CALL_FUNCTION            1
              46 CALL_FUNCTION            1
              48 POP_JUMP_IF_FALSE       32 (to 64)

 762          50 LOAD_GLOBAL              3 (logger)
              52 LOAD_METHOD              4 (info)
              54 LOAD_CONST               7 ('Forward upsample size to force interpolation output size.')
              56 CALL_METHOD              1
              58 POP_TOP

 763          60 LOAD_CONST               8 (True)
              62 STORE_FAST              13 (forward_upsample_size)

 773     >>   64 LOAD_FAST                6 (attention_mask)
              66 LOAD_CONST               3 (None)
              68 IS_OP                    1
              70 POP_JUMP_IF_FALSE       51 (to 102)

 778          72 LOAD_CONST               9 (1)
              74 LOAD_FAST                6 (attention_mask)
              76 LOAD_METHOD              5 (to)
              78 LOAD_FAST                1 (sample)
              80 LOAD_ATTR                6 (dtype)
              82 CALL_METHOD              1
              84 BINARY_SUBTRACT
              86 LOAD_CONST              10 (-10000.0)
              88 BINARY_MULTIPLY
              90 STORE_FAST               6 (attention_mask)

 779          92 LOAD_FAST                6 (attention_mask)
              94 LOAD_METHOD              7 (unsqueeze)
              96 LOAD_CONST               9 (1)
              98 CALL_METHOD              1
             100 STORE_FAST               6 (attention_mask)

 782     >>  102 LOAD_FAST               11 (encoder_attention_mask)
             104 LOAD_CONST               3 (None)
             106 IS_OP                    1
             108 POP_JUMP_IF_FALSE       70 (to 140)

 783         110 LOAD_CONST               9 (1)
             112 LOAD_FAST               11 (encoder_attention_mask)
             114 LOAD_METHOD              5 (to)
             116 LOAD_FAST                1 (sample)
             118 LOAD_ATTR                6 (dtype)
             120 CALL_METHOD              1
             122 BINARY_SUBTRACT
             124 LOAD_CONST              10 (-10000.0)
             126 BINARY_MULTIPLY
             128 STORE_FAST              11 (encoder_attention_mask)

 784         130 LOAD_FAST               11 (encoder_attention_mask)
             132 LOAD_METHOD              7 (unsqueeze)
             134 LOAD_CONST               9 (1)
             136 CALL_METHOD              1
             138 STORE_FAST              11 (encoder_attention_mask)

 787     >>  140 LOAD_FAST                0 (self)
             142 LOAD_ATTR                8 (config)
             144 LOAD_ATTR                9 (center_input_sample)
             146 POP_JUMP_IF_FALSE       80 (to 160)

 788         148 LOAD_CONST               1 (2)
             150 LOAD_FAST                1 (sample)
             152 BINARY_MULTIPLY
             154 LOAD_CONST              11 (1.0)
             156 BINARY_SUBTRACT
             158 STORE_FAST               1 (sample)

 791     >>  160 LOAD_FAST                2 (timestep)
             162 STORE_FAST              15 (timesteps)

 792         164 LOAD_GLOBAL             10 (torch)
             166 LOAD_METHOD             11 (is_tensor)
             168 LOAD_FAST               15 (timesteps)
             170 CALL_METHOD              1
             172 POP_JUMP_IF_TRUE       126 (to 252)

 795         174 LOAD_FAST                1 (sample)
             176 LOAD_ATTR               12 (device)
             178 LOAD_ATTR               13 (type)
             180 LOAD_CONST              12 ('mps')
             182 COMPARE_OP               2 (==)
             184 STORE_FAST              16 (is_mps)

 796         186 LOAD_GLOBAL             14 (isinstance)
             188 LOAD_FAST                2 (timestep)
             190 LOAD_GLOBAL             15 (float)
             192 CALL_FUNCTION            2
             194 POP_JUMP_IF_FALSE      107 (to 214)

 797         196 LOAD_FAST               16 (is_mps)
             198 POP_JUMP_IF_FALSE      103 (to 206)
             200 LOAD_GLOBAL             10 (torch)
             202 LOAD_ATTR               16 (float32)
             204 JUMP_FORWARD             2 (to 210)
         >>  206 LOAD_GLOBAL             10 (torch)
             208 LOAD_ATTR               17 (float64)
         >>  210 STORE_FAST              17 (dtype)
             212 JUMP_FORWARD             8 (to 230)

 799     >>  214 LOAD_FAST               16 (is_mps)
             216 POP_JUMP_IF_FALSE      112 (to 224)
             218 LOAD_GLOBAL             10 (torch)
             220 LOAD_ATTR               18 (int32)
             222 JUMP_FORWARD             2 (to 228)
         >>  224 LOAD_GLOBAL             10 (torch)
             226 LOAD_ATTR               19 (int64)
         >>  228 STORE_FAST              17 (dtype)

 800     >>  230 LOAD_GLOBAL             10 (torch)
             232 LOAD_ATTR               20 (tensor)
             234 LOAD_FAST               15 (timesteps)
             236 BUILD_LIST               1
             238 LOAD_FAST               17 (dtype)
             240 LOAD_FAST                1 (sample)
             242 LOAD_ATTR               12 (device)
             244 LOAD_CONST              13 (('dtype', 'device'))
             246 CALL_FUNCTION_KW         3
             248 STORE_FAST              15 (timesteps)
             250 JUMP_FORWARD            15 (to 282)

 801     >>  252 LOAD_GLOBAL             21 (len)
             254 LOAD_FAST               15 (timesteps)
             256 LOAD_ATTR                2 (shape)
             258 CALL_FUNCTION            1
             260 LOAD_CONST              14 (0)
             262 COMPARE_OP               2 (==)
             264 POP_JUMP_IF_FALSE      141 (to 282)

 802         266 LOAD_FAST               15 (timesteps)
             268 LOAD_CONST               3 (None)
             270 BINARY_SUBSCR
             272 LOAD_METHOD              5 (to)
             274 LOAD_FAST                1 (sample)
             276 LOAD_ATTR               12 (device)
             278 CALL_METHOD              1
             280 STORE_FAST              15 (timesteps)

 805     >>  282 LOAD_FAST               15 (timesteps)
             284 LOAD_METHOD             22 (expand)
             286 LOAD_FAST                1 (sample)
             288 LOAD_ATTR                2 (shape)
             290 LOAD_CONST              14 (0)
             292 BINARY_SUBSCR
             294 CALL_METHOD              1
             296 STORE_FAST              15 (timesteps)

 807         298 LOAD_FAST                0 (self)
             300 LOAD_METHOD             23 (time_proj)
             302 LOAD_FAST               15 (timesteps)
             304 CALL_METHOD              1
             306 STORE_FAST              18 (t_emb)

 812         308 LOAD_FAST               18 (t_emb)
             310 LOAD_ATTR                5 (to)
             312 LOAD_FAST                1 (sample)
             314 LOAD_ATTR                6 (dtype)
             316 LOAD_CONST              15 (('dtype',))
             318 CALL_FUNCTION_KW         1
             320 STORE_FAST              18 (t_emb)

 814         322 LOAD_FAST                0 (self)
             324 LOAD_METHOD             24 (time_embedding)
             326 LOAD_FAST               18 (t_emb)
             328 LOAD_FAST                5 (timestep_cond)
             330 CALL_METHOD              2
             332 STORE_FAST              19 (emb)

 815         334 LOAD_CONST               3 (None)
             336 STORE_FAST              20 (aug_emb)

 817         338 LOAD_FAST                0 (self)
             340 LOAD_ATTR               25 (class_embedding)
             342 LOAD_CONST               3 (None)
             344 IS_OP                    1
             346 POP_JUMP_IF_FALSE      228 (to 456)

 818         348 LOAD_FAST                4 (class_labels)
             350 LOAD_CONST               3 (None)
             352 IS_OP                    0
             354 POP_JUMP_IF_FALSE      182 (to 364)

 819         356 LOAD_GLOBAL             26 (ValueError)
             358 LOAD_CONST              16 ('class_labels should be provided when num_class_embeds > 0')
             360 CALL_FUNCTION            1
             362 RAISE_VARARGS            1

 821     >>  364 LOAD_FAST                0 (self)
             366 LOAD_ATTR                8 (config)
             368 LOAD_ATTR               27 (class_embed_type)
             370 LOAD_CONST              17 ('timestep')
             372 COMPARE_OP               2 (==)
             374 POP_JUMP_IF_FALSE      200 (to 400)

 822         376 LOAD_FAST                0 (self)
             378 LOAD_METHOD             23 (time_proj)
             380 LOAD_FAST                4 (class_labels)
             382 CALL_METHOD              1
             384 STORE_FAST               4 (class_labels)

 826         386 LOAD_FAST                4 (class_labels)
             388 LOAD_ATTR                5 (to)
             390 LOAD_FAST                1 (sample)
             392 LOAD_ATTR                6 (dtype)
             394 LOAD_CONST              15 (('dtype',))
             396 CALL_FUNCTION_KW         1
             398 STORE_FAST               4 (class_labels)

 828     >>  400 LOAD_FAST                0 (self)
             402 LOAD_METHOD             25 (class_embedding)
             404 LOAD_FAST                4 (class_labels)
             406 CALL_METHOD              1
             408 LOAD_ATTR                5 (to)
             410 LOAD_FAST                1 (sample)
             412 LOAD_ATTR                6 (dtype)
             414 LOAD_CONST              15 (('dtype',))
             416 CALL_FUNCTION_KW         1
             418 STORE_FAST              21 (class_emb)

 830         420 LOAD_FAST                0 (self)
             422 LOAD_ATTR                8 (config)
             424 LOAD_ATTR               28 (class_embeddings_concat)
             426 POP_JUMP_IF_FALSE      224 (to 448)

 831         428 LOAD_GLOBAL             10 (torch)
             430 LOAD_ATTR               29 (cat)
             432 LOAD_FAST               19 (emb)
             434 LOAD_FAST               21 (class_emb)
             436 BUILD_LIST               2
             438 LOAD_CONST              18 (-1)
             440 LOAD_CONST              19 (('dim',))
             442 CALL_FUNCTION_KW         2
             444 STORE_FAST              19 (emb)
             446 JUMP_FORWARD             4 (to 456)

 833     >>  448 LOAD_FAST               19 (emb)
             450 LOAD_FAST               21 (class_emb)
             452 BINARY_ADD
             454 STORE_FAST              19 (emb)

 835     >>  456 LOAD_FAST                0 (self)
             458 LOAD_ATTR                8 (config)
             460 LOAD_ATTR               30 (addition_embed_type)
             462 LOAD_CONST              20 ('text')
             464 COMPARE_OP               2 (==)
             466 POP_JUMP_IF_FALSE      240 (to 480)

 836         468 LOAD_FAST                0 (self)
             470 LOAD_METHOD             31 (add_embedding)
             472 LOAD_FAST                3 (encoder_hidden_states)
             474 CALL_METHOD              1
             476 STORE_FAST              20 (aug_emb)
             478 JUMP_FORWARD           202 (to 884)

 837     >>  480 LOAD_FAST                0 (self)
             482 LOAD_ATTR                8 (config)
             484 LOAD_ATTR               30 (addition_embed_type)
             486 LOAD_CONST              21 ('text_image')
             488 COMPARE_OP               2 (==)
             490 EXTENDED_ARG             1
             492 POP_JUMP_IF_FALSE      278 (to 556)

 839         494 LOAD_CONST              22 ('image_embeds')
             496 LOAD_FAST                8 (added_cond_kwargs)
             498 CONTAINS_OP              1
             500 EXTENDED_ARG             1
             502 POP_JUMP_IF_FALSE      260 (to 520)

 840         504 LOAD_GLOBAL             26 (ValueError)

 841         506 LOAD_FAST                0 (self)
             508 LOAD_ATTR               32 (__class__)
             510 FORMAT_VALUE             0
             512 LOAD_CONST              23 (" has the config param `addition_embed_type` set to 'text_image' which requires the keyword argument `image_embeds` to be passed in `added_cond_kwargs`")
             514 BUILD_STRING             2

 840         516 CALL_FUNCTION            1
             518 RAISE_VARARGS            1

 844     >>  520 LOAD_FAST                8 (added_cond_kwargs)
             522 LOAD_METHOD             33 (get)
             524 LOAD_CONST              22 ('image_embeds')
             526 CALL_METHOD              1
             528 STORE_FAST              22 (image_embs)

 845         530 LOAD_FAST                8 (added_cond_kwargs)
             532 LOAD_METHOD             33 (get)
             534 LOAD_CONST              24 ('text_embeds')
             536 LOAD_FAST                3 (encoder_hidden_states)
             538 CALL_METHOD              2
             540 STORE_FAST              23 (text_embs)

 846         542 LOAD_FAST                0 (self)
             544 LOAD_METHOD             31 (add_embedding)
             546 LOAD_FAST               23 (text_embs)
             548 LOAD_FAST               22 (image_embs)
             550 CALL_METHOD              2
             552 STORE_FAST              20 (aug_emb)
             554 JUMP_FORWARD           164 (to 884)

 847     >>  556 LOAD_FAST                0 (self)
             558 LOAD_ATTR                8 (config)
             560 LOAD_ATTR               30 (addition_embed_type)
             562 LOAD_CONST              25 ('text_time')
             564 COMPARE_OP               2 (==)
             566 EXTENDED_ARG             1
             568 POP_JUMP_IF_FALSE      359 (to 718)

 849         570 LOAD_CONST              24 ('text_embeds')
             572 LOAD_FAST                8 (added_cond_kwargs)
             574 CONTAINS_OP              1
             576 EXTENDED_ARG             1
             578 POP_JUMP_IF_FALSE      298 (to 596)

 850         580 LOAD_GLOBAL             26 (ValueError)

 851         582 LOAD_FAST                0 (self)
             584 LOAD_ATTR               32 (__class__)
             586 FORMAT_VALUE             0
             588 LOAD_CONST              26 (" has the config param `addition_embed_type` set to 'text_time' which requires the keyword argument `text_embeds` to be passed in `added_cond_kwargs`")
             590 BUILD_STRING             2

 850         592 CALL_FUNCTION            1
             594 RAISE_VARARGS            1

 853     >>  596 LOAD_FAST                8 (added_cond_kwargs)
             598 LOAD_METHOD             33 (get)
             600 LOAD_CONST              24 ('text_embeds')
             602 CALL_METHOD              1
             604 STORE_FAST              24 (text_embeds)

 854         606 LOAD_CONST              27 ('time_ids')
             608 LOAD_FAST                8 (added_cond_kwargs)
             610 CONTAINS_OP              1
             612 EXTENDED_ARG             1
             614 POP_JUMP_IF_FALSE      316 (to 632)

 855         616 LOAD_GLOBAL             26 (ValueError)

 856         618 LOAD_FAST                0 (self)
             620 LOAD_ATTR               32 (__class__)
             622 FORMAT_VALUE             0
             624 LOAD_CONST              28 (" has the config param `addition_embed_type` set to 'text_time' which requires the keyword argument `time_ids` to be passed in `added_cond_kwargs`")
             626 BUILD_STRING             2

 855         628 CALL_FUNCTION            1
             630 RAISE_VARARGS            1

 858     >>  632 LOAD_FAST                8 (added_cond_kwargs)
             634 LOAD_METHOD             33 (get)
             636 LOAD_CONST              27 ('time_ids')
             638 CALL_METHOD              1
             640 STORE_FAST              25 (time_ids)

 859         642 LOAD_FAST                0 (self)
             644 LOAD_METHOD             34 (add_time_proj)
             646 LOAD_FAST               25 (time_ids)
             648 LOAD_METHOD             35 (flatten)
             650 CALL_METHOD              0
             652 CALL_METHOD              1
             654 STORE_FAST              26 (time_embeds)

 860         656 LOAD_FAST               26 (time_embeds)
             658 LOAD_METHOD             36 (reshape)
             660 LOAD_FAST               24 (text_embeds)
             662 LOAD_ATTR                2 (shape)
             664 LOAD_CONST              14 (0)
             666 BINARY_SUBSCR
             668 LOAD_CONST              18 (-1)
             670 BUILD_TUPLE              2
             672 CALL_METHOD              1
             674 STORE_FAST              26 (time_embeds)

 862         676 LOAD_GLOBAL             10 (torch)
             678 LOAD_ATTR               37 (concat)
             680 LOAD_FAST               24 (text_embeds)
             682 LOAD_FAST               26 (time_embeds)
             684 BUILD_LIST               2
             686 LOAD_CONST              18 (-1)
             688 LOAD_CONST              19 (('dim',))
             690 CALL_FUNCTION_KW         2
             692 STORE_FAST              27 (add_embeds)

 863         694 LOAD_FAST               27 (add_embeds)
             696 LOAD_METHOD              5 (to)
             698 LOAD_FAST               19 (emb)
             700 LOAD_ATTR                6 (dtype)
             702 CALL_METHOD              1
             704 STORE_FAST              27 (add_embeds)

 864         706 LOAD_FAST                0 (self)
             708 LOAD_METHOD             31 (add_embedding)
             710 LOAD_FAST               27 (add_embeds)
             712 CALL_METHOD              1
             714 STORE_FAST              20 (aug_emb)
             716 JUMP_FORWARD            83 (to 884)

 865     >>  718 LOAD_FAST                0 (self)
             720 LOAD_ATTR                8 (config)
             722 LOAD_ATTR               30 (addition_embed_type)
             724 LOAD_CONST              29 ('image')
             726 COMPARE_OP               2 (==)
             728 EXTENDED_ARG             1
             730 POP_JUMP_IF_FALSE      390 (to 780)

 867         732 LOAD_CONST              22 ('image_embeds')
             734 LOAD_FAST                8 (added_cond_kwargs)
             736 CONTAINS_OP              1
             738 EXTENDED_ARG             1
             740 POP_JUMP_IF_FALSE      379 (to 758)

 868         742 LOAD_GLOBAL             26 (ValueError)

 869         744 LOAD_FAST                0 (self)
             746 LOAD_ATTR               32 (__class__)
             748 FORMAT_VALUE             0
             750 LOAD_CONST              30 (" has the config param `addition_embed_type` set to 'image' which requires the keyword argument `image_embeds` to be passed in `added_cond_kwargs`")
             752 BUILD_STRING             2

 868         754 CALL_FUNCTION            1
             756 RAISE_VARARGS            1

 871     >>  758 LOAD_FAST                8 (added_cond_kwargs)
             760 LOAD_METHOD             33 (get)
             762 LOAD_CONST              22 ('image_embeds')
             764 CALL_METHOD              1
             766 STORE_FAST              22 (image_embs)

 872         768 LOAD_FAST                0 (self)
             770 LOAD_METHOD             31 (add_embedding)
             772 LOAD_FAST               22 (image_embs)
             774 CALL_METHOD              1
             776 STORE_FAST              20 (aug_emb)
             778 JUMP_FORWARD            52 (to 884)

 873     >>  780 LOAD_FAST                0 (self)
             782 LOAD_ATTR                8 (config)
             784 LOAD_ATTR               30 (addition_embed_type)
             786 LOAD_CONST              31 ('image_hint')
             788 COMPARE_OP               2 (==)
             790 EXTENDED_ARG             1
             792 POP_JUMP_IF_FALSE      442 (to 884)

 875         794 LOAD_CONST              22 ('image_embeds')
             796 LOAD_FAST                8 (added_cond_kwargs)
             798 CONTAINS_OP              1
             800 EXTENDED_ARG             1
             802 POP_JUMP_IF_TRUE       407 (to 814)
             804 LOAD_CONST              32 ('hint')
             806 LOAD_FAST                8 (added_cond_kwargs)
             808 CONTAINS_OP              1
             810 EXTENDED_ARG             1
             812 POP_JUMP_IF_FALSE      415 (to 830)

 876     >>  814 LOAD_GLOBAL             26 (ValueError)

 877         816 LOAD_FAST                0 (self)
             818 LOAD_ATTR               32 (__class__)
             820 FORMAT_VALUE             0
             822 LOAD_CONST              33 (" has the config param `addition_embed_type` set to 'image_hint' which requires the keyword arguments `image_embeds` and `hint` to be passed in `added_cond_kwargs`")
             824 BUILD_STRING             2

 876         826 CALL_FUNCTION            1
             828 RAISE_VARARGS            1

 879     >>  830 LOAD_FAST                8 (added_cond_kwargs)
             832 LOAD_METHOD             33 (get)
             834 LOAD_CONST              22 ('image_embeds')
             836 CALL_METHOD              1
             838 STORE_FAST              22 (image_embs)

 880         840 LOAD_FAST                8 (added_cond_kwargs)
             842 LOAD_METHOD             33 (get)
             844 LOAD_CONST              32 ('hint')
             846 CALL_METHOD              1
             848 STORE_FAST              28 (hint)

 881         850 LOAD_FAST                0 (self)
             852 LOAD_METHOD             31 (add_embedding)
             854 LOAD_FAST               22 (image_embs)
             856 LOAD_FAST               28 (hint)
             858 CALL_METHOD              2
             860 UNPACK_SEQUENCE          2
             862 STORE_FAST              20 (aug_emb)
             864 STORE_FAST              28 (hint)

 882         866 LOAD_GLOBAL             10 (torch)
             868 LOAD_ATTR               29 (cat)
             870 LOAD_FAST                1 (sample)
             872 LOAD_FAST               28 (hint)
             874 BUILD_LIST               2
             876 LOAD_CONST               9 (1)
             878 LOAD_CONST              19 (('dim',))
             880 CALL_FUNCTION_KW         2
             882 STORE_FAST               1 (sample)

 884     >>  884 LOAD_FAST               20 (aug_emb)
             886 LOAD_CONST               3 (None)
             888 IS_OP                    1
             890 EXTENDED_ARG             1
             892 POP_JUMP_IF_FALSE      451 (to 902)
             894 LOAD_FAST               19 (emb)
             896 LOAD_FAST               20 (aug_emb)
             898 BINARY_ADD
             900 JUMP_FORWARD             1 (to 904)
         >>  902 LOAD_FAST               19 (emb)
         >>  904 STORE_FAST              19 (emb)

 886         906 LOAD_FAST                0 (self)
             908 LOAD_ATTR               38 (time_embed_act)
             910 LOAD_CONST               3 (None)
             912 IS_OP                    1
             914 EXTENDED_ARG             1
             916 POP_JUMP_IF_FALSE      464 (to 928)

 887         918 LOAD_FAST                0 (self)
             920 LOAD_METHOD             38 (time_embed_act)
             922 LOAD_FAST               19 (emb)
             924 CALL_METHOD              1
             926 STORE_FAST              19 (emb)

 889     >>  928 LOAD_FAST                0 (self)
             930 LOAD_ATTR               39 (encoder_hid_proj)
             932 LOAD_CONST               3 (None)
             934 IS_OP                    1
             936 EXTENDED_ARG             1
             938 POP_JUMP_IF_FALSE      483 (to 966)
             940 LOAD_FAST                0 (self)
             942 LOAD_ATTR                8 (config)
             944 LOAD_ATTR               40 (encoder_hid_dim_type)
             946 LOAD_CONST              34 ('text_proj')
             948 COMPARE_OP               2 (==)
             950 EXTENDED_ARG             1
             952 POP_JUMP_IF_FALSE      483 (to 966)

 890         954 LOAD_FAST                0 (self)
             956 LOAD_METHOD             39 (encoder_hid_proj)
             958 LOAD_FAST                3 (encoder_hidden_states)
             960 CALL_METHOD              1
             962 STORE_FAST               3 (encoder_hidden_states)
             964 JUMP_FORWARD            74 (to 1114)

 891     >>  966 LOAD_FAST                0 (self)
             968 LOAD_ATTR               39 (encoder_hid_proj)
             970 LOAD_CONST               3 (None)
             972 IS_OP                    1
             974 EXTENDED_ARG             2
             976 POP_JUMP_IF_FALSE      521 (to 1042)
             978 LOAD_FAST                0 (self)
             980 LOAD_ATTR                8 (config)
             982 LOAD_ATTR               40 (encoder_hid_dim_type)
             984 LOAD_CONST              35 ('text_image_proj')
             986 COMPARE_OP               2 (==)
             988 EXTENDED_ARG             2
             990 POP_JUMP_IF_FALSE      521 (to 1042)

 893         992 LOAD_CONST              22 ('image_embeds')
             994 LOAD_FAST                8 (added_cond_kwargs)
             996 CONTAINS_OP              1
             998 EXTENDED_ARG             1
            1000 POP_JUMP_IF_FALSE      509 (to 1018)

 894        1002 LOAD_GLOBAL             26 (ValueError)

 895        1004 LOAD_FAST                0 (self)
            1006 LOAD_ATTR               32 (__class__)
            1008 FORMAT_VALUE             0
            1010 LOAD_CONST              36 (" has the config param `encoder_hid_dim_type` set to 'text_image_proj' which requires the keyword argument `image_embeds` to be passed in  `added_conditions`")
            1012 BUILD_STRING             2

 894        1014 CALL_FUNCTION            1
            1016 RAISE_VARARGS            1

 898     >> 1018 LOAD_FAST                8 (added_cond_kwargs)
            1020 LOAD_METHOD             33 (get)
            1022 LOAD_CONST              22 ('image_embeds')
            1024 CALL_METHOD              1
            1026 STORE_FAST              29 (image_embeds)

 899        1028 LOAD_FAST                0 (self)
            1030 LOAD_METHOD             39 (encoder_hid_proj)
            1032 LOAD_FAST                3 (encoder_hidden_states)
            1034 LOAD_FAST               29 (image_embeds)
            1036 CALL_METHOD              2
            1038 STORE_FAST               3 (encoder_hidden_states)
            1040 JUMP_FORWARD            36 (to 1114)

 900     >> 1042 LOAD_FAST                0 (self)
            1044 LOAD_ATTR               39 (encoder_hid_proj)
            1046 LOAD_CONST               3 (None)
            1048 IS_OP                    1
            1050 EXTENDED_ARG             2
            1052 POP_JUMP_IF_FALSE      557 (to 1114)
            1054 LOAD_FAST                0 (self)
            1056 LOAD_ATTR                8 (config)
            1058 LOAD_ATTR               40 (encoder_hid_dim_type)
            1060 LOAD_CONST              37 ('image_proj')
            1062 COMPARE_OP               2 (==)
            1064 EXTENDED_ARG             2
            1066 POP_JUMP_IF_FALSE      557 (to 1114)

 902        1068 LOAD_CONST              22 ('image_embeds')
            1070 LOAD_FAST                8 (added_cond_kwargs)
            1072 CONTAINS_OP              1
            1074 EXTENDED_ARG             2
            1076 POP_JUMP_IF_FALSE      547 (to 1094)

 903        1078 LOAD_GLOBAL             26 (ValueError)

 904        1080 LOAD_FAST                0 (self)
            1082 LOAD_ATTR               32 (__class__)
            1084 FORMAT_VALUE             0
            1086 LOAD_CONST              38 (" has the config param `encoder_hid_dim_type` set to 'image_proj' which requires the keyword argument `image_embeds` to be passed in  `added_conditions`")
            1088 BUILD_STRING             2

 903        1090 CALL_FUNCTION            1
            1092 RAISE_VARARGS            1

 906     >> 1094 LOAD_FAST                8 (added_cond_kwargs)
            1096 LOAD_METHOD             33 (get)
            1098 LOAD_CONST              22 ('image_embeds')
            1100 CALL_METHOD              1
            1102 STORE_FAST              29 (image_embeds)

 907        1104 LOAD_FAST                0 (self)
            1106 LOAD_METHOD             39 (encoder_hid_proj)
            1108 LOAD_FAST               29 (image_embeds)
            1110 CALL_METHOD              1
            1112 STORE_FAST               3 (encoder_hidden_states)

 909     >> 1114 LOAD_FAST                0 (self)
            1116 LOAD_METHOD             41 (conv_in)
            1118 LOAD_FAST                1 (sample)
            1120 CALL_METHOD              1
            1122 STORE_FAST               1 (sample)

 912        1124 LOAD_FAST                7 (cross_attention_kwargs)
            1126 LOAD_CONST               3 (None)
            1128 IS_OP                    1
            1130 EXTENDED_ARG             2
            1132 POP_JUMP_IF_FALSE      597 (to 1194)
            1134 LOAD_FAST                7 (cross_attention_kwargs)
            1136 LOAD_METHOD             33 (get)
            1138 LOAD_CONST              39 ('gligen')
            1140 LOAD_CONST               3 (None)
            1142 CALL_METHOD              2
            1144 LOAD_CONST               3 (None)
            1146 IS_OP                    1
            1148 EXTENDED_ARG             2
            1150 POP_JUMP_IF_FALSE      597 (to 1194)

 913        1152 LOAD_FAST                7 (cross_attention_kwargs)
            1154 LOAD_METHOD             42 (copy)
            1156 CALL_METHOD              0
            1158 STORE_FAST               7 (cross_attention_kwargs)

 914        1160 LOAD_FAST                7 (cross_attention_kwargs)
            1162 LOAD_METHOD             43 (pop)
            1164 LOAD_CONST              39 ('gligen')
            1166 CALL_METHOD              1
            1168 STORE_FAST              30 (gligen_args)

 915        1170 LOAD_CONST              40 ('objs')
            1172 LOAD_FAST                0 (self)
            1174 LOAD_ATTR               44 (position_net)
            1176 LOAD_CONST              45 (())
            1178 BUILD_MAP                0
            1180 LOAD_FAST               30 (gligen_args)
            1182 DICT_MERGE               1
            1184 CALL_FUNCTION_EX         1
            1186 BUILD_MAP                1
            1188 LOAD_FAST                7 (cross_attention_kwargs)
            1190 LOAD_CONST              39 ('gligen')
            1192 STORE_SUBSCR

 919     >> 1194 LOAD_FAST               10 (mid_block_additional_residual)
            1196 LOAD_CONST               3 (None)
            1198 IS_OP                    1
            1200 EXTENDED_ARG             2
            1202 JUMP_IF_FALSE_OR_POP   605 (to 1210)
            1204 LOAD_FAST                9 (down_block_additional_residuals)
            1206 LOAD_CONST               3 (None)
            1208 IS_OP                    1
         >> 1210 STORE_FAST              31 (is_controlnet)

 920        1212 LOAD_FAST               10 (mid_block_additional_residual)
            1214 LOAD_CONST               3 (None)
            1216 IS_OP                    0
            1218 EXTENDED_ARG             2
            1220 JUMP_IF_FALSE_OR_POP   614 (to 1228)
            1222 LOAD_FAST                9 (down_block_additional_residuals)
            1224 LOAD_CONST               3 (None)
            1226 IS_OP                    1
         >> 1228 STORE_FAST              32 (is_adapter)

 922        1230 LOAD_FAST                1 (sample)
            1232 BUILD_TUPLE              1
            1234 STORE_FAST              33 (down_block_res_samples)

 923        1236 LOAD_FAST                0 (self)
            1238 LOAD_ATTR               45 (down_blocks)
            1240 GET_ITER
         >> 1242 FOR_ITER                78 (to 1400)
            1244 STORE_FAST              34 (downsample_block)

 924        1246 LOAD_GLOBAL             46 (hasattr)
            1248 LOAD_FAST               34 (downsample_block)
            1250 LOAD_CONST              41 ('has_cross_attention')
            1252 CALL_FUNCTION            2
            1254 EXTENDED_ARG             2
            1256 POP_JUMP_IF_FALSE      669 (to 1338)
            1258 LOAD_FAST               34 (downsample_block)
            1260 LOAD_ATTR               47 (has_cross_attention)
            1262 EXTENDED_ARG             2
            1264 POP_JUMP_IF_FALSE      669 (to 1338)

 926        1266 BUILD_MAP                0
            1268 STORE_FAST              35 (additional_residuals)

 927        1270 LOAD_FAST               32 (is_adapter)
            1272 EXTENDED_ARG             2
            1274 POP_JUMP_IF_FALSE      652 (to 1304)
            1276 LOAD_GLOBAL             21 (len)
            1278 LOAD_FAST                9 (down_block_additional_residuals)
            1280 CALL_FUNCTION            1
            1282 LOAD_CONST              14 (0)
            1284 COMPARE_OP               4 (>)
            1286 EXTENDED_ARG             2
            1288 POP_JUMP_IF_FALSE      652 (to 1304)

 928        1290 LOAD_FAST                9 (down_block_additional_residuals)
            1292 LOAD_METHOD             43 (pop)
            1294 LOAD_CONST              14 (0)
            1296 CALL_METHOD              1
            1298 LOAD_FAST               35 (additional_residuals)
            1300 LOAD_CONST              42 ('additional_residuals')
            1302 STORE_SUBSCR

 930     >> 1304 LOAD_FAST               34 (downsample_block)
            1306 LOAD_CONST              45 (())

 931        1308 LOAD_FAST                1 (sample)

 932        1310 LOAD_FAST               19 (emb)

 933        1312 LOAD_FAST                3 (encoder_hidden_states)

 934        1314 LOAD_FAST                6 (attention_mask)

 935        1316 LOAD_FAST                7 (cross_attention_kwargs)

 936        1318 LOAD_FAST               11 (encoder_attention_mask)

 930        1320 LOAD_CONST              43 (('hidden_states', 'temb', 'encoder_hidden_states', 'attention_mask', 'cross_attention_kwargs', 'encoder_attention_mask'))
            1322 BUILD_CONST_KEY_MAP      6

 937        1324 LOAD_FAST               35 (additional_residuals)

 930        1326 DICT_MERGE               1
            1328 CALL_FUNCTION_EX         1
            1330 UNPACK_SEQUENCE          2
            1332 STORE_FAST               1 (sample)
            1334 STORE_FAST              36 (res_samples)
            1336 JUMP_FORWARD            25 (to 1388)

 940     >> 1338 LOAD_FAST               34 (downsample_block)
            1340 LOAD_FAST                1 (sample)
            1342 LOAD_FAST               19 (emb)
            1344 LOAD_CONST              44 (('hidden_states', 'temb'))
            1346 CALL_FUNCTION_KW         2
            1348 UNPACK_SEQUENCE          2
            1350 STORE_FAST               1 (sample)
            1352 STORE_FAST              36 (res_samples)

 942        1354 LOAD_FAST               32 (is_adapter)
            1356 EXTENDED_ARG             2
            1358 POP_JUMP_IF_FALSE      694 (to 1388)
            1360 LOAD_GLOBAL             21 (len)
            1362 LOAD_FAST                9 (down_block_additional_residuals)
            1364 CALL_FUNCTION            1
            1366 LOAD_CONST              14 (0)
            1368 COMPARE_OP               4 (>)
            1370 EXTENDED_ARG             2
            1372 POP_JUMP_IF_FALSE      694 (to 1388)

 943        1374 LOAD_FAST                1 (sample)
            1376 LOAD_FAST                9 (down_block_additional_residuals)
            1378 LOAD_METHOD             43 (pop)
            1380 LOAD_CONST              14 (0)
            1382 CALL_METHOD              1
            1384 INPLACE_ADD
            1386 STORE_FAST               1 (sample)

 945     >> 1388 LOAD_FAST               33 (down_block_res_samples)
            1390 LOAD_FAST               36 (res_samples)
            1392 INPLACE_ADD
            1394 STORE_FAST              33 (down_block_res_samples)
            1396 EXTENDED_ARG             2
            1398 JUMP_ABSOLUTE          621 (to 1242)

 947     >> 1400 LOAD_FAST               31 (is_controlnet)
            1402 EXTENDED_ARG             2
            1404 POP_JUMP_IF_FALSE      727 (to 1454)

 948        1406 LOAD_CONST              45 (())
            1408 STORE_FAST              37 (new_down_block_res_samples)

 950        1410 LOAD_GLOBAL             48 (zip)

 951        1412 LOAD_FAST               33 (down_block_res_samples)
            1414 LOAD_FAST                9 (down_block_additional_residuals)

 950        1416 CALL_FUNCTION            2
            1418 GET_ITER
         >> 1420 FOR_ITER                14 (to 1450)
            1422 UNPACK_SEQUENCE          2
            1424 STORE_FAST              38 (down_block_res_sample)
            1426 STORE_FAST              39 (down_block_additional_residual)

 953        1428 LOAD_FAST               38 (down_block_res_sample)
            1430 LOAD_FAST               39 (down_block_additional_residual)
            1432 BINARY_ADD
            1434 STORE_FAST              38 (down_block_res_sample)

 954        1436 LOAD_FAST               37 (new_down_block_res_samples)
            1438 LOAD_FAST               38 (down_block_res_sample)
            1440 BUILD_TUPLE              1
            1442 BINARY_ADD
            1444 STORE_FAST              37 (new_down_block_res_samples)
            1446 EXTENDED_ARG             2
            1448 JUMP_ABSOLUTE          710 (to 1420)

 956     >> 1450 LOAD_FAST               37 (new_down_block_res_samples)
            1452 STORE_FAST              33 (down_block_res_samples)

 959     >> 1454 LOAD_FAST                0 (self)
            1456 LOAD_ATTR               49 (mid_block)
            1458 LOAD_CONST               3 (None)
            1460 IS_OP                    1
            1462 EXTENDED_ARG             2
            1464 POP_JUMP_IF_FALSE      744 (to 1488)

 960        1466 LOAD_FAST                0 (self)
            1468 LOAD_ATTR               49 (mid_block)

 961        1470 LOAD_FAST                1 (sample)

 962        1472 LOAD_FAST               19 (emb)

 963        1474 LOAD_FAST                3 (encoder_hidden_states)

 964        1476 LOAD_FAST                6 (attention_mask)

 965        1478 LOAD_FAST                7 (cross_attention_kwargs)

 966        1480 LOAD_FAST               11 (encoder_attention_mask)

 960        1482 LOAD_CONST              46 (('encoder_hidden_states', 'attention_mask', 'cross_attention_kwargs', 'encoder_attention_mask'))
            1484 CALL_FUNCTION_KW         6
            1486 STORE_FAST               1 (sample)

 969     >> 1488 LOAD_FAST               31 (is_controlnet)
            1490 EXTENDED_ARG             2
            1492 POP_JUMP_IF_FALSE      751 (to 1502)

 970        1494 LOAD_FAST                1 (sample)
            1496 LOAD_FAST               10 (mid_block_additional_residual)
            1498 BINARY_ADD
            1500 STORE_FAST               1 (sample)

 973     >> 1502 LOAD_GLOBAL             50 (enumerate)
            1504 LOAD_FAST                0 (self)
            1506 LOAD_ATTR               51 (up_blocks)
            1508 CALL_FUNCTION            1
            1510 GET_ITER
         >> 1512 FOR_ITER                81 (to 1676)
            1514 UNPACK_SEQUENCE          2
            1516 STORE_FAST              40 (i)
            1518 STORE_FAST              41 (upsample_block)

 974        1520 LOAD_FAST               40 (i)
            1522 LOAD_GLOBAL             21 (len)
            1524 LOAD_FAST                0 (self)
            1526 LOAD_ATTR               51 (up_blocks)
            1528 CALL_FUNCTION            1
            1530 LOAD_CONST               9 (1)
            1532 BINARY_SUBTRACT
            1534 COMPARE_OP               2 (==)
            1536 STORE_FAST              42 (is_final_block)

 976        1538 LOAD_FAST               33 (down_block_res_samples)
            1540 LOAD_GLOBAL             21 (len)
            1542 LOAD_FAST               41 (upsample_block)
            1544 LOAD_ATTR               52 (resnets)
            1546 CALL_FUNCTION            1
            1548 UNARY_NEGATIVE
            1550 LOAD_CONST               3 (None)
            1552 BUILD_SLICE              2
            1554 BINARY_SUBSCR
            1556 STORE_FAST              36 (res_samples)

 977        1558 LOAD_FAST               33 (down_block_res_samples)
            1560 LOAD_CONST               3 (None)
            1562 LOAD_GLOBAL             21 (len)
            1564 LOAD_FAST               41 (upsample_block)
            1566 LOAD_ATTR               52 (resnets)
            1568 CALL_FUNCTION            1
            1570 UNARY_NEGATIVE
            1572 BUILD_SLICE              2
            1574 BINARY_SUBSCR
            1576 STORE_FAST              33 (down_block_res_samples)

 981        1578 LOAD_FAST               42 (is_final_block)
            1580 EXTENDED_ARG             3
            1582 POP_JUMP_IF_TRUE       804 (to 1608)
            1584 LOAD_FAST               13 (forward_upsample_size)
            1586 EXTENDED_ARG             3
            1588 POP_JUMP_IF_FALSE      804 (to 1608)

 982        1590 LOAD_FAST               33 (down_block_res_samples)
            1592 LOAD_CONST              18 (-1)
            1594 BINARY_SUBSCR
            1596 LOAD_ATTR                2 (shape)
            1598 LOAD_CONST               1 (2)
            1600 LOAD_CONST               3 (None)
            1602 BUILD_SLICE              2
            1604 BINARY_SUBSCR
            1606 STORE_FAST              14 (upsample_size)

 984     >> 1608 LOAD_GLOBAL             46 (hasattr)
            1610 LOAD_FAST               41 (upsample_block)
            1612 LOAD_CONST              41 ('has_cross_attention')
            1614 CALL_FUNCTION            2
            1616 EXTENDED_ARG             3
            1618 POP_JUMP_IF_FALSE      828 (to 1656)
            1620 LOAD_FAST               41 (upsample_block)
            1622 LOAD_ATTR               47 (has_cross_attention)
            1624 EXTENDED_ARG             3
            1626 POP_JUMP_IF_FALSE      828 (to 1656)

 985        1628 LOAD_FAST               41 (upsample_block)

 986        1630 LOAD_FAST                1 (sample)

 987        1632 LOAD_FAST               19 (emb)

 988        1634 LOAD_FAST               36 (res_samples)

 989        1636 LOAD_FAST                3 (encoder_hidden_states)

 990        1638 LOAD_FAST                7 (cross_attention_kwargs)

 991        1640 LOAD_FAST               14 (upsample_size)

 992        1642 LOAD_FAST                6 (attention_mask)

 993        1644 LOAD_FAST               11 (encoder_attention_mask)

 985        1646 LOAD_CONST              47 (('hidden_states', 'temb', 'res_hidden_states_tuple', 'encoder_hidden_states', 'cross_attention_kwargs', 'upsample_size', 'attention_mask', 'encoder_attention_mask'))
            1648 CALL_FUNCTION_KW         8
            1650 STORE_FAST               1 (sample)
            1652 EXTENDED_ARG             2
            1654 JUMP_ABSOLUTE          756 (to 1512)

 996     >> 1656 LOAD_FAST               41 (upsample_block)

 997        1658 LOAD_FAST                1 (sample)
            1660 LOAD_FAST               19 (emb)
            1662 LOAD_FAST               36 (res_samples)
            1664 LOAD_FAST               14 (upsample_size)

 996        1666 LOAD_CONST              48 (('hidden_states', 'temb', 'res_hidden_states_tuple', 'upsample_size'))
            1668 CALL_FUNCTION_KW         4
            1670 STORE_FAST               1 (sample)
            1672 EXTENDED_ARG             2
            1674 JUMP_ABSOLUTE          756 (to 1512)

1001     >> 1676 LOAD_FAST                0 (self)
            1678 LOAD_ATTR               53 (conv_norm_out)
            1680 EXTENDED_ARG             3
            1682 POP_JUMP_IF_FALSE      852 (to 1704)

1002        1684 LOAD_FAST                0 (self)
            1686 LOAD_METHOD             53 (conv_norm_out)
            1688 LOAD_FAST                1 (sample)
            1690 CALL_METHOD              1
            1692 STORE_FAST               1 (sample)

1003        1694 LOAD_FAST                0 (self)
            1696 LOAD_METHOD             54 (conv_act)
            1698 LOAD_FAST                1 (sample)
            1700 CALL_METHOD              1
            1702 STORE_FAST               1 (sample)

1004     >> 1704 LOAD_FAST                0 (self)
            1706 LOAD_METHOD             55 (conv_out)
            1708 LOAD_FAST                1 (sample)
            1710 CALL_METHOD              1
            1712 STORE_FAST               1 (sample)

1006        1714 LOAD_FAST               12 (return_dict)
            1716 EXTENDED_ARG             3
            1718 POP_JUMP_IF_TRUE       863 (to 1726)

1007        1720 LOAD_FAST                1 (sample)
            1722 BUILD_TUPLE              1
            1724 RETURN_VALUE

1009     >> 1726 LOAD_GLOBAL             56 (UNet2DConditionOutput)
            1728 LOAD_FAST                1 (sample)
            1730 LOAD_CONST              49 (('sample',))
            1732 CALL_FUNCTION_KW         1
            1734 RETURN_VALUE

 ========== TorchDynamo Stack Trace ==========
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/torch/_dynamo/convert_frame.py", line 324, in _compile
    out_code = transform_code_object(code, transform)
  File "/usr/local/lib/python3.10/dist-packages/torch/_dynamo/bytecode_transformation.py", line 445, in transform_code_object
    transformations(instructions, code_options)
  File "/usr/local/lib/python3.10/dist-packages/torch/_dynamo/convert_frame.py", line 311, in transform
    tracer.run()
  File "/usr/local/lib/python3.10/dist-packages/torch/_dynamo/symbolic_convert.py", line 1726, in run
    super().run()
  File "/usr/local/lib/python3.10/dist-packages/torch/_dynamo/symbolic_convert.py", line 576, in run
    and self.step()
  File "/usr/local/lib/python3.10/dist-packages/torch/_dynamo/symbolic_convert.py", line 540, in step
    getattr(self, inst.opname)(inst)
  File "/usr/local/lib/python3.10/dist-packages/torch/_dynamo/symbolic_convert.py", line 342, in wrapper
    return inner_fn(self, inst)
  File "/usr/local/lib/python3.10/dist-packages/torch/_dynamo/symbolic_convert.py", line 965, in CALL_FUNCTION
    self.call_function(fn, args, {})
  File "/usr/local/lib/python3.10/dist-packages/torch/_dynamo/symbolic_convert.py", line 474, in call_function
    self.push(fn.call_function(self, args, kwargs))
  File "/usr/local/lib/python3.10/dist-packages/torch/_dynamo/variables/functions.py", line 291, in call_function
    return super().call_function(tx, args, kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torch/_dynamo/variables/functions.py", line 259, in call_function
    return super().call_function(tx, args, kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torch/_dynamo/variables/functions.py", line 92, in call_function
    return tx.inline_user_function_return(
  File "/usr/local/lib/python3.10/dist-packages/torch/_dynamo/symbolic_convert.py", line 510, in inline_user_function_return
    result = InliningInstructionTranslator.inline_call(self, fn, args, kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torch/_dynamo/symbolic_convert.py", line 1806, in inline_call
    return cls.inline_call_(parent, func, args, kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torch/_dynamo/symbolic_convert.py", line 1829, in inline_call_
    unimplemented(
  File "/usr/local/lib/python3.10/dist-packages/torch/_dynamo/exc.py", line 71, in unimplemented
    raise Unsupported(msg)
torch._dynamo.exc.Unsupported: inline in skipfiles: Logger.info  | info /usr/lib/python3.10/logging/__init__.py


========== The above exception occurred while processing the following code ==========

  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.10/dist-packages/ipykernel_launcher.py", line 16, in <module>
    app.launch_new_instance()
  File "/usr/local/lib/python3.10/dist-packages/traitlets/config/application.py", line 992, in launch_instance
    app.start()
  File "/usr/local/lib/python3.10/dist-packages/ipykernel/kernelapp.py", line 619, in start
    self.io_loop.start()
  File "/usr/local/lib/python3.10/dist-packages/tornado/platform/asyncio.py", line 195, in start
    self.asyncio_loop.run_forever()
  File "/usr/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
    self._run_once()
  File "/usr/lib/python3.10/asyncio/base_events.py", line 1909, in _run_once
    handle._run()
  File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/local/lib/python3.10/dist-packages/tornado/ioloop.py", line 685, in <lambda>
    lambda f: self._run_callback(functools.partial(callback, future))
  File "/usr/local/lib/python3.10/dist-packages/tornado/ioloop.py", line 738, in _run_callback
    ret = callback()
  File "/usr/local/lib/python3.10/dist-packages/tornado/gen.py", line 825, in inner
    self.ctx_run(self.run)
  File "/usr/local/lib/python3.10/dist-packages/tornado/gen.py", line 786, in run
    yielded = self.gen.send(value)
  File "/usr/local/lib/python3.10/dist-packages/ipykernel/kernelbase.py", line 361, in process_one
    yield gen.maybe_future(dispatch(*args))
  File "/usr/local/lib/python3.10/dist-packages/tornado/gen.py", line 234, in wrapper
    yielded = ctx_run(next, result)
  File "/usr/local/lib/python3.10/dist-packages/ipykernel/kernelbase.py", line 261, in dispatch_shell
    yield gen.maybe_future(handler(stream, idents, msg))
  File "/usr/local/lib/python3.10/dist-packages/tornado/gen.py", line 234, in wrapper
    yielded = ctx_run(next, result)
  File "/usr/local/lib/python3.10/dist-packages/ipykernel/kernelbase.py", line 539, in execute_request
    self.do_execute(
  File "/usr/local/lib/python3.10/dist-packages/tornado/gen.py", line 234, in wrapper
    yielded = ctx_run(next, result)
  File "/usr/local/lib/python3.10/dist-packages/ipykernel/ipkernel.py", line 302, in do_execute
    res = shell.run_cell(code, store_history=store_history, silent=silent)
  File "/usr/local/lib/python3.10/dist-packages/ipykernel/zmqshell.py", line 539, in run_cell
    return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py", line 2975, in run_cell
    result = self._run_cell(
  File "/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py", line 3030, in _run_cell
    return runner(coro)
  File "/usr/local/lib/python3.10/dist-packages/IPython/core/async_helpers.py", line 78, in _pseudo_sync_runner
    coro.send(None)
  File "/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py", line 3257, in run_cell_async
    has_raised = await self.run_ast_nodes(code_ast.body, cell_name,
  File "/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py", line 3473, in run_ast_nodes
    if (await self.run_code(code, result,  async_=asy)):
  File "/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py", line 3553, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-6-0932307aec37>", line 103, in <cell line: 101>
    image = base(
  File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py", line 812, in __call__
    noise_pred = self.unet(
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/diffusers/models/unet_2d_condition.py", line 709, in forward
    def forward(
  File "/usr/local/lib/python3.10/dist-packages/diffusers/models/unet_2d_condition.py", line 762, in forward
    logger.info("Forward upsample size to force interpolation output size.")

==========
---------------------------------------------------------------------------
Unsupported                               Traceback (most recent call last)
<ipython-input-6-0932307aec37> in <cell line: 101>()
    101 with torch.no_grad():
    102     # run both experts
--> 103     image = base(
    104         prompt=prompt,
    105         num_inference_steps=n_steps,

24 frames
/usr/local/lib/python3.10/dist-packages/torch/_dynamo/exc.py in unimplemented(msg)
     69 def unimplemented(msg: str):
     70     assert msg != os.environ.get("BREAK", False)
---> 71     raise Unsupported(msg)
     72 
     73 

Unsupported: inline in skipfiles: Logger.info  | info /usr/lib/python3.10/logging/__init__.py

image.png
confirmed torch v2

The same error

Sign up or log in to comment