Spaces:
Sleeping
Sleeping
Ubuntu
commited on
Commit
·
949b93c
1
Parent(s):
56666a2
- .ipynb_checkpoints/app-checkpoint.py +1 -0
- app.py +1 -0
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -9,6 +9,7 @@ from transformers import ViTFeatureExtractor, ViTForImageClassification, AutoFe
|
|
9 |
from pathlib import Path
|
10 |
import pytorch_lightning as pl
|
11 |
from torch.utils.data import DataLoader
|
|
|
12 |
|
13 |
def video_identity(video,user_name,class_name,trainortest,ready):
|
14 |
if ready=='yes':
|
|
|
9 |
from pathlib import Path
|
10 |
import pytorch_lightning as pl
|
11 |
from torch.utils.data import DataLoader
|
12 |
+
from torchmetrics import Accuracy
|
13 |
|
14 |
def video_identity(video,user_name,class_name,trainortest,ready):
|
15 |
if ready=='yes':
|
app.py
CHANGED
@@ -9,6 +9,7 @@ from transformers import ViTFeatureExtractor, ViTForImageClassification, AutoFe
|
|
9 |
from pathlib import Path
|
10 |
import pytorch_lightning as pl
|
11 |
from torch.utils.data import DataLoader
|
|
|
12 |
|
13 |
def video_identity(video,user_name,class_name,trainortest,ready):
|
14 |
if ready=='yes':
|
|
|
9 |
from pathlib import Path
|
10 |
import pytorch_lightning as pl
|
11 |
from torch.utils.data import DataLoader
|
12 |
+
from torchmetrics import Accuracy
|
13 |
|
14 |
def video_identity(video,user_name,class_name,trainortest,ready):
|
15 |
if ready=='yes':
|