nielsr HF staff commited on
Commit
3b27791
1 Parent(s): 6bb72f5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -3
README.md CHANGED
@@ -1,10 +1,15 @@
1
  ---
2
  license: apache-2.0
3
  tags:
4
- - semantic-segmentation
5
  - vision
 
6
  datasets:
7
- - ade20k
 
 
 
 
 
8
  ---
9
 
10
  # BEiT (base-sized model, fine-tuned on ADE20k)
@@ -39,7 +44,7 @@ from PIL import Image
39
  ds = load_dataset("hf-internal-testing/fixtures_ade20k", split="test")
40
 
41
  feature_extractor = BeitFeatureExtractor.from_pretrained('microsoft/beit-base-finetuned-ade-640-640')
42
- model = BeitForImageClassification.from_pretrained('microsoft/beit-base-finetuned-ade-640-640')
43
 
44
  inputs = feature_extractor(images=image, return_tensors="pt")
45
  outputs = model(**inputs)
 
1
  ---
2
  license: apache-2.0
3
  tags:
 
4
  - vision
5
+ - image-segmentation
6
  datasets:
7
+ - scene_parse_150
8
+ widget:
9
+ - src: https://huggingface.co/datasets/hf-internal-testing/fixtures_ade20k/resolve/main/ADE_val_00000001.jpg
10
+ example_title: House
11
+ - src: https://huggingface.co/datasets/hf-internal-testing/fixtures_ade20k/resolve/main/ADE_val_00000002.jpg
12
+ example_title: Castle
13
  ---
14
 
15
  # BEiT (base-sized model, fine-tuned on ADE20k)
 
44
  ds = load_dataset("hf-internal-testing/fixtures_ade20k", split="test")
45
 
46
  feature_extractor = BeitFeatureExtractor.from_pretrained('microsoft/beit-base-finetuned-ade-640-640')
47
+ model = BeitForSemanticSegmentation.from_pretrained('microsoft/beit-base-finetuned-ade-640-640')
48
 
49
  inputs = feature_extractor(images=image, return_tensors="pt")
50
  outputs = model(**inputs)