Spaces:
Running
Running
Less repetition
Browse files
app.py
CHANGED
@@ -5,6 +5,8 @@ from matplotlib.offsetbox import OffsetImage, AnnotationBbox
|
|
5 |
import tensorflow
|
6 |
from tensorflow.python.framework.ops import disable_eager_execution
|
7 |
import pandas as pd
|
|
|
|
|
8 |
|
9 |
disable_eager_execution()
|
10 |
|
@@ -35,8 +37,6 @@ shapes = ("basic_box", "diagonal_box_split", "horizontal_vertical_box_split", "b
|
|
35 |
"back_slash_plus_box", "forward_slash_plus_box", "hot_dog_box", "hamburger_box", "x_hamburger_box",
|
36 |
"x_hot_dog_box", "x_plus_box")
|
37 |
|
38 |
-
import numpy as np
|
39 |
-
import matplotlib.pyplot as plt
|
40 |
import math
|
41 |
|
42 |
def basic_box_array(image_size):
|
@@ -117,11 +117,6 @@ def add_pixels(array_original, additional_pixels, image_size):
|
|
117 |
return A
|
118 |
|
119 |
|
120 |
-
|
121 |
-
import numpy as np
|
122 |
-
import matplotlib.pyplot as plt
|
123 |
-
import math
|
124 |
-
|
125 |
def basic_box(additional_pixels, density, image_size):
|
126 |
A = basic_box_array(image_size) # Creates the outside edges of the box
|
127 |
# Increase the thickness of each part of the box
|
|
|
5 |
import tensorflow
|
6 |
from tensorflow.python.framework.ops import disable_eager_execution
|
7 |
import pandas as pd
|
8 |
+
import math
|
9 |
+
|
10 |
|
11 |
disable_eager_execution()
|
12 |
|
|
|
37 |
"back_slash_plus_box", "forward_slash_plus_box", "hot_dog_box", "hamburger_box", "x_hamburger_box",
|
38 |
"x_hot_dog_box", "x_plus_box")
|
39 |
|
|
|
|
|
40 |
import math
|
41 |
|
42 |
def basic_box_array(image_size):
|
|
|
117 |
return A
|
118 |
|
119 |
|
|
|
|
|
|
|
|
|
|
|
120 |
def basic_box(additional_pixels, density, image_size):
|
121 |
A = basic_box_array(image_size) # Creates the outside edges of the box
|
122 |
# Increase the thickness of each part of the box
|