mukulkhanna / FHDR

PyTorch Implementation of Global SIP 2019 Paper "FHDR: HDR Image Reconstruction from a SingleLDR Image using Feedback Network"
https://arxiv.org/abs/1912.11463
BSD 3-Clause "New" or "Revised" License
82 stars 17 forks source link

Not able to get it work #19

Closed ghost closed 9 months ago

ghost commented 1 year ago

Can you please help me get it working?

File "C:\Users\MyPC\Downloads\FHDR-master\FHDR-master\test.py", line 68, in for batch, data in enumerate(tqdm(data_loader, desc="Testing %")): File "C:\Users\MyPC\AppData\Local\Programs\Python\Python311\Lib\site-packages\tqdm\std.py", line 1178, in iter for obj in iterable: File "C:\Users\MyPC\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\utils\data\dataloader.py", line 633, in next data = self._next_data() ^^^^^^^^^^^^^^^^^ File "C:\Users\MyPC\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\utils\data\dataloader.py", line 677, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\MyPC\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\utils\data_utils\fetch.py", line 51, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\MyPC\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\utils\data_utils\fetch.py", line 51, in data = [self.dataset[idx] for idx in possibly_batched_index]


  File "C:\Users\MyPC\Downloads\FHDR-master\FHDR-master\data_loader.py", line 52, in __getitem__
    self.hdr_data_path, self.hdr_image_names[index]
                        ~~~~~~~~~~~~~~~~~~~~^^^^^^^
IndexError: list index out of range
mukulkhanna commented 1 year ago

It seems like the data loader didn't grab any images. Did you set up the dataset as suggested in the readme?

ghost commented 1 year ago

Yes I downloaded the sample dataset you provided and placed it at the right path.

ghost commented 1 year ago

Any help please?

mukulkhanna commented 1 year ago

This is where the paths to the images from your disk are loaded into the data loader. You might want to look into why this is returning an empty array.