Spaces:
Sleeping
Sleeping
mahmoud669
commited on
Commit
•
46489a3
1
Parent(s):
1372c37
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,9 @@ from PIL import Image
|
|
5 |
import matplotlib.pyplot as plt
|
6 |
import cv2
|
7 |
from torchvision import transforms
|
8 |
-
import timm
|
9 |
from tqdm import tqdm
|
|
|
10 |
|
11 |
# Your model and other necessary functions
|
12 |
# Assuming model, device, final_conv, fc_params, cls_names, and any other needed components are defined elsewhere
|
|
|
5 |
import matplotlib.pyplot as plt
|
6 |
import cv2
|
7 |
from torchvision import transforms
|
8 |
+
import timm
|
9 |
from tqdm import tqdm
|
10 |
+
import torch.nn.functional as F
|
11 |
|
12 |
# Your model and other necessary functions
|
13 |
# Assuming model, device, final_conv, fc_params, cls_names, and any other needed components are defined elsewhere
|