Spaces:
Runtime error
Runtime error
init
Browse files
app.py
CHANGED
@@ -1,7 +1,6 @@
|
|
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,7 +17,7 @@ from transforms import (
|
|
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
|
|
|
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 |
import gradio as gr
|
18 |
from huggingface_hub import hf_hub_download
|
19 |
|
20 |
+
class Uniformerv2(torch.nn.Module):
|
21 |
def __init__(self, model):
|
22 |
super().__init__()
|
23 |
self.backbone = model
|