.tif Image format for segmentation and Object Detection

I have the image dataset which is basically in .tif format when I am trying to upload on Roboflow app it does not support .tif format .
I want to apply Instance Segmentation using MaskRCNN on the data
Can anybody help me with this.

@Hamad_Younis you’ll need to convert the .tif files to .png

  • .png will be best, as it will preserve the details as much as possible

From there, you’ll be able to upload - but just be sure you change the image references in the annotations files so the extensions match the new files.

Here are the formats we accept for upload, with examples on each page of the format structure: Computer Vision Annotation Formats

You can also convert to .jpeg prior to upload if you so choose

@Mohamed it is very large process, does your tool does not support .tif format. if not please add the feature to it.

It does not natively accept .tif files for upload, as the browser won’t accept that file type.

You’ll need to do the .png or .jpeg conversion method.

You can do it programmatically, too:

!pip install Pillow

from PIL import Image

import Image
im = Image.open('test.tif')
im.save('test.png')

Or, alternatively, an online file conversion tool, such as: TIF to PNG Converter - FreeConvert.com

@Mohamed But main issue is the my annotation in .xml file which i have label with .tif file format.
My machine which is real time generate .tif format files.

All you need to do is change the extension of the .tif in the .xml files to .png

Annotation files just contain records of labels, and then point to the file that the label belongs to. If the file name and extension matches, and the formatting is correct, the label is applied to the image.

@Mohamed when i change the both it does not work the annotation is change and the image is bounding box coordinate were change and the message shown is the trim the annotation in roboflow app

Can you file a bug report here: GitHub - roboflow/external-bugtracker

Or, if you don’t want to post the image in a public GitHub repo, please send to help@roboflow.com the screenshot of the image with trimmed annotations, the UI message, and also a screen recording of the full upload process.

@Mohamed No reply for helpcenter and github repo

Hi, we typically operate in US business hours, as we’re headquartered in the US.

We will review the bug and reply.

Hey @Mohamed, Has his issue got resolved?
I am also working on similar kind of problem. I have Hyper-spectral data, from that I used PCA to trim down to few bands and saved the principle components in ‘.tif’ format.
I want to use Yolov8 model to train a custom object detection model.

Hi @snehit_vaddi

Could you elaborate on the issue you’re experiencing?

Are you experiencing the same issue as this?

I’m currently focusing on a project where I’ve processed hyper-spectral data through PCA, reducing it to prominent principal components and storing these in ‘.tif’ format. Now, I’m looking to advance to the next stage of my project, which involves object detection. Specifically, I’m interested in understanding if the Yolov8 model can be trained on these ‘.tif’ files containing the crucial principal components. Are there any constraints or considerations I should be aware of for effectively training a Yolov8 custom model with this kind of data?

Hi @snehit_vaddi

I’m not aware of any specific issues using .tif files for YOLOv8 training, but the Roboflow platform doesn’t support .tif files currently, so you will need to convert them.