pjreddie / darknet

Convolutional Neural Networks
http://pjreddie.com/darknet/
Other
25.82k stars 21.33k forks source link

Multi-channel inputs? (RBG+NIR, etc) How to? #1242

Open davidbernat opened 5 years ago

davidbernat commented 5 years ago

I have N channel GeoTiffs where N > 3.

I can edit the Yolo cfg file to set channels=N.

However, I do not see the correct way to edit python/darknet.py or use the load_image() function to read this data in. My aim is to solve this without editing the C++.

AFAIK, jpg, png, and the other data formats do not handle N > 3 (not counting alpha).

Please advise. Thank you!

liuhuiCNN commented 5 years ago

You can use a yolo tensorflow version code to train. Using the python to read the data.

davidbernat commented 5 years ago

Do you have a preferred version (repository) with your blessing? I worried about bugs or code drift as you updated the original version.

On Mon, Nov 12, 2018 at 2:29 AM cnn notifications@github.com wrote:

You can use a yolo tensorflow version code to train. Using the python to read the data.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pjreddie/darknet/issues/1242#issuecomment-437782575, or mute the thread https://github.com/notifications/unsubscribe-auth/AFJWoyMy5e29YpibgNQSLV8Byv2efz2Zks5uuSNCgaJpZM4YV5DB .

kaancolak commented 5 years ago

Did you solve the problem?

davidbernat commented 5 years ago

No, I punted. Did you?

On Fri, Mar 29, 2019 at 9:44 PM kaancolak notifications@github.com wrote:

Did you solve the problem?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pjreddie/darknet/issues/1242#issuecomment-478194894, or mute the thread https://github.com/notifications/unsubscribe-auth/AFJWoy6xsiCIkWRipA3HXIf88lhztO0Wks5vbsFqgaJpZM4YV5DB .

petulka8s commented 1 year ago

Hi, did you solve the problem with RGB and NIR images? I also have these type of images. I am trying to feed properly the network, but I am really not sure how. Even I change channels > 3, it is not working.

davidbernat commented 1 year ago

I would have to restart the project. It would be straightforward. What is your purpose of building out this technology?

petulka8s commented 1 year ago

I am doing school project for trees reconigition. First, I trained it for RGB. Then I trained it only for NIR. Now, I want to do combination of these two images and prove that combination of both is better.

davidbernat commented 1 year ago

@petulka8s Let's talk about it. I sent you a message. Find my email on my profile and ask me your questions there.