Spaces:
Runtime error
Runtime error
init
Browse files- app.py +2 -1
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
import os
|
| 2 |
|
| 3 |
import torch
|
|
|
|
| 4 |
import numpy as np
|
| 5 |
import torch.nn.functional as F
|
| 6 |
import torchvision.transforms as T
|
|
@@ -17,7 +18,7 @@ from transforms import (
|
|
| 17 |
import gradio as gr
|
| 18 |
from huggingface_hub import hf_hub_download
|
| 19 |
|
| 20 |
-
class Uniformerv2(
|
| 21 |
def __init__(self, model):
|
| 22 |
super().__init__()
|
| 23 |
self.backbone = model
|
|
|
|
| 1 |
import os
|
| 2 |
|
| 3 |
import torch
|
| 4 |
+
import torch.nn as nn
|
| 5 |
import numpy as np
|
| 6 |
import torch.nn.functional as F
|
| 7 |
import torchvision.transforms as T
|
|
|
|
| 18 |
import gradio as gr
|
| 19 |
from huggingface_hub import hf_hub_download
|
| 20 |
|
| 21 |
+
class Uniformerv2(nn.Module):
|
| 22 |
def __init__(self, model):
|
| 23 |
super().__init__()
|
| 24 |
self.backbone = model
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
torch
|
| 2 |
torchvision
|
| 3 |
einops
|
| 4 |
timm
|
|
|
|
| 1 |
+
torch==1.9.1
|
| 2 |
torchvision
|
| 3 |
einops
|
| 4 |
timm
|