pmbrito commited on
Commit
91532c7
·
1 Parent(s): b0fdba2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ if raw_image != 'Select image':
34
  with st.spinner('Loading Model...'):
35
  feature_extractor = DPTFeatureExtractor.from_pretrained("Intel/dpt-large-ade")
36
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
37
- model = DPTForSemanticSegmentation.from_pretrained("Intel/dpt-large-ade",ignore_mismatched_sizes=True,num_labels=len(id2label), id2label=id2label, label2id=label2id)
38
  model = model.to(device)
39
  model.eval()
40
 
 
34
  with st.spinner('Loading Model...'):
35
  feature_extractor = DPTFeatureExtractor.from_pretrained("Intel/dpt-large-ade")
36
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
37
+ model = DPTForSemanticSegmentation.from_pretrained("Intel/dpt-large-ade")
38
  model = model.to(device)
39
  model.eval()
40