Update README.md
Browse files
README.md
CHANGED
@@ -80,17 +80,17 @@ def create_reco_prompt(
|
|
80 |
|
81 |
caption = "a photo of bus and boat; boat is left to bus."
|
82 |
phrases = ["a photo of a bus.", "a photo of a boat."]
|
83 |
-
boxes =
|
84 |
-
prompt = create_reco_prompt(caption, phrases, boxes)
|
85 |
prompt
|
86 |
-
>>> 'a photo of bus and boat; boat is left to bus. <|endoftext|> <
|
|
|
87 |
|
88 |
-
# # A box contains six donuts with varying types of glazes and toppings. <515> <576> <742> <766> chocolate donut. <237> <518> <521> <785> dark vanilla donut. <764> <576> <989> <746> donut with sprinkles. <234> <281> <525> <528> donut with powdered sugar. <516> <259> <768> <515> pink donut. <754> <289> <959> <507> brown donut.
|
89 |
caption = "A box contains six donuts with varying types of glazes and toppings."
|
90 |
phrases = ["chocolate donut.", "dark vanilla donut.", "donut with sprinkles.", "donut with powdered sugar.", "pink donut.", "brown donut."]
|
91 |
-
boxes = [[
|
92 |
prompt = create_reco_prompt(caption, phrases, boxes)
|
93 |
prompt
|
94 |
-
>>> 'A box contains six donuts with varying types of glazes and toppings. <|endoftext|> <
|
95 |
```
|
96 |
|
|
|
80 |
|
81 |
caption = "a photo of bus and boat; boat is left to bus."
|
82 |
phrases = ["a photo of a bus.", "a photo of a boat."]
|
83 |
+
boxes = [[0.702, 0.404, 0.927, 0.601], [0.154, 0.383, 0.311, 0.487]]
|
84 |
+
prompt = create_reco_prompt(caption, phrases, boxes, normalize_boxes=False)
|
85 |
prompt
|
86 |
+
>>> 'a photo of bus and boat; boat is left to bus. <|endoftext|> <bin701> <bin404> <bin926> <bin600> <|startoftext|> a photo of a bus. <|endoftext|> <bin154> <bin383> <bin311> <bin487> <|startoftext|> a photo of a boat. <|endoftext|>'
|
87 |
+
|
88 |
|
|
|
89 |
caption = "A box contains six donuts with varying types of glazes and toppings."
|
90 |
phrases = ["chocolate donut.", "dark vanilla donut.", "donut with sprinkles.", "donut with powdered sugar.", "pink donut.", "brown donut."]
|
91 |
+
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]]
|
92 |
prompt = create_reco_prompt(caption, phrases, boxes)
|
93 |
prompt
|
94 |
+
>>> 'A box contains six donuts with varying types of glazes and toppings. <|endoftext|> <bin514> <bin575> <bin743> <bin766> <|startoftext|> chocolate donut. <|endoftext|> <bin237> <bin517> <bin522> <bin784> <|startoftext|> dark vanilla donut. <|endoftext|> <bin763> <bin575> <bin988> <bin745> <|startoftext|> donut with sprinkles. <|endoftext|> <bin234> <bin281> <bin524> <bin527> <|startoftext|> donut with powdered sugar. <|endoftext|> <bin515> <bin259> <bin767> <bin514> <|startoftext|> pink donut. <|endoftext|> <bin753> <bin290> <bin957> <bin506> <|startoftext|> brown donut. <|endoftext|>'
|
95 |
```
|
96 |
|