Spaces:
Running
Running
admin
commited on
Commit
·
da90e30
1
Parent(s):
c51b54b
huggingface_hub
Browse files
model.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import torch
|
2 |
import torch.nn as nn
|
3 |
import torchvision.models as models
|
4 |
-
from
|
5 |
from utils import MODEL_DIR
|
6 |
|
7 |
|
|
|
1 |
import torch
|
2 |
import torch.nn as nn
|
3 |
import torchvision.models as models
|
4 |
+
from modelscope import MsDataset
|
5 |
from utils import MODEL_DIR
|
6 |
|
7 |
|
utils.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import os
|
2 |
import torch
|
3 |
import torchvision.transforms as transforms
|
4 |
-
from
|
5 |
from PIL import Image
|
6 |
|
7 |
MODEL_DIR = snapshot_download(
|
|
|
1 |
import os
|
2 |
import torch
|
3 |
import torchvision.transforms as transforms
|
4 |
+
from huggingface_hub import snapshot_download
|
5 |
from PIL import Image
|
6 |
|
7 |
MODEL_DIR = snapshot_download(
|