Spaces:
Running
on
Zero
Running
on
Zero
srkanth
#2
by
srikanthsri
- opened
- app.py +1 -1
- requirements.txt +1 -1
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import gradio as gr
|
2 |
-
import spaces
|
3 |
import os
|
4 |
from PIL import Image
|
5 |
import torch
|
@@ -11,6 +10,7 @@ import argparse
|
|
11 |
import numpy as np
|
12 |
import torchvision.transforms.functional as TF
|
13 |
from scipy.ndimage import convolve, zoom
|
|
|
14 |
from utils import resize_by_short_side
|
15 |
|
16 |
from tools.interact_tools import SamControler
|
|
|
1 |
import gradio as gr
|
|
|
2 |
import os
|
3 |
from PIL import Image
|
4 |
import torch
|
|
|
10 |
import numpy as np
|
11 |
import torchvision.transforms.functional as TF
|
12 |
from scipy.ndimage import convolve, zoom
|
13 |
+
import spaces
|
14 |
from utils import resize_by_short_side
|
15 |
|
16 |
from tools.interact_tools import SamControler
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
accelerate
|
2 |
-
torch==2.
|
3 |
torchvision
|
4 |
numpy==1.26.4
|
5 |
opencv-python
|
|
|
1 |
accelerate
|
2 |
+
torch==2.2.0
|
3 |
torchvision
|
4 |
numpy==1.26.4
|
5 |
opencv-python
|