Spaces:
Runtime error
Runtime error
commit 2nd changes
Browse filesrenamed clipseg-master to clipseg
- app.py +4 -4
- {clipseg-master β clipseg}/.gitattributes +0 -0
- {clipseg-master β clipseg}/.gitignore +0 -0
- {clipseg-master β clipseg}/LICENSE +0 -0
- {clipseg-master β clipseg}/Quickstart.ipynb +0 -0
- {clipseg-master β clipseg}/Readme.md +0 -0
- {clipseg-master β clipseg}/Tables.ipynb +0 -0
- {clipseg-master β clipseg}/Visual_Feature_Engineering.ipynb +0 -0
- {clipseg-master β clipseg}/datasets/coco_wrapper.py +0 -0
- {clipseg-master β clipseg}/datasets/pascal_classes.json +0 -0
- {clipseg-master β clipseg}/datasets/pascal_zeroshot.py +0 -0
- {clipseg-master β clipseg}/datasets/pfe_dataset.py +0 -0
- {clipseg-master β clipseg}/datasets/phrasecut.py +0 -0
- {clipseg-master β clipseg}/datasets/utils.py +0 -0
- {clipseg-master β clipseg}/environment.yml +0 -0
- {clipseg-master β clipseg}/evaluation_utils.py +0 -0
- {clipseg-master β clipseg}/example_image.jpg +0 -0
- {clipseg-master β clipseg}/experiments/ablation.yaml +0 -0
- {clipseg-master β clipseg}/experiments/coco.yaml +0 -0
- {clipseg-master β clipseg}/experiments/pascal_1shot.yaml +0 -0
- {clipseg-master β clipseg}/experiments/phrasecut.yaml +0 -0
- {clipseg-master β clipseg}/general_utils.py +0 -0
- {clipseg-master β clipseg}/metrics.py +0 -0
- {clipseg-master β clipseg}/models/clipseg.py +0 -0
- {clipseg-master β clipseg}/models/vitseg.py +0 -0
- {clipseg-master β clipseg}/overview.png +0 -0
- {clipseg-master β clipseg}/sample_rd64.png +0 -0
- {clipseg-master β clipseg}/sample_rd64_refined.png +0 -0
- {clipseg-master β clipseg}/score.py +0 -0
- {clipseg-master β clipseg}/setup.py +0 -0
- {clipseg-master β clipseg}/training.py +0 -0
- {clipseg-master β clipseg}/weights/rd64-uni.pth +0 -0
app.py
CHANGED
@@ -13,7 +13,7 @@ import cv2
|
|
13 |
from matplotlib import pyplot as plt
|
14 |
from inpainting import StableDiffusionInpaintingPipeline
|
15 |
from torchvision import transforms
|
16 |
-
|
17 |
|
18 |
#from huggingface_hub import hf_hub_download
|
19 |
#hf_hub_download(repo_id="ThereforeGames/txt2mask", filename="/repositories/clipseg/")
|
@@ -22,7 +22,7 @@ from torchvision import transforms
|
|
22 |
|
23 |
#from huggingface_hub import Repository
|
24 |
#with Repository(local_dir="clipseg", clone_from="ThereforeGames/txt2mask/repositories/clipseg/")
|
25 |
-
|
26 |
import sys
|
27 |
import os
|
28 |
|
@@ -31,7 +31,7 @@ zf = ZipFile('clipseg-master.zip', 'r')
|
|
31 |
zf.extractall('./clipseg')
|
32 |
zf.close()
|
33 |
|
34 |
-
|
35 |
from huggingface_hub import HfApi
|
36 |
api = HfApi()
|
37 |
api.upload_folder(
|
@@ -203,4 +203,4 @@ Despite how impressive being able to turn text into image is, beware to the fact
|
|
203 |
</div>
|
204 |
"""
|
205 |
)
|
206 |
-
demo.launch()
|
|
|
13 |
from matplotlib import pyplot as plt
|
14 |
from inpainting import StableDiffusionInpaintingPipeline
|
15 |
from torchvision import transforms
|
16 |
+
from clipseg.models.clipseg import CLIPDensePredT
|
17 |
|
18 |
#from huggingface_hub import hf_hub_download
|
19 |
#hf_hub_download(repo_id="ThereforeGames/txt2mask", filename="/repositories/clipseg/")
|
|
|
22 |
|
23 |
#from huggingface_hub import Repository
|
24 |
#with Repository(local_dir="clipseg", clone_from="ThereforeGames/txt2mask/repositories/clipseg/")
|
25 |
+
"""
|
26 |
import sys
|
27 |
import os
|
28 |
|
|
|
31 |
zf.extractall('./clipseg')
|
32 |
zf.close()
|
33 |
|
34 |
+
|
35 |
from huggingface_hub import HfApi
|
36 |
api = HfApi()
|
37 |
api.upload_folder(
|
|
|
203 |
</div>
|
204 |
"""
|
205 |
)
|
206 |
+
demo.launch()
|
{clipseg-master β clipseg}/.gitattributes
RENAMED
File without changes
|
{clipseg-master β clipseg}/.gitignore
RENAMED
File without changes
|
{clipseg-master β clipseg}/LICENSE
RENAMED
File without changes
|
{clipseg-master β clipseg}/Quickstart.ipynb
RENAMED
File without changes
|
{clipseg-master β clipseg}/Readme.md
RENAMED
File without changes
|
{clipseg-master β clipseg}/Tables.ipynb
RENAMED
File without changes
|
{clipseg-master β clipseg}/Visual_Feature_Engineering.ipynb
RENAMED
File without changes
|
{clipseg-master β clipseg}/datasets/coco_wrapper.py
RENAMED
File without changes
|
{clipseg-master β clipseg}/datasets/pascal_classes.json
RENAMED
File without changes
|
{clipseg-master β clipseg}/datasets/pascal_zeroshot.py
RENAMED
File without changes
|
{clipseg-master β clipseg}/datasets/pfe_dataset.py
RENAMED
File without changes
|
{clipseg-master β clipseg}/datasets/phrasecut.py
RENAMED
File without changes
|
{clipseg-master β clipseg}/datasets/utils.py
RENAMED
File without changes
|
{clipseg-master β clipseg}/environment.yml
RENAMED
File without changes
|
{clipseg-master β clipseg}/evaluation_utils.py
RENAMED
File without changes
|
{clipseg-master β clipseg}/example_image.jpg
RENAMED
File without changes
|
{clipseg-master β clipseg}/experiments/ablation.yaml
RENAMED
File without changes
|
{clipseg-master β clipseg}/experiments/coco.yaml
RENAMED
File without changes
|
{clipseg-master β clipseg}/experiments/pascal_1shot.yaml
RENAMED
File without changes
|
{clipseg-master β clipseg}/experiments/phrasecut.yaml
RENAMED
File without changes
|
{clipseg-master β clipseg}/general_utils.py
RENAMED
File without changes
|
{clipseg-master β clipseg}/metrics.py
RENAMED
File without changes
|
{clipseg-master β clipseg}/models/clipseg.py
RENAMED
File without changes
|
{clipseg-master β clipseg}/models/vitseg.py
RENAMED
File without changes
|
{clipseg-master β clipseg}/overview.png
RENAMED
File without changes
|
{clipseg-master β clipseg}/sample_rd64.png
RENAMED
File without changes
|
{clipseg-master β clipseg}/sample_rd64_refined.png
RENAMED
File without changes
|
{clipseg-master β clipseg}/score.py
RENAMED
File without changes
|
{clipseg-master β clipseg}/setup.py
RENAMED
File without changes
|
{clipseg-master β clipseg}/training.py
RENAMED
File without changes
|
{clipseg-master β clipseg}/weights/rd64-uni.pth
RENAMED
File without changes
|