윤영준 윤영준 2023-08-23
missing boot up file
@f617e0aebfd20ba549b7c36eb69128802ea07125
action.py
--- action.py
+++ action.py
@@ -33,9 +33,7 @@
             }, 200
 
 
-crop_size = (512, 512)
-start_point = (750, 450)
-tf_toTensor = ToTensor()
+
 
 @Action.route('/image_anal')
 class fileUpload(Resource):
@@ -47,6 +45,9 @@
             arnn = AttentiveRNN(6, 3, 2)
             arnn.load_state_dict(torch.load("weights/ARNN_trained_weight_6_3_2.pt"))
             arnn.to(device=device)
+            crop_size = (512, 512)
+            start_point = (750, 450)
+            tf_toTensor = ToTensor()
             clasifier = Classifier()
             clasifier.load_state_dict(torch.load("weights/Classifier_512.pt"))
             clasifier.to(device=device)
database/database.py
--- database/database.py
+++ database/database.py
@@ -85,9 +85,4 @@
         where timestamp between {d_minus} and {d_plus};
         ''')
         result=cur.fetchall()
-        return result
-    
-
-        
-
-    
(No newline at end of file)
+        return result
(No newline at end of file)
Add a comment
List