nightfury commited on
Commit
374a0d6
β€’
1 Parent(s): 41a8df2

commit 2nd changes

Browse files

renamed clipseg-master to clipseg

Files changed (32) hide show
  1. app.py +4 -4
  2. {clipseg-master β†’ clipseg}/.gitattributes +0 -0
  3. {clipseg-master β†’ clipseg}/.gitignore +0 -0
  4. {clipseg-master β†’ clipseg}/LICENSE +0 -0
  5. {clipseg-master β†’ clipseg}/Quickstart.ipynb +0 -0
  6. {clipseg-master β†’ clipseg}/Readme.md +0 -0
  7. {clipseg-master β†’ clipseg}/Tables.ipynb +0 -0
  8. {clipseg-master β†’ clipseg}/Visual_Feature_Engineering.ipynb +0 -0
  9. {clipseg-master β†’ clipseg}/datasets/coco_wrapper.py +0 -0
  10. {clipseg-master β†’ clipseg}/datasets/pascal_classes.json +0 -0
  11. {clipseg-master β†’ clipseg}/datasets/pascal_zeroshot.py +0 -0
  12. {clipseg-master β†’ clipseg}/datasets/pfe_dataset.py +0 -0
  13. {clipseg-master β†’ clipseg}/datasets/phrasecut.py +0 -0
  14. {clipseg-master β†’ clipseg}/datasets/utils.py +0 -0
  15. {clipseg-master β†’ clipseg}/environment.yml +0 -0
  16. {clipseg-master β†’ clipseg}/evaluation_utils.py +0 -0
  17. {clipseg-master β†’ clipseg}/example_image.jpg +0 -0
  18. {clipseg-master β†’ clipseg}/experiments/ablation.yaml +0 -0
  19. {clipseg-master β†’ clipseg}/experiments/coco.yaml +0 -0
  20. {clipseg-master β†’ clipseg}/experiments/pascal_1shot.yaml +0 -0
  21. {clipseg-master β†’ clipseg}/experiments/phrasecut.yaml +0 -0
  22. {clipseg-master β†’ clipseg}/general_utils.py +0 -0
  23. {clipseg-master β†’ clipseg}/metrics.py +0 -0
  24. {clipseg-master β†’ clipseg}/models/clipseg.py +0 -0
  25. {clipseg-master β†’ clipseg}/models/vitseg.py +0 -0
  26. {clipseg-master β†’ clipseg}/overview.png +0 -0
  27. {clipseg-master β†’ clipseg}/sample_rd64.png +0 -0
  28. {clipseg-master β†’ clipseg}/sample_rd64_refined.png +0 -0
  29. {clipseg-master β†’ clipseg}/score.py +0 -0
  30. {clipseg-master β†’ clipseg}/setup.py +0 -0
  31. {clipseg-master β†’ clipseg}/training.py +0 -0
  32. {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
- #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,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