Comments (7)
Hi Nico,
I'm not sure what the problem is exactly. If it's stuck at an iteration at epoch 264 I suspect that it's a multiprocessing/dataloader problem. Did this happen multiple times?
"Can you tell me how many pictures of a given hdr input folder, does the mashine compute?"
Sorry, I don't really understand what is asked here. Can you please clarify / rephrase? Is this question referring to training the model?
from hdr-expandnet.
I want to train the network with 421 pictures with the size each 16384Px and 8192Py.
My question is how can i trigger more than one iteration, or how do I know how many patches the mashine cuts out of every picture given in the HDR input folder. And how many pictures does the mashine use of the amount given?
E.g. does it take all 421 pictures and cuts ot 1 example so I would train the network with 421 patches. Or does it take only 200 out of the 421 pictures given and cuts out 2 patches than i would train with 400 patches?
Where can I change the number of patches or input pictures?
Do I need to precut the pictures to a given size so I can train the model with more patches?
Can I change the number of patches the mashine inputs at once (batch_size)?
Sorry and thank you for your answer :)
from hdr-expandnet.
For training, the images are cropped with random size at a random location and then resized to 256×256, so all the images you provide for training will be used, and the number of different patches per image is very big.
See here:
Line 71 in 2b47572
There's more detail in the paper (linked in readme).
Hope that answers your question.
from hdr-expandnet.
I get an error with the provided pictures:
`WARNING: save_path already exists. Checkpoints may be overwritten
Training: 0%| | 0/10000 [00:00<?, ?it/s]
Traceback (most recent call last):
File "train.py", line 136, in
train(opt)
File "train.py", line 107, in train
tqdm(loader, desc=f'Epoch {epoch}')
File "/home/nico/anaconda3/lib/python3.7/site-packages/tqdm/std.py", line 1081, in iter
for obj in iterable:
File "/home/nico/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 345, in next
data = self._next_data()
File "/home/nico/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 856, in _next_data
return self._process_data(data)
File "/home/nico/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 881, in _process_data
data.reraise()
File "/home/nico/anaconda3/lib/python3.7/site-packages/torch/_utils.py", line 394, in reraise
raise self.exc_type(msg)
KeyError: Caught KeyError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/nico/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop
data = fetcher.fetch(index)
File "/home/nico/anaconda3/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/nico/anaconda3/lib/python3.7/site-packages/torch/utils/data/utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/nico/expandnet/hdr-expandnet/util.py", line 345, in getitem
dpoint = self.preprocess(dpoint)
File "train.py", line 71, in transform
hdr = slice_gauss(hdr, crop_size=(384, 384), precision=(0.1, 1))
File "/home/nico/expandnet/hdr-expandnet/util.py", line 311, in slice_gauss
return img[index_gauss(img, precision, crop_size, random_size, ratio)]
File "/home/nico/expandnet/hdr-expandnet/util.py", line 299, in index_gauss
return np.s[starts['h'] : ends['h'], starts['w'] : ends[' w '], :]
KeyError: ' w '
Epoch 1: 0%| `
can you please help me find my error :/?
greetings Nico
from hdr-expandnet.
Hi Nico,
I just made a change to the code to fix the error. Please update with the latest version and try again.
Best,
Demetris
from hdr-expandnet.
Hey Demetris,
that was really fast thank you I´ll try it right now :)
greetings Nico
from hdr-expandnet.
Any updates on this?
from hdr-expandnet.
Related Issues (20)
- Image range processing in the experiment stage HOT 1
- Where can I get the dataset? HOT 1
- Inquiry about Dataset HOT 3
- Question about video dataset HOT 1
- About the performance of the model in training HOT 6
- durand tmo is not avalable HOT 3
- Which version of PyTorch do you use in this project? HOT 1
- about train data formats HOT 1
- about hdr image save HOT 3
- results in shadows HOT 21
- Not working at all HOT 8
- why it is not giving a hdr output? HOT 13
- Any updates on Training Source? HOT 4
- First line almost black HOT 1
- How to get the in-house HDR image? HOT 1
- Can expanded output be in .exr format instead of .hdr format? or need more details on .hdr HOT 2
- iterating over png/jpg dataset from a folder HOT 4
- The domain of pre-train model HOT 3
- How to get the result of Table 2 and Table 3 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hdr-expandnet.