Spaces:
Running
Running
Commit
·
2bd36d2
1
Parent(s):
7be757f
fix
Browse files
app.py
CHANGED
|
@@ -18,7 +18,6 @@ from models.models import BiFormer
|
|
| 18 |
|
| 19 |
DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
| 20 |
# DEVICE = torch.device('cpu')
|
| 21 |
-
print(DEVICE)
|
| 22 |
|
| 23 |
# Configure logging
|
| 24 |
logging.basicConfig(level=logging.INFO)
|
|
@@ -53,7 +52,6 @@ def initialize_components(config_path='config.toml'):
|
|
| 53 |
positional_encoding=False,
|
| 54 |
dropout=0.15,
|
| 55 |
mode='mean',
|
| 56 |
-
# device="cuda",
|
| 57 |
tr_layer_number=5,
|
| 58 |
out_features=256,
|
| 59 |
num_classes=7
|
|
@@ -314,5 +312,6 @@ def create_demo():
|
|
| 314 |
|
| 315 |
|
| 316 |
if __name__ == "__main__":
|
|
|
|
| 317 |
demo = create_demo()
|
| 318 |
demo.launch()
|
|
|
|
| 18 |
|
| 19 |
DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
| 20 |
# DEVICE = torch.device('cpu')
|
|
|
|
| 21 |
|
| 22 |
# Configure logging
|
| 23 |
logging.basicConfig(level=logging.INFO)
|
|
|
|
| 52 |
positional_encoding=False,
|
| 53 |
dropout=0.15,
|
| 54 |
mode='mean',
|
|
|
|
| 55 |
tr_layer_number=5,
|
| 56 |
out_features=256,
|
| 57 |
num_classes=7
|
|
|
|
| 312 |
|
| 313 |
|
| 314 |
if __name__ == "__main__":
|
| 315 |
+
print('START DEMO')
|
| 316 |
demo = create_demo()
|
| 317 |
demo.launch()
|