hiscodesmells / florence-2-base

Microsoft's Florence 2 Base

  • Public
  • 242 runs
  • L40S

Input

image
*file

Grayscale input image

string

Input task

Default: "Caption"

string
Shift + Return to add a new line

Text Input(Optional)

Output

{'<REFERRING_EXPRESSION_SEGMENTATION>': {'polygons': [[[1430.528076171875, 770.54248046875, 1434.6240234375, 767.8125, 1436.672119140625, 766.447509765625, 1438.7200927734375, 766.447509765625, 1442.8160400390625, 765.08251953125, 1444.864013671875, 763.717529296875, 1448.9600830078125, 762.3524780273438, 1451.008056640625, 762.3524780273438, 1455.1041259765625, 760.9874877929688, 1457.152099609375, 759.6224975585938, 1461.248046875, 758.2575073242188, 1463.2960205078125, 758.2575073242188, 1467.39208984375, 756.8925170898438, 1469.4400634765625, 756.8925170898438, 1473.5360107421875, 754.1624755859375, 1475.5841064453125, 754.1624755859375, 1479.6800537109375, 751.4324951171875, 1481.72802734375, 751.4324951171875, 1485.8240966796875, 750.0675048828125, 1487.8720703125, 748.7025146484375, 1491.968017578125, 747.3375244140625, 1496.0640869140625, 747.3375244140625, 1500.1600341796875, 745.9725341796875, 1504.256103515625, 744.6074829101562, 1510.4000244140625, 744.6074829101562, 1518.592041015625, 743.2424926757812, 1528.83203125, 743.2424926757812, 1537.0240478515625, 741.8775024414062, 1541.1201171875, 741.8775024414062, 1543.1680908203125, 740.5125122070312, 1547.2640380859375, 737.7825317382812, 1549.3121337890625, 735.052490234375, 1551.360107421875, 732.322509765625, 1553.4080810546875, 729.592529296875, 1555.4560546875, 726.8624877929688, 1557.5040283203125, 724.1325073242188, 1559.5521240234375, 720.0374755859375, 1561.60009765625, 717.3074951171875, 1563.6480712890625, 714.5775146484375, 1565.696044921875, 711.8475341796875, 1567.7440185546875, 709.1174926757812, 1569.7921142578125, 706.3875122070312, 1571.840087890625, 703.6575317382812, 1573.8880615234375, 700.927490234375, 1575.93603515625, 698.197509765625, 1577.984130859375, 695.467529296875, 1580.0321044921875, 692.7374877929688, 1584.1280517578125, 690.0075073242188, 1586.176025390625, 688.6425170898438, 1590.2720947265625, 687.2775268554688, 1594.3680419921875, 685.9124755859375, 1610.7520751953125, 685.9124755859375, 1618.944091796875, 687.2775268554688, 1625.088134765625, 688.6425170898438, 1629.18408203125, 688.6425170898438, 1633.280029296875, 690.0075073242188, 1637.3760986328125, 691.3724975585938, 1641.4720458984375, 692.7374877929688, 1645.568115234375, 692.7374877929688, 1649.6640625, 694.1024780273438, 1651.7120361328125, 695.467529296875, 1655.80810546875, 696.83251953125, 1657.8560791015625, 696.83251953125, 1661.9520263671875, 698.197509765625, 1666.048095703125, 699.5625, 1668.0960693359375, 700.927490234375, 1672.192138671875, 702.29248046875, 1674.2401123046875, 703.6575317382812, 1676.2880859375, 705.0225219726562, 1680.384033203125, 706.3875122070312, 1682.43212890625, 707.7525024414062, 1684.4801025390625, 709.1174926757812, 1686.528076171875, 710.4824829101562, 1690.6240234375, 711.8475341796875, 1692.672119140625, 714.5775146484375, 1696.76806640625, 715.9425048828125, 1698.8160400390625, 717.3074951171875, 1702.912109375, 720.0374755859375, 1704.9600830078125, 721.4025268554688, 1709.0560302734375, 724.1325073242188, 1713.152099609375, 726.8624877929688, 1717.248046875, 729.592529296875, 1721.3441162109375, 733.6875, 1725.4400634765625, 737.7825317382812, 1727.488037109375, 737.7825317382812, 1731.5841064453125, 741.8775024414062, 1735.6800537109375, 744.6074829101562, 1741.8240966796875, 750.0675048828125, 1750.01611328125, 758.2575073242188, 1752.0640869140625, 760.9874877929688, 1754.112060546875, 763.717529296875, 1754.112060546875, 766.447509765625, 1756.1600341796875, 770.54248046875, 1756.1600341796875, 776.0025024414062, 1754.112060546875, 777.3674926757812, 1754.112060546875, 784.1925048828125, 1754.112060546875, 793.7474975585938, 1752.0640869140625, 800.572509765625, 1752.0640869140625, 801.9375, 1750.01611328125, 807.3975219726562, 1750.01611328125, 814.2225341796875, 1750.01611328125, 821.0474853515625, 1747.9681396484375, 822.4124755859375, 1747.9681396484375, 826.5075073242188, 1747.9681396484375, 831.967529296875, 1747.9681396484375, 834.697509765625, 1750.01611328125, 837.427490234375, 1752.0640869140625, 840.1575317382812, 1754.112060546875, 842.8875122070312, 1756.1600341796875, 845.6174926757812, 1758.2081298828125, 848.3475341796875, 1760.256103515625, 851.0775146484375, 1764.35205078125, 855.1724853515625, 1766.4000244140625, 857.9025268554688, 1768.4481201171875, 860.6325073242188, 1770.49609375, 863.3624877929688, 1772.5440673828125, 866.092529296875, 1774.592041015625, 868.822509765625, 1776.64013671875, 871.552490234375, 1778.6881103515625, 874.2825317382812, 1780.736083984375, 877.0125122070312, 1782.7840576171875, 879.7424926757812, 1784.83203125, 882.4725341796875, 1786.880126953125, 885.2025146484375, 1786.880126953125, 887.9324951171875, 1788.9281005859375, 890.6625366210938, 1788.9281005859375, 892.0275268554688, 1790.97607421875, 894.7575073242188, 1790.97607421875, 896.1224975585938, 1793.0240478515625, 898.8524780273438, 1793.0240478515625, 900.217529296875, 1795.0721435546875, 902.947509765625, 1795.0721435546875, 904.3125, 1797.1201171875, 907.04248046875, 1799.1680908203125, 909.7725219726562, 1801.216064453125, 912.5025024414062, 1801.216064453125, 915.2324829101562, 1803.2640380859375, 917.9625244140625, 1803.2640380859375, 920.6925048828125, 1805.3121337890625, 923.4224853515625, 1805.3121337890625, 926.1525268554688, 1807.360107421875, 928.8825073242188, 1807.360107421875, 932.9774780273438, 1807.360107421875, 937.072509765625, 1805.3121337890625, 939.802490234375, 1805.3121337890625, 942.5325317382812, 1803.2640380859375, 945.2625122070312, 1801.216064453125, 946.6275024414062, 1799.1680908203125, 947.9924926757812, 1797.1201171875, 949.3574829101562, 1795.0721435546875, 949.3574829101562, 1790.97607421875, 950.7225341796875, 1786.880126953125, 950.7225341796875, 1782.7840576171875, 949.3574829101562, 1780.736083984375, 949.3574829101562, 1778.6881103515625, 947.9924926757812, 1776.64013671875, 946.6275024414062, 1774.592041015625, 945.2625122070312, 1772.5440673828125, 945.2625122070312, 1770.49609375, 943.8975219726562, 1768.4481201171875, 942.5325317382812, 1766.4000244140625, 941.16748046875, 1764.35205078125, 939.802490234375, 1762.3040771484375, 938.4375, 1760.256103515625, 937.072509765625, 1758.2081298828125, 935.70751953125, 1754.112060546875, 932.9774780273438, 1752.0640869140625, 931.6124877929688, 1750.01611328125, 930.2474975585938, 1747.9681396484375, 928.8825073242188, 1745.9200439453125, 927.5175170898438, 1743.8720703125, 926.1525268554688, 1741.8240966796875, 924.7875366210938, 1739.776123046875, 923.4224853515625, 1737.72802734375, 922.0574951171875, 1735.6800537109375, 920.6925048828125, 1733.632080078125, 919.3275146484375, 1731.5841064453125, 917.9625244140625, 1729.5361328125, 916.5975341796875, 1727.488037109375, 915.2324829101562, 1725.4400634765625, 913.8674926757812, 1723.39208984375, 912.5025024414062, 1721.3441162109375, 911.1375122070312, 1719.296142578125, 909.7725219726562, 1717.248046875, 909.7725219726562, 1715.2000732421875, 908.4075317382812, 1713.152099609375, 907.04248046875, 1711.1041259765625, 907.04248046875, 1709.0560302734375, 905.677490234375, 1707.008056640625, 904.3125, 1704.9600830078125, 904.3125, 1702.912109375, 902.947509765625, 1700.8641357421875, 902.947509765625, 1698.8160400390625, 901.58251953125, 1696.76806640625, 900.217529296875, 1694.7200927734375, 900.217529296875, 1692.672119140625, 898.8524780273438, 1690.6240234375, 898.8524780273438, 1688.5760498046875, 897.4874877929688, 1686.528076171875, 896.1224975585938, 1684.4801025390625, 896.1224975585938, 1682.43212890625, 894.7575073242188, 1680.384033203125, 894.7575073242188, 1678.3360595703125, 893.3925170898438, 1676.2880859375, 892.0275268554688, 1674.2401123046875, 892.0275268554688, 1672.192138671875, 890.6625366210938, 1670.14404296875, 890.6625366210938, 1668.0960693359375, 889.2974853515625, 1666.048095703125, 887.9324951171875, 1664.0001220703125, 887.9324951171875, 1661.9520263671875, 886.5675048828125, 1659.904052734375, 885.2025146484375, 1657.8560791015625, 885.2025146484375, 1655.80810546875, 883.8375244140625, 1653.7601318359375, 882.4725341796875, 1651.7120361328125, 882.4725341796875, 1649.6640625, 881.1074829101562, 1647.6160888671875, 879.7424926757812, 1645.568115234375, 879.7424926757812, 1643.52001953125, 878.3775024414062, 1641.4720458984375, 877.0125122070312, 1639.424072265625, 877.0125122070312, 1637.3760986328125, 875.6475219726562, 1635.328125, 874.2825317382812, 1633.280029296875, 874.2825317382812, 1631.2320556640625, 872.91748046875, 1629.18408203125, 872.91748046875, 1627.1361083984375, 871.552490234375, 1625.088134765625, 871.552490234375, 1623.0400390625, 870.1875, 1620.9920654296875, 868.822509765625, 1618.944091796875, 868.822509765625, 1616.8961181640625, 867.45751953125, 1614.8480224609375, 866.092529296875, 1612.800048828125, 866.092529296875, 1610.7520751953125, 864.7274780273438, 1608.7041015625, 863.3624877929688, 1606.6561279296875, 863.3624877929688, 1604.6080322265625, 861.9974975585938, 1602.56005859375, 861.9974975585938, 1600.5120849609375, 860.6325073242188, 1598.464111328125, 860.6325073242188, 1596.416015625, 859.2675170898438, 1594.3680419921875, 857.9025268554688, 1592.320068359375, 857.9025268554688, 1590.2720947265625, 856.5374755859375, 1588.22412109375, 855.1724853515625, 1586.176025390625, 855.1724853515625, 1584.1280517578125, 853.8074951171875, 1582.080078125, 852.4425048828125, 1580.0321044921875, 852.4425048828125, 1577.984130859375, 851.0775146484375, 1575.93603515625, 851.0775146484375, 1573.8880615234375, 849.7125244140625, 1571.840087890625, 848.3475341796875, 1569.7921142578125, 848.3475341796875, 1567.7440185546875, 846.9824829101562, 1565.696044921875, 845.6174926757812, 1563.6480712890625, 845.6174926757812, 1561.60009765625, 844.2525024414062, 1559.5521240234375, 842.8875122070312, 1557.5040283203125, 842.8875122070312, 1555.4560546875, 841.5225219726562, 1553.4080810546875, 841.5225219726562, 1551.360107421875, 840.1575317382812, 1549.3121337890625, 840.1575317382812, 1547.2640380859375, 838.79248046875, 1545.216064453125, 837.427490234375, 1543.1680908203125, 837.427490234375, 1541.1201171875, 836.0625, 1539.072021484375, 834.697509765625, 1537.0240478515625, 834.697509765625, 1534.97607421875, 833.33251953125, 1532.9281005859375, 831.967529296875, 1530.880126953125, 831.967529296875, 1528.83203125, 830.6024780273438, 1526.7840576171875, 829.2374877929688, 1524.736083984375, 827.8724975585938, 1522.6881103515625, 826.5075073242188, 1520.6400146484375, 825.1425170898438, 1518.592041015625, 823.7775268554688, 1516.5440673828125, 822.4124755859375, 1514.49609375, 821.0474853515625, 1512.4481201171875, 821.0474853515625, 1510.4000244140625, 819.6824951171875, 1508.35205078125, 818.3175048828125, 1506.3040771484375, 816.9525146484375, 1504.256103515625, 815.5875244140625, 1502.2081298828125, 814.2225341796875, 1500.1600341796875, 812.8574829101562, 1498.112060546875, 811.4924926757812, 1496.0640869140625, 810.1275024414062, 1494.01611328125, 808.7625122070312, 1491.968017578125, 807.3975219726562, 1489.9200439453125, 807.3975219726562, 1487.8720703125, 806.0325317382812, 1485.8240966796875, 804.66748046875, 1483.776123046875, 803.302490234375, 1481.72802734375, 801.9375, 1479.6800537109375, 801.9375, 1477.632080078125, 800.572509765625, 1475.5841064453125, 800.572509765625, 1473.5360107421875, 799.20751953125, 1471.488037109375, 799.20751953125, 1469.4400634765625, 797.842529296875, 1467.39208984375, 797.842529296875, 1465.3441162109375, 796.4774780273438, 1463.2960205078125, 796.4774780273438, 1461.248046875, 795.1124877929688, 1459.2000732421875, 793.7474975585938, 1457.152099609375, 793.7474975585938, 1455.1041259765625, 792.3825073242188, 1453.0560302734375, 792.3825073242188, 1451.008056640625, 791.0175170898438, 1448.9600830078125, 789.6525268554688, 1446.912109375, 788.2874755859375, 1444.864013671875, 788.2874755859375, 1442.8160400390625, 786.9224853515625, 1440.76806640625, 786.9224853515625, 1438.7200927734375, 785.5574951171875, 1436.672119140625, 784.1925048828125, 1434.6240234375, 782.8275146484375, 1432.5760498046875, 781.4625244140625, 1430.528076171875, 780.0975341796875, 1428.4801025390625, 778.7324829101562, 1428.4801025390625, 777.3674926757812, 1428.4801025390625, 774.6375122070312]]], 'labels': ['']}}
Generated in

Run time and cost

This model costs approximately $0.0025 to run on Replicate, or 400 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia L40S GPU hardware. Predictions typically complete within 3 seconds.

Readme

Contains all the inputs of the Florence 2 Base model