Spaces:
Build error
Build error
Ubuntu
commited on
Commit
·
9f2a1cd
1
Parent(s):
d7454ed
- .ipynb_checkpoints/app-checkpoint.py +2 -2
- app.py +2 -2
.ipynb_checkpoints/app-checkpoint.py
CHANGED
|
@@ -11,11 +11,11 @@ from transformers import ViTFeatureExtractor, ViTForImageClassification, AutoFe
|
|
| 11 |
def video_identity(video,user_name,class_name,trainortest,ready):
|
| 12 |
if ready=='yes':
|
| 13 |
|
| 14 |
-
data_dir = Path(
|
| 15 |
train_ds = ImageFolder(data_dir)
|
| 16 |
|
| 17 |
|
| 18 |
-
test_dir = Path(
|
| 19 |
test_ds = ImageFolder(test_dir)
|
| 20 |
|
| 21 |
label2id = {}
|
|
|
|
| 11 |
def video_identity(video,user_name,class_name,trainortest,ready):
|
| 12 |
if ready=='yes':
|
| 13 |
|
| 14 |
+
data_dir = Path(str(user_name)+'/train')
|
| 15 |
train_ds = ImageFolder(data_dir)
|
| 16 |
|
| 17 |
|
| 18 |
+
test_dir = Path(str(user_name)+'/test')
|
| 19 |
test_ds = ImageFolder(test_dir)
|
| 20 |
|
| 21 |
label2id = {}
|
app.py
CHANGED
|
@@ -11,11 +11,11 @@ from transformers import ViTFeatureExtractor, ViTForImageClassification, AutoFe
|
|
| 11 |
def video_identity(video,user_name,class_name,trainortest,ready):
|
| 12 |
if ready=='yes':
|
| 13 |
|
| 14 |
-
data_dir = Path(
|
| 15 |
train_ds = ImageFolder(data_dir)
|
| 16 |
|
| 17 |
|
| 18 |
-
test_dir = Path(
|
| 19 |
test_ds = ImageFolder(test_dir)
|
| 20 |
|
| 21 |
label2id = {}
|
|
|
|
| 11 |
def video_identity(video,user_name,class_name,trainortest,ready):
|
| 12 |
if ready=='yes':
|
| 13 |
|
| 14 |
+
data_dir = Path(str(user_name)+'/train')
|
| 15 |
train_ds = ImageFolder(data_dir)
|
| 16 |
|
| 17 |
|
| 18 |
+
test_dir = Path(str(user_name)+'/test')
|
| 19 |
test_ds = ImageFolder(test_dir)
|
| 20 |
|
| 21 |
label2id = {}
|