Dave-A commited on
Commit
ee1b10f
·
1 Parent(s): b751fb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -1,4 +1,4 @@
1
- import streamlit as st
2
  from io import StringIO
3
  from PIL import Image
4
  import pandas as pd
@@ -9,18 +9,18 @@ import os
9
  import torch
10
  import torch.nn as nn
11
  from torch.utils.data import Dataset, DataLoader
12
- import torchvision.models as models
13
- from torchinfo import summary
14
 
15
- from sklearn.model_selection import StratifiedKFold
16
- from sklearn.metrics import accuracy_score
17
 
18
  from tqdm import tqdm
19
  import cv2
20
- import albumentations as A # Albumentations is a computer vision tool that boosts the performance of deep convolutional neural networks. (https://albumentations.ai/)
21
  import matplotlib.pyplot as plt
22
  import seaborn as sns
23
- from albumentations.pytorch.transforms import ToTensorV2
24
 
25
  model = models.resnet50(pretrained=False)
26
  model.fc = nn.Linear(2048, num_classes)
 
1
+ #import streamlit as st
2
  from io import StringIO
3
  from PIL import Image
4
  import pandas as pd
 
9
  import torch
10
  import torch.nn as nn
11
  from torch.utils.data import Dataset, DataLoader
12
+ #import torchvision.models as models
13
+ #from torchinfo import summary
14
 
15
+ #from sklearn.model_selection import StratifiedKFold
16
+ #from sklearn.metrics import accuracy_score
17
 
18
  from tqdm import tqdm
19
  import cv2
20
+ #import albumentations as A # Albumentations is a computer vision tool that boosts the performance of deep convolutional neural networks. (https://albumentations.ai/)
21
  import matplotlib.pyplot as plt
22
  import seaborn as sns
23
+ #from albumentations.pytorch.transforms import ToTensorV2
24
 
25
  model = models.resnet50(pretrained=False)
26
  model.fc = nn.Linear(2048, num_classes)