Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
-
!git clone https://github.com/jantic/DeOldify.git DeOldify
|
2 |
-
cd DeOldify
|
3 |
#NOTE: This must be the first call in order to work properly!
|
4 |
from deoldify import device
|
5 |
from deoldify.device_id import DeviceId
|
@@ -10,8 +8,8 @@ import torch
|
|
10 |
|
11 |
if not torch.cuda.is_available():
|
12 |
print('GPU not available.')
|
13 |
-
|
14 |
-
|
15 |
import fastai
|
16 |
from deoldify.visualize import *
|
17 |
import warnings
|
|
|
|
|
|
|
1 |
#NOTE: This must be the first call in order to work properly!
|
2 |
from deoldify import device
|
3 |
from deoldify.device_id import DeviceId
|
|
|
8 |
|
9 |
if not torch.cuda.is_available():
|
10 |
print('GPU not available.')
|
11 |
+
#!mkdir 'models'
|
12 |
+
#!wget https://data.deepai.org/deoldify/ColorizeArtistic_gen.pth -O ./models/ColorizeArtistic_gen.pth
|
13 |
import fastai
|
14 |
from deoldify.visualize import *
|
15 |
import warnings
|