Project-AgML / AgML

AgML is a centralized framework for agricultural machine learning. AgML provides access to public agricultural datasets for common agricultural deep learning tasks, with standard benchmarks and pretrained models, as well the ability to generate synthetic data and annotations.
Apache License 2.0
176 stars 28 forks source link

Always Getting Simply Black Images under Annotations Files. #42

Closed StupiddCupid closed 1 year ago

StupiddCupid commented 1 year ago

Hey,

I'm learning AgML-ActiveVision.ipynb and trying to generate some images. After completing the running process, the images under annotation files are simply black without any information. I wonder if I did something wrong or they should be black for some reason.

Thanks!

Screenshot 2023-01-29 at 11 12 11 PM
dariojavo commented 1 year ago

Hi,

The images shouldn't be black. The annotation image (semantic segmentation) may be black if no annotated objects are found, but no the RGB images. Could you provide more details on your OS, the camera, and map positions? Also can you check if the annotations are empty?

ctyeong commented 1 year ago

@dariojavo, I've realized that's just because the segmented pixels are simply values of 1, which is very small and looks just like black if you just opened it through your default viewer on the OS. If you've seen it though something like matplotlib on Python, it looks normal since it automatically normalize values within each image.

masonearles commented 1 year ago

Great! Can we close this issue out? @ctyeong @StupiddCupid

StupiddCupid commented 1 year ago

Yes! Thanks a lot for your help.