DamarJati commited on
Commit
7340a57
β€’
1 Parent(s): 227fd9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -77,7 +77,7 @@ def process_images_florence_lama(image, model_choice):
77
  image_cv = cv2.cvtColor(np.array(image), cv2.COLOR_RGB2BGR)
78
 
79
  # Run Florence to get mask
80
- text_input = 'watermark'
81
  task_prompt = '<REGION_TO_SEGMENTATION>'
82
  image_pil = Image.fromarray(image_cv) # Convert array to PIL Image
83
  inputs = florence_processor(text=task_prompt + text_input, images=image_pil, return_tensors="pt").to("cuda")
 
77
  image_cv = cv2.cvtColor(np.array(image), cv2.COLOR_RGB2BGR)
78
 
79
  # Run Florence to get mask
80
+ text_input = 'watermark, text, logo, company name'
81
  task_prompt = '<REGION_TO_SEGMENTATION>'
82
  image_pil = Image.fromarray(image_cv) # Convert array to PIL Image
83
  inputs = florence_processor(text=task_prompt + text_input, images=image_pil, return_tensors="pt").to("cuda")