Extract Outlier Frame - Post Frame Extraction Error

Hi DLC Community!

I am working to refine some labels by first extracting the outlier frames, however, I have been getting a unique error once frames have been extracted which impedes on the appropriate .h5 file (machinelabels-iter…) from being received… I am not sure where I falling short on this issue, so any help will be much appreciated! Code provided below:

Method  jump  found  4375  putative outlier frames.
Do you want to proceed with extracting  1000  of those?
If this list is very large, perhaps consider changing the parameters (start, stop, p_bound, comparisonbodyparts) or use a different method.
yes/noyes
Frames from video 578.4117_Trim  already extracted (more will be added)!
Loading video...
Duration of video [s]:  600.404229 , recorded @  30.0 fps!
Overall # of frames:  18012 with (cropped) frame dimensions:
Kmeans-quantization based extracting of frames from 0.0  seconds to 600.4  seconds.
Extracting and downsampling... 4375  frames from the video.
4375it [02:04, 35.11it/s]
Kmeans clustering ... (this might take a while)
Let's select frames indices: [10451, 14276, 7008, 51, 10535, 3986, 9073, 17158, 2602, 15829, 15037, 1561, 5488, 5745, 11005, 8444, 7419, 13171, 12307, 6787, 7370, 9321, 13676, 1669, 1442, 10719, 16204, 15707, 13944, 4699, 1217, 12917, 399, 10355, 6636, 15300, 774, 11603, 2848, 11493, 1335, 10883, 4517, 10841, 11784, 12101, 6514, 654, 15221, 5075, 2199, 2865, 17006, 16871, 14706, 1992, 15761, 14288, 10988, 802, 6152, 15097, 11735, 1840, 16157, 12884, 15852, 12007, 16533, 4038, 11641, 7631, 12865, 15910, 6723, 3194, 6171, 10419, 6098, 11521, 6421, 3594, 1069, 7962, 592, 16965, 1500, 1223, 12414, 5884, 6732, 11296, 5167, 6624, 12745, 2373, 6263, 6126, 2955, 12033, 12191, 17662, 10603, 6360, 4896, 7408, 12334, 1760, 1842, 4705, 15316, 10567, 4166, 12170, 10980, 11915, 543, 5020, 15865, 2935, 5957, 12046, 10192, 3697, 16403, 853, 5255, 1215, 1473, 1551, 11330, 11420, 15598, 10809, 2257, 6039, 502, 2433, 15664, 237, 16599, 13798, 2694, 15698, 15587, 7650, 12904, 10864, 15750, 5364, 15733, 9244, 7155, 6674, 12198, 2154, 16142, 15442, 999, 5711, 487, 4667, 1876, 1412, 10854, 11489, 11911, 5647, 9717, 15801, 12086, 2116, 15144, 7498, 10543, 2477, 4543, 3865, 12433, 2082, 11082, 70, 12259, 11577, 6847, 3438, 11337, 17800, 5465, 6068, 15810, 15256, 14577, 2998, 13038, 15778, 4656, 10393, 6107, 16739, 8957, 11979, 2858, 16469, 11100, 5972, 699, 17747, 14669, 6511, 12833, 16281, 12409, 16460, 4769, 16094, 14873, 12889, 8827, 11632, 7883, 16837, 8380, 16951, 10326, 11705, 5889, 2253, 10443, 1741, 11930, 12444, 12399, 6933, 5200, 17704, 7353, 5516, 13539, 11305, 15074, 6986, 16160, 4016, 12221, 14383, 16914, 14984, 15786, 10381, 11194, 12521, 10411, 6681, 13612, 6437, 1626, 2510, 6392, 9034, 11179, 16009, 1482, 10496, 12452, 15519, 6824, 5016, 6535, 17894, 2771, 15684, 12290, 6584, 2403, 16465, 11048, 4647, 7327, 2020, 1369, 10573, 6751, 13043, 5991, 6490, 15746, 12895, 6854, 13723, 4851, 6982, 1728, 6864, 17774, 4782, 15324, 423, 2908, 16448, 4633, 15681, 16706, 2563, 7262, 10725, 5769, 6023, 12946, 12478, 1540, 6766, 15812, 13796, 13636, 6402, 2974, 4701, 6717, 13871, 5947, 806, 11288, 609, 5493, 3455, 17762, 4693, 4352, 17787, 14654, 17790, 2599, 12206, 4149, 1318, 7641, 6383, 6969, 1403, 573, 12174, 1960, 14678, 10338, 10417, 265, 12709, 7605, 2133, 6175, 16927, 241, 703, 13555, 11804, 6758, 7248, 53, 1206, 15921, 11399, 2854, 11128, 17263, 15106, 6351, 2995, 13648, 16781, 11480, 727, 6336, 15842, 11326, 5176, 10374, 444, 6879, 12912, 2631, 14046, 6188, 10792, 6415, 12580, 10359, 4528, 2980, 11204, 6115, 16976, 8692, 11692, 9264, 1378, 3768, 17081, 13023, 7363, 9326, 6133, 16122, 12683, 16473, 2676, 2127, 5300, 5480, 11637, 11378, 15583, 1628, 11468, 15917, 16039, 16720, 5001, 15450, 2445, 466, 15673, 15285, 17761, 15527, 15955, 1238, 2764, 1392, 7098, 8838, 6807, 15754, 13606, 1780, 3137, 827, 4444, 6282, 16758, 1767, 12341, 12063, 12234, 3793, 15313, 4318, 15743, 10926, 1664, 16079, 3851, 15510, 4716, 5846, 9184, 4481, 4044, 8818, 11271, 1536, 4632, 11254, 10425, 10505, 3980, 11431, 2060, 11173, 15739, 16311, 15431, 510, 6845, 1292, 14887, 15947, 11262, 12244, 6540, 5777, 10406, 768, 4664, 15724, 12598, 5617, 6015, 17034, 1784, 3466, 9666, 6434, 4296, 13689, 6852, 8829, 10652, 17727, 16525, 4624, 16071, 2945, 12735, 1752, 11686, 12232, 12159, 7269, 5985, 15823, 11067, 16508, 8782, 16477, 16253, 14798, 141, 4532, 904, 10521, 11508, 10580, 15913, 2118, 2480, 6762, 15662, 16430, 16595, 12835, 3624, 15667, 15185, 4465, 11145, 12437, 16843, 10823, 4866, 868, 6578, 15912, 1737, 9817, 13747, 16629, 6090, 14537, 11119, 7307, 12245, 14594, 17276, 14840, 3635, 16752, 1499, 2948, 6727, 6432, 15594, 14656, 5705, 6976, 10349, 7393, 2396, 1086, 11609, 14911, 13028, 12298, 6207, 6120, 6693, 11307, 562, 8816, 494, 4998, 10400, 10490, 13698, 11525, 297, 11919, 1932, 13803, 11080, 1572, 15033, 15677, 10650, 10945, 15619, 6706, 14926, 15791, 2221, 14795, 15069, 6629, 1422, 12105, 8992, 17732, 7474, 15883, 11371, 12426, 6184, 11123, 12073, 2548, 17976, 1776, 15508, 12279, 16240, 13655, 1435, 10753, 5964, 12405, 7185, 3462, 1606, 12747, 1300, 7175, 2937, 11851, 12026, 31, 12317, 16961, 6941, 5767, 393, 15771, 4267, 8844, 16017, 9077, 14800, 1056, 11093, 6687, 11774, 5861, 12899, 10511, 6372, 6715, 10997, 5264, 16112, 17075, 5871, 13708, 2689, 1380, 12024, 11752, 16278, 2289, 5934, 14804, 243, 13651, 15857, 4827, 11269, 10590, 11185, 16169, 14534, 1395, 15968, 8159, 513, 3695, 6026, 10847, 442, 5724, 6952, 1769, 12324, 7633, 17746, 16437, 15226, 7299, 17792, 6409, 763, 15958, 16591, 4491, 10879, 485, 9302, 15690, 11543, 11924, 11132, 6028, 1951, 16940, 4406, 13120, 2405, 11782, 11187, 8521, 12856, 16129, 7588, 13809, 5893, 13681, 6079, 6334, 4311, 4592, 8820, 13657, 2097, 2418, 6499, 10646, 673, 2105, 427, 599, 11275, 6233, 7074, 3901, 15435, 1346, 11714, 4286, 5643, 2843, 7295, 15236, 11575, 12229, 1386, 6216, 15266, 1775, 11917, 7235, 10744, 13616, 881, 2707, 10578, 5780, 11391, 17053, 16770, 14825, 9343, 12726, 1414, 14894, 8743, 6045, 15482, 4433, 6009, 7624, 2983, 10670, 15970, 1050, 16120, 263, 7280, 6544, 9525, 15850, 14584, 6481, 11290, 5501, 6105, 16462, 1101, 4224, 4320, 5474, 1166, 14879, 2159, 3248, 892, 15776, 5080, 6642, 6524, 819, 13131, 17250, 10588, 17625, 7367, 5927, 2135, 16276, 15427, 17222, 12039, 16736, 10074, 15251, 3655, 10933, 16249, 960, 15763, 11314, 10558, 3141, 4836, 17695, 4707, 10667, 14787, 9281, 1651, 7254, 11160, 16814, 6469, 14115, 15125, 5195, 3460, 404, 14680, 10946, 16890, 6599, 7134, 10993, 1679, 6085, 8108, 57, 15962, 13717, 312, 11588, 15307, 2212, 3839, 6828, 16463, 16495, 2452, 12285, 14545, 15241, 7643, 10813, 14059, 631, 3998, 6832, 6347, 1756, 2997, 5692, 14526, 2075, 17717, 5277, 4144, 12296, 5880, 4949, 8315, 680, 14034, 16796, 16388, 4519, 7226, 16242, 12561, 13036, 17286, 2649, 12071, 17697, 6173, 12876, 780, 11688, 2852, 9259, 10368, 7196, 8183, 17909, 12741, 14068, 11973, 11998, 16433, 15900, 11570, 5460, 553, 11571, 15512, 14811, 4344, 16499, 11859, 2388, 845, 4834, 5994, 6218, 6710, 12446, 5726, 1363, 7382, 6272, 12193, 16024, 11029, 6017, 9187, 6963, 2535, 15927, 348, 14419, 1251, 4425, 15902, 11249, 2377, 11934, 16773, 17742, 3475, 6118, 5747, 1301, 10250, 16234, 6720, 14843, 12780, 15521, 6965, 6406, 10642, 1266, 1998, 11498, 6995, 10415, 10821, 6002, 13711, 12743, 988, 10526, 16324, 7243, 1151, 4463, 714, 6195, 11144, 2122, 10150, 13882, 6745, 15940, 3490, 13802, 16251, 17700, 15818]
Traceback (most recent call last):
  File "C:\Users\jusjames\Anaconda3\envs\DLC-GPU\lib\site-packages\deeplabcut\gui\extract_outlier_frames.py", line 215, in extract_outlier_frames
    track_method=tracker,
  File "C:\Users\jusjames\Anaconda3\envs\DLC-GPU\lib\site-packages\deeplabcut\refine_training_dataset\outlier_frames.py", line 270, in extract_outlier_frames
    savelabeled,
  File "C:\Users\jusjames\Anaconda3\envs\DLC-GPU\lib\site-packages\deeplabcut\refine_training_dataset\outlier_frames.py", line 518, in ExtractFramesbasedonPreselection
    plt.close("all")
  File "C:\Users\jusjames\Anaconda3\envs\DLC-GPU\lib\site-packages\matplotlib\pyplot.py", line 684, in close
    _pylab_helpers.Gcf.destroy_all()
  File "C:\Users\jusjames\Anaconda3\envs\DLC-GPU\lib\site-packages\matplotlib\_pylab_helpers.py", line 73, in destroy_all
    manager.destroy()
  File "C:\Users\jusjames\Anaconda3\envs\DLC-GPU\lib\site-packages\matplotlib\backends\backend_wx.py", line 1211, in destroy
    self.frame.Destroy()
  File "C:\Users\jusjames\Anaconda3\envs\DLC-GPU\lib\site-packages\matplotlib\backends\backend_wx.py", line 1170, in Destroy
    if not self.IsBeingDeleted():
RuntimeError: wrapped C/C++ object of type FigureFrameWxAgg has been deleted

If you suspect this is an IPython 7.19.0 bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@python.org

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Although happening when calling different function it is probably same issue - since it’s a GUI problem. Check linked @jeylau answer here. DLC2.2b7 Refine Tracklet GUI not working - #2 by jeylau .

Hi @Konrad_Danielewski,

Thank you for your response!
So basically, there is no solution for it yet? I am on the 2.8b currently, so was this resolved in a previous version prior?