clean files
Browse files- app.py +3 -3
- requirements.txt +1 -4
app.py
CHANGED
|
@@ -53,7 +53,7 @@ else:
|
|
| 53 |
os.remove(local_filename)
|
| 54 |
print(f"Removed '{local_filename}' after extraction.")
|
| 55 |
|
| 56 |
-
generator = torch.Generator(device="
|
| 57 |
|
| 58 |
size = (1024, 1024)
|
| 59 |
|
|
@@ -182,8 +182,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 182 |
label="Input Image",
|
| 183 |
crop_size=(1024, 1024),
|
| 184 |
layers=False,
|
| 185 |
-
height=
|
| 186 |
-
width=
|
| 187 |
)
|
| 188 |
|
| 189 |
result = gr.Image(
|
|
|
|
| 53 |
os.remove(local_filename)
|
| 54 |
print(f"Removed '{local_filename}' after extraction.")
|
| 55 |
|
| 56 |
+
generator = torch.Generator(device="cpu").manual_seed(42)
|
| 57 |
|
| 58 |
size = (1024, 1024)
|
| 59 |
|
|
|
|
| 182 |
label="Input Image",
|
| 183 |
crop_size=(1024, 1024),
|
| 184 |
layers=False,
|
| 185 |
+
height=1024,
|
| 186 |
+
width=1024
|
| 187 |
)
|
| 188 |
|
| 189 |
result = gr.Image(
|
requirements.txt
CHANGED
|
@@ -3,10 +3,7 @@ tqdm
|
|
| 3 |
mxnet-mkl==1.6.0
|
| 4 |
numpy==1.23.1
|
| 5 |
easydict==1.9.0
|
| 6 |
-
scikit-image==0.17.2
|
| 7 |
-
scikit-learn==0.24.2
|
| 8 |
opencv-python
|
| 9 |
-
tensorflow
|
| 10 |
joblib
|
| 11 |
matplotlib
|
| 12 |
pandas
|
|
@@ -17,5 +14,5 @@ tabulate
|
|
| 17 |
kornia==0.5.0
|
| 18 |
webdataset
|
| 19 |
packaging
|
| 20 |
-
scikit-learn==0.24.2
|
| 21 |
wldhx.yadisk-direct
|
|
|
|
|
|
| 3 |
mxnet-mkl==1.6.0
|
| 4 |
numpy==1.23.1
|
| 5 |
easydict==1.9.0
|
|
|
|
|
|
|
| 6 |
opencv-python
|
|
|
|
| 7 |
joblib
|
| 8 |
matplotlib
|
| 9 |
pandas
|
|
|
|
| 14 |
kornia==0.5.0
|
| 15 |
webdataset
|
| 16 |
packaging
|
|
|
|
| 17 |
wldhx.yadisk-direct
|
| 18 |
+
torchvision
|