Update app.py
Browse files
app.py
CHANGED
@@ -897,7 +897,6 @@ def visual_prompt_preview(img, prompt_mode):
|
|
897 |
|
898 |
|
899 |
|
900 |
-
|
901 |
image_example_list = [
|
902 |
[
|
903 |
this_dir + "/Examples/000000480122.jpg",
|
@@ -905,7 +904,7 @@ image_example_list = [
|
|
905 |
"OBJ365",
|
906 |
"",
|
907 |
"",
|
908 |
-
|
909 |
],
|
910 |
[
|
911 |
this_dir + "/Examples/20231222.jpg",
|
@@ -934,7 +933,7 @@ image_example_list = [
|
|
934 |
"Custom-List",
|
935 |
"manholecover, bollard, person, car, motobike",
|
936 |
"",
|
937 |
-
|
938 |
],
|
939 |
[
|
940 |
this_dir + "/Examples/cat.jpg",
|
@@ -942,7 +941,7 @@ image_example_list = [
|
|
942 |
"Custom-List",
|
943 |
"cat_eye, cat_ear, candle",
|
944 |
" ",
|
945 |
-
|
946 |
],
|
947 |
[
|
948 |
this_dir + "/Examples/00000.jpg",
|
@@ -950,7 +949,7 @@ image_example_list = [
|
|
950 |
"COCO-80",
|
951 |
"",
|
952 |
"",
|
953 |
-
|
954 |
],
|
955 |
|
956 |
[
|
@@ -959,7 +958,7 @@ image_example_list = [
|
|
959 |
"COCO-80",
|
960 |
"",
|
961 |
"",
|
962 |
-
|
963 |
],
|
964 |
[
|
965 |
this_dir + "/Examples/sa_7842964.jpg",
|
@@ -975,7 +974,7 @@ image_example_list = [
|
|
975 |
"OBJ365",
|
976 |
"",
|
977 |
"",
|
978 |
-
|
979 |
],
|
980 |
[
|
981 |
this_dir + "/Examples/sa_7842967.jpg",
|
@@ -983,7 +982,7 @@ image_example_list = [
|
|
983 |
"COCO-80",
|
984 |
"",
|
985 |
"",
|
986 |
-
|
987 |
],
|
988 |
[
|
989 |
this_dir + "/Examples/sa_7842976.jpg",
|
@@ -991,7 +990,7 @@ image_example_list = [
|
|
991 |
"COCO-80",
|
992 |
"",
|
993 |
"",
|
994 |
-
|
995 |
],
|
996 |
[
|
997 |
this_dir + "/Examples/sa_7842992.jpg",
|
@@ -999,7 +998,7 @@ image_example_list = [
|
|
999 |
"COCO-80",
|
1000 |
"",
|
1001 |
"",
|
1002 |
-
|
1003 |
],
|
1004 |
[
|
1005 |
this_dir + "/Examples/sa_7842994.jpg",
|
@@ -1007,7 +1006,7 @@ image_example_list = [
|
|
1007 |
"COCO-80",
|
1008 |
"",
|
1009 |
"",
|
1010 |
-
|
1011 |
],
|
1012 |
|
1013 |
|
@@ -1021,7 +1020,7 @@ video_example_list = [
|
|
1021 |
"COCO-80",
|
1022 |
"",
|
1023 |
"",
|
1024 |
-
|
1025 |
],
|
1026 |
[
|
1027 |
this_dir + "/Examples/bike.mp4",
|
@@ -1029,7 +1028,7 @@ video_example_list = [
|
|
1029 |
"Custom-List",
|
1030 |
"backpack, bollard",
|
1031 |
"",
|
1032 |
-
|
1033 |
],
|
1034 |
[
|
1035 |
this_dir + "/Examples/horse.mp4",
|
@@ -1037,7 +1036,7 @@ video_example_list = [
|
|
1037 |
"",
|
1038 |
"",
|
1039 |
"the left horse",
|
1040 |
-
|
1041 |
],
|
1042 |
[
|
1043 |
this_dir + "/Examples/racing_car2.mp4",
|
@@ -1045,7 +1044,7 @@ video_example_list = [
|
|
1045 |
"COCO-80",
|
1046 |
"",
|
1047 |
"",
|
1048 |
-
|
1049 |
],
|
1050 |
[
|
1051 |
this_dir + "/Examples/racing_car3.mp4",
|
@@ -1053,7 +1052,7 @@ video_example_list = [
|
|
1053 |
"COCO-80",
|
1054 |
"",
|
1055 |
"",
|
1056 |
-
|
1057 |
],
|
1058 |
[
|
1059 |
this_dir + "/Examples/street.mp4",
|
@@ -1061,7 +1060,7 @@ video_example_list = [
|
|
1061 |
"OBJ365",
|
1062 |
"",
|
1063 |
"",
|
1064 |
-
|
1065 |
],
|
1066 |
[
|
1067 |
this_dir + "/Examples/train.mp4",
|
@@ -1069,10 +1068,11 @@ video_example_list = [
|
|
1069 |
"COCO-80",
|
1070 |
"",
|
1071 |
"",
|
1072 |
-
|
1073 |
],
|
1074 |
]
|
1075 |
|
|
|
1076 |
with gr.Blocks(theme=gr.themes.Default()) as demo:
|
1077 |
# gr.Markdown('# GLEE: General Object Foundation Model for Images and Videos at Scale')
|
1078 |
|
|
|
897 |
|
898 |
|
899 |
|
|
|
900 |
image_example_list = [
|
901 |
[
|
902 |
this_dir + "/Examples/000000480122.jpg",
|
|
|
904 |
"OBJ365",
|
905 |
"",
|
906 |
"",
|
907 |
+
50,
|
908 |
],
|
909 |
[
|
910 |
this_dir + "/Examples/20231222.jpg",
|
|
|
933 |
"Custom-List",
|
934 |
"manholecover, bollard, person, car, motobike",
|
935 |
"",
|
936 |
+
10,
|
937 |
],
|
938 |
[
|
939 |
this_dir + "/Examples/cat.jpg",
|
|
|
941 |
"Custom-List",
|
942 |
"cat_eye, cat_ear, candle",
|
943 |
" ",
|
944 |
+
10,
|
945 |
],
|
946 |
[
|
947 |
this_dir + "/Examples/00000.jpg",
|
|
|
949 |
"COCO-80",
|
950 |
"",
|
951 |
"",
|
952 |
+
20,
|
953 |
],
|
954 |
|
955 |
[
|
|
|
958 |
"COCO-80",
|
959 |
"",
|
960 |
"",
|
961 |
+
20,
|
962 |
],
|
963 |
[
|
964 |
this_dir + "/Examples/sa_7842964.jpg",
|
|
|
974 |
"OBJ365",
|
975 |
"",
|
976 |
"",
|
977 |
+
50,
|
978 |
],
|
979 |
[
|
980 |
this_dir + "/Examples/sa_7842967.jpg",
|
|
|
982 |
"COCO-80",
|
983 |
"",
|
984 |
"",
|
985 |
+
20,
|
986 |
],
|
987 |
[
|
988 |
this_dir + "/Examples/sa_7842976.jpg",
|
|
|
990 |
"COCO-80",
|
991 |
"",
|
992 |
"",
|
993 |
+
20,
|
994 |
],
|
995 |
[
|
996 |
this_dir + "/Examples/sa_7842992.jpg",
|
|
|
998 |
"COCO-80",
|
999 |
"",
|
1000 |
"",
|
1001 |
+
20,
|
1002 |
],
|
1003 |
[
|
1004 |
this_dir + "/Examples/sa_7842994.jpg",
|
|
|
1006 |
"COCO-80",
|
1007 |
"",
|
1008 |
"",
|
1009 |
+
20,
|
1010 |
],
|
1011 |
|
1012 |
|
|
|
1020 |
"COCO-80",
|
1021 |
"",
|
1022 |
"",
|
1023 |
+
10,
|
1024 |
],
|
1025 |
[
|
1026 |
this_dir + "/Examples/bike.mp4",
|
|
|
1028 |
"Custom-List",
|
1029 |
"backpack, bollard",
|
1030 |
"",
|
1031 |
+
5,
|
1032 |
],
|
1033 |
[
|
1034 |
this_dir + "/Examples/horse.mp4",
|
|
|
1036 |
"",
|
1037 |
"",
|
1038 |
"the left horse",
|
1039 |
+
10,
|
1040 |
],
|
1041 |
[
|
1042 |
this_dir + "/Examples/racing_car2.mp4",
|
|
|
1044 |
"COCO-80",
|
1045 |
"",
|
1046 |
"",
|
1047 |
+
15,
|
1048 |
],
|
1049 |
[
|
1050 |
this_dir + "/Examples/racing_car3.mp4",
|
|
|
1052 |
"COCO-80",
|
1053 |
"",
|
1054 |
"",
|
1055 |
+
15,
|
1056 |
],
|
1057 |
[
|
1058 |
this_dir + "/Examples/street.mp4",
|
|
|
1060 |
"OBJ365",
|
1061 |
"",
|
1062 |
"",
|
1063 |
+
15,
|
1064 |
],
|
1065 |
[
|
1066 |
this_dir + "/Examples/train.mp4",
|
|
|
1068 |
"COCO-80",
|
1069 |
"",
|
1070 |
"",
|
1071 |
+
15,
|
1072 |
],
|
1073 |
]
|
1074 |
|
1075 |
+
|
1076 |
with gr.Blocks(theme=gr.themes.Default()) as demo:
|
1077 |
# gr.Markdown('# GLEE: General Object Foundation Model for Images and Videos at Scale')
|
1078 |
|