Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -1,18 +1,3 @@
|
|
1 |
-
# # For a single image
|
2 |
-
# python app.py image.jpg
|
3 |
-
|
4 |
-
# # For a single directory
|
5 |
-
# python app.py /path/to/directory
|
6 |
-
|
7 |
-
# # For multiple directories
|
8 |
-
# python app.py /path/to/directory1 /path/to/directory2 /path/to/directory3
|
9 |
-
|
10 |
-
# # With output directory specified
|
11 |
-
# python app.py /path/to/directory1 /path/to/directory2 --output /path/to/output
|
12 |
-
|
13 |
-
# # With batch size specified
|
14 |
-
# python app.py /path/to/directory1 /path/to/directory2 --bs 8
|
15 |
-
|
16 |
import torch
|
17 |
import torch.amp.autocast_mode
|
18 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import torch
|
2 |
import torch.amp.autocast_mode
|
3 |
import os
|