Spaces:
Runtime error
Runtime error
SerdarHelli
commited on
Commit
•
7c48c94
1
Parent(s):
34a18b7
Update app.py
Browse files
app.py
CHANGED
@@ -6,13 +6,8 @@ import torch
|
|
6 |
from tqdm import tqdm
|
7 |
import gradio as gr
|
8 |
from huggingface_hub import hf_hub_download
|
9 |
-
import sys
|
10 |
-
import os
|
11 |
-
import subprocess
|
12 |
|
13 |
|
14 |
-
subprocess.Popen('git clone https://huggingface.co/SerdarHelli/BrainMRIGAN')
|
15 |
-
|
16 |
def layout_grid(img, grid_w=None, grid_h=1, float_to_uint8=True, chw_to_hwc=True, to_numpy=True):
|
17 |
batch_size, channels, img_h, img_w = img.shape
|
18 |
if grid_w is None:
|
@@ -30,7 +25,6 @@ def layout_grid(img, grid_w=None, grid_h=1, float_to_uint8=True, chw_to_hwc=True
|
|
30 |
return img
|
31 |
|
32 |
|
33 |
-
sys.path.insert(0, 'Brain-MR-Image-Generation-GAN ')
|
34 |
|
35 |
|
36 |
network_pkl='braingan-400.pkl'
|
|
|
6 |
from tqdm import tqdm
|
7 |
import gradio as gr
|
8 |
from huggingface_hub import hf_hub_download
|
|
|
|
|
|
|
9 |
|
10 |
|
|
|
|
|
11 |
def layout_grid(img, grid_w=None, grid_h=1, float_to_uint8=True, chw_to_hwc=True, to_numpy=True):
|
12 |
batch_size, channels, img_h, img_w = img.shape
|
13 |
if grid_w is None:
|
|
|
25 |
return img
|
26 |
|
27 |
|
|
|
28 |
|
29 |
|
30 |
network_pkl='braingan-400.pkl'
|