Spaces:
Runtime error
Runtime error
SerdarHelli
commited on
Commit
•
987be39
1
Parent(s):
cc96327
Update app.py
Browse files
app.py
CHANGED
@@ -25,18 +25,6 @@ DESCRIPTION = f''This model generates healthy MR Brain Images.
|
|
25 |
![Example]("https://huggingface.co/spaces/SerdarHelli/Brain-MR-Image-Generation-GAN/blob/main/ex.png")
|
26 |
''
|
27 |
|
28 |
-
def make_transform(translate: Tuple[float,float], angle: float):
|
29 |
-
m = np.eye(3)
|
30 |
-
s = np.sin(angle/360.0*np.pi*2)
|
31 |
-
c = np.cos(angle/360.0*np.pi*2)
|
32 |
-
m[0][0] = c
|
33 |
-
m[0][1] = s
|
34 |
-
m[0][2] = translate[0]
|
35 |
-
m[1][0] = -s
|
36 |
-
m[1][1] = c
|
37 |
-
m[1][2] = translate[1]
|
38 |
-
return m
|
39 |
-
|
40 |
|
41 |
|
42 |
network_pkl='braingan-400.pkl'
|
|
|
25 |
![Example]("https://huggingface.co/spaces/SerdarHelli/Brain-MR-Image-Generation-GAN/blob/main/ex.png")
|
26 |
''
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
|
30 |
network_pkl='braingan-400.pkl'
|