j-min commited on
Commit
eb723f4
·
1 Parent(s): a336474

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -6
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 = [[702, 404, 927, 601], [154, 383, 311, 487]]
84
- prompt = create_reco_prompt(caption, phrases, boxes)
85
  prompt
86
- >>> 'a photo of bus and boat; boat is left to bus. <|endoftext|> <bin1370> <bin788> <bin1809> <bin1173> <|startoftext|> a photo of a bus. <|endoftext|> <bin300> <bin747> <bin607> <bin950> <|startoftext|> a photo of a boat. <|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 = [[515, 576, 742, 766], [237, 518, 521, 785], [764, 576, 989, 746], [234, 281, 525, 528], [516, 259, 768, 515], [754, 289, 959, 507]]
92
  prompt = create_reco_prompt(caption, phrases, boxes)
93
  prompt
94
- >>> 'A box contains six donuts with varying types of glazes and toppings. <|endoftext|> <bin1005> <bin1124> <bin1448> <bin1495> <|startoftext|> chocolate donut. <|endoftext|> <bin462> <bin1011> <bin1017> <bin1532> <|startoftext|> dark vanilla donut. <|endoftext|> <bin1491> <bin1124> <bin1930> <bin1456> <|startoftext|> donut with sprinkles. <|endoftext|> <bin457> <bin548> <bin1024> <bin1030> <|startoftext|> donut with powdered sugar. <|endoftext|> <bin1007> <bin505> <bin1498> <bin1005> <|startoftext|> pink donut. <|endoftext|> <bin1471> <bin564> <bin1871> <bin989> <|startoftext|> brown donut. <|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