
--- action.py
+++ action.py
... | ... | @@ -33,9 +33,7 @@ |
33 | 33 |
}, 200 |
34 | 34 |
|
35 | 35 |
|
36 |
-crop_size = (512, 512) |
|
37 |
-start_point = (750, 450) |
|
38 |
-tf_toTensor = ToTensor() |
|
36 |
+ |
|
39 | 37 |
|
40 | 38 |
@Action.route('/image_anal') |
41 | 39 |
class fileUpload(Resource): |
... | ... | @@ -47,6 +45,9 @@ |
47 | 45 |
arnn = AttentiveRNN(6, 3, 2) |
48 | 46 |
arnn.load_state_dict(torch.load("weights/ARNN_trained_weight_6_3_2.pt")) |
49 | 47 |
arnn.to(device=device) |
48 |
+ crop_size = (512, 512) |
|
49 |
+ start_point = (750, 450) |
|
50 |
+ tf_toTensor = ToTensor() |
|
50 | 51 |
clasifier = Classifier() |
51 | 52 |
clasifier.load_state_dict(torch.load("weights/Classifier_512.pt")) |
52 | 53 |
clasifier.to(device=device) |
--- database/database.py
+++ database/database.py
... | ... | @@ -85,9 +85,4 @@ |
85 | 85 |
where timestamp between {d_minus} and {d_plus}; |
86 | 86 |
''') |
87 | 87 |
result=cur.fetchall() |
88 |
- return result |
|
89 |
- |
|
90 |
- |
|
91 |
- |
|
92 |
- |
|
93 |
-(No newline at end of file) |
|
88 |
+ return result(No newline at end of file) |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?