XingyiHe commited on
Commit
05898fd
·
1 Parent(s): 8225084
imcui/datasets/multi_modality_pairs/robot_real_world_2.png ADDED
imcui/datasets/multi_modality_pairs/robot_render_1.png ADDED
imcui/third_party/place_holder.txt CHANGED
@@ -1 +0,0 @@
1
- 1
 
 
imcui/ui/app_class.py CHANGED
@@ -19,7 +19,7 @@ from .utils import (
19
  send_to_match,
20
  )
21
  import os
22
- GITHUB_TOKEN = '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'
23
  GOOGLE_TOKEN = '1qnxd5DKomsYUH9_8dQ4Xvwatg_vI-vsh'
24
  if not (Path(__file__).parent / "../third_party/MatchAnything").exists():
25
  print("**********************************")
 
19
  send_to_match,
20
  )
21
  import os
22
+ GITHUB_TOKEN = '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'
23
  GOOGLE_TOKEN = '1qnxd5DKomsYUH9_8dQ4Xvwatg_vI-vsh'
24
  if not (Path(__file__).parent / "../third_party/MatchAnything").exists():
25
  print("**********************************")
imcui/ui/utils.py CHANGED
@@ -234,7 +234,7 @@ def gen_examples():
234
  [str(images_dir / "MTV_thermal_vis_pair2_1.jpg"), str(images_dir / "MTV_thermal_vis_pair2_2.jpg")],
235
  ]
236
 
237
- pairs_special = [[str(images_dir / "mri_ut_1.jpg"), str(images_dir / "mri_ut_2.jpg")], [str(images_dir / "01.png"), str(images_dir / "02.png")], [str(images_dir / 'thermal_1.jpg'), str(images_dir / 'rgb_2.png')]]
238
 
239
  match_setting_threshold = DEFAULT_SETTING_THRESHOLD
240
  match_setting_max_features = DEFAULT_SETTING_MAX_FEATURES
@@ -247,7 +247,7 @@ def gen_examples():
247
  dist_examples = distribute_elements(pairs_homo, example_matchers)
248
  for pair, mt in zip(pairs_homo, dist_examples):
249
  if 'roma' in mt:
250
- match_setting_threshold = 0.1
251
  else:
252
  match_setting_threshold = 0.01
253
 
@@ -302,7 +302,7 @@ def gen_examples():
302
  input_lists.insert(6, [
303
  pairs_special[1][0],
304
  pairs_special[1][1],
305
- 0.1,
306
  match_setting_max_features,
307
  detect_keypoints_threshold,
308
  "matchanything_roma",
@@ -316,7 +316,7 @@ def gen_examples():
316
  input_lists.insert(0, [
317
  pairs_special[2][0],
318
  pairs_special[2][1],
319
- 0.1,
320
  match_setting_max_features,
321
  detect_keypoints_threshold,
322
  "matchanything_roma",
@@ -326,6 +326,19 @@ def gen_examples():
326
  ransac_max_iter,
327
  "Fundamental",
328
  ])
 
 
 
 
 
 
 
 
 
 
 
 
 
329
  return input_lists
330
 
331
 
 
234
  [str(images_dir / "MTV_thermal_vis_pair2_1.jpg"), str(images_dir / "MTV_thermal_vis_pair2_2.jpg")],
235
  ]
236
 
237
+ pairs_special = [[str(images_dir / "mri_ut_1.jpg"), str(images_dir / "mri_ut_2.jpg")], [str(images_dir / "01.png"), str(images_dir / "02.png")], [str(images_dir / 'thermal_1.png'), str(images_dir / 'rgb_2.png')], [str(images_dir / 'robot_render_1.png'), str(images_dir / 'robot_real_world_2.png')]]
238
 
239
  match_setting_threshold = DEFAULT_SETTING_THRESHOLD
240
  match_setting_max_features = DEFAULT_SETTING_MAX_FEATURES
 
247
  dist_examples = distribute_elements(pairs_homo, example_matchers)
248
  for pair, mt in zip(pairs_homo, dist_examples):
249
  if 'roma' in mt:
250
+ match_setting_threshold = 0.01
251
  else:
252
  match_setting_threshold = 0.01
253
 
 
302
  input_lists.insert(6, [
303
  pairs_special[1][0],
304
  pairs_special[1][1],
305
+ 0.01,
306
  match_setting_max_features,
307
  detect_keypoints_threshold,
308
  "matchanything_roma",
 
316
  input_lists.insert(0, [
317
  pairs_special[2][0],
318
  pairs_special[2][1],
319
+ 0.01,
320
  match_setting_max_features,
321
  detect_keypoints_threshold,
322
  "matchanything_roma",
 
326
  ransac_max_iter,
327
  "Fundamental",
328
  ])
329
+ input_lists.insert(1, [
330
+ pairs_special[3][0],
331
+ pairs_special[3][1],
332
+ 0.01,
333
+ match_setting_max_features,
334
+ detect_keypoints_threshold,
335
+ "matchanything_roma",
336
+ ransac_method,
337
+ 4,
338
+ ransac_confidence,
339
+ ransac_max_iter,
340
+ "Homography",
341
+ ])
342
  return input_lists
343
 
344