cvg / glue-factory

Training library for local feature detection and matching
Apache License 2.0
755 stars 98 forks source link

AttributeError: 'tqdm' object has no attribute 'last_print_t' #108

Open I-am-PixelPioneer opened 1 month ago

I-am-PixelPioneer commented 1 month ago

Hi,thank you for your nice work.But I encountered the following problems while training lightglue and superpoint.The following is the complete log.

D:\anaconda\envs\pytorch\python.exe C:\Users\aaa\Desktop\glue-factory-main\gluefactory\train.py sp+lg_homography "\" --conf configs/superpoint+lightglue_homography.yaml "\" data.batch_size=32 [09/20/2024 16:31:33 gluefactory INFO] Starting experiment sp+lg_homography Traceback (most recent call last): File "C:\Users\aaa\Desktop\glue-factory-main\gluefactory\train.py", line 691, in main_worker(0, conf, output_dir, args) File "C:\Users\aaa\Desktop\glue-factory-main\gluefactory\train.py", line 628, in main_worker training(rank, conf, output_dir, args) File "C:\Users\aaa\Desktop\glue-factory-main\gluefactory\train.py", line 258, in training dataset = get_dataset(data_conf.name)(data_conf) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\aaa\Desktop\glue-factory-main\gluefactory\datasets\base_dataset.py", line 143, in init self._init(self.conf) File "C:\Users\aaa\Desktop\glue-factory-main\gluefactory\datasets\homographies.py", line 92, in _init self.download_revisitop1m() File "C:\Users\aaa\Desktop\glue-factory-main\gluefactory\datasets\homographies.py", line 140, in download_revisitop1m torch.hub.download_url_to_file(url_base + list_name, tmp_dir / list_name) File "D:\anaconda\envs\pytorch\Lib\site-packages\torch\hub.py", line 648, in download_url_to_file with tqdm(total=file_size, disable=not progress, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\anaconda\envs\pytorch\Lib\site-packages\tqdm\std.py", line 1098, in init self.refresh(lock_args=self.lock_args) File "D:\anaconda\envs\pytorch\Lib\site-packages\tqdm\std.py", line 1347, in refresh self.display() File "D:\anaconda\envs\pytorch\Lib\site-packages\tqdm\std.py", line 1495, in display self.sp(self.str() if msg is None else msg) File "D:\anaconda\envs\pytorch\Lib\site-packages\tqdm\std.py", line 459, in print_status fp_write('\r' + s + (' ' max(last_len[0] - len_s, 0))) File "D:\anaconda\envs\pytorch\Lib\site-packages\tqdm\std.py", line 452, in fp_write fp.write(str(s)) File "D:\anaconda\envs\pytorch\Lib\site-packages\tqdm\utils.py", line 196, in inner return func(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ OSError: [Errno 22] Invalid argument Exception ignored in: <function tqdm.del at 0x0000024C8C4D9760> Traceback (most recent call last): File "D:\anaconda\envs\pytorch\Lib\site-packages\tqdm\std.py", line 1148, in del self.close() File "D:\anaconda\envs\pytorch\Lib\site-packages\tqdm\std.py", line 1277, in close if self.last_print_t < self.start_t + self.delay: ^^^^^^^^^^^^^^^^^ AttributeError: 'tqdm' object has no attribute 'last_print_t'

进程已结束,退出代码为 1