-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
老师您好,程序测试的时候出现了一点问题 #15
Comments
软件包的版本如下 |
请使用我们提供数据集类似的命名格式重新命名你们的测试图片。 |
已经按要求重新命名了,但还是出现同样的错误信息 |
已经按要求重新命名了,但还是出现同样的错误信息
…________________________________
发件人: Zhangkai NI ***@***.***>
发送时间: 2025年1月19日 11:36
收件人: eezkni/UEGAN ***@***.***>
抄送: ArgentumHook ***@***.***>; Author ***@***.***>
主题: Re: [eezkni/UEGAN] 老师您好,程序测试的时候出现了一点问题 (Issue #15)
请使用我们提供数据集类似的命名格式重新命名你们的测试图片。
―
Reply to this email directly, view it on GitHub<#15 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJ6AQYMVPLVXAH2OTYSQEET2LMMTLAVCNFSM6AAAAABVMN5RECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBQGU3TSMBWGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我按照readme里面要求的第三方库版本进行配置,然后下载好了预训练模型,在运行脚本
python main.py --mode test --version UEGAN-FiveK --pretrained_model 92 --is_test_nima True --is_test_psnr_ssim True的时候出了以下错误:
File "C:\Users\argen\Documents.code\UEGAN\data_loader.py", line 118, in _fetch_refs
x, y, name = next(self.iter)
AttributeError: 'InputFetcher' object has no attribute 'iter'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 62, in
main(args)
File "main.py", line 50, in main
tester.test()
File "C:\Users\argen\Documents.code\UEGAN\tester.py", line 64, in test
input = next(self.fetcher_test)
File "C:\Users\argen\Documents.code\UEGAN\data_loader.py", line 125, in next
x, y, img_name = self._fetch_refs()
File "C:\Users\argen\Documents.code\UEGAN\data_loader.py", line 121, in _fetch_refs
x, y, name = next(self.iter)
File "C:\Users\argen\AppData\Local\Programs\miniconda3\envs\UEGAN\lib\site-packages\torch\utils\data\dataloader.py", line 345, in next
data = self._next_data()
File "C:\Users\argen\AppData\Local\Programs\miniconda3\envs\UEGAN\lib\site-packages\torch\utils\data\dataloader.py", line 856, in _next_data
return self._process_data(data)
File "C:\Users\argen\AppData\Local\Programs\miniconda3\envs\UEGAN\lib\site-packages\torch\utils\data\dataloader.py", line 881, in _process_data
data.reraise()
File "C:\Users\argen\AppData\Local\Programs\miniconda3\envs\UEGAN\lib\site-packages\torch_utils.py", line 394, in reraise
raise self.exc_type(msg)
ValueError: Caught ValueError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "C:\Users\argen\AppData\Local\Programs\miniconda3\envs\UEGAN\lib\site-packages\torch\utils\data_utils\worker.py", line 178, in _worker_loop
data = fetcher.fetch(index)
File "C:\Users\argen\AppData\Local\Programs\miniconda3\envs\UEGAN\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\Users\argen\AppData\Local\Programs\miniconda3\envs\UEGAN\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\Users\argen\Documents.code\UEGAN\data_loader.py", line 60, in getitem
_, img_name = img_name.rsplit('/', 1)
ValueError: not enough values to unpack (expected 2, got 1)
希望老师可以解答一下,谢谢
The text was updated successfully, but these errors were encountered: