Closed nataliameira closed 11 months ago
👋 Hello @nataliameira, thank you for leaving an issue on Roboflow Notebooks.
If you are filing a bug report, please be as detailed as possible. This will help us more easily diagnose and resolve the problem you are facing. To learn more about contributing, check out our Contributing Guidelines.
If you require support with custom code that is not part of Roboflow Notebooks, please reach out on the Roboflow Forum or on the GitHub Discussions page associated with this repository.
Do you have more questions about Roboflow that we haven't responded to yet? Feel free to ask them on the Roboflow Discuss forum. Our developer advocates and community team actively respond to questions there.
To ask questions about Notebooks, head over to the GitHub Discussions section of this repository.
Hello friends, 👋 Thank you for your time,
I found my mistake. My images were between 0 and 255. I convert my images to 0 and 1 with the simple code below:
import os
import cv2
import numpy as np
from tqdm import tqdm
path = '/home/user/Desktop/Seg/dataset/train/'
path_destiny = '/home/user/Desktop/Seg/new_dataset/train/'
for img in tqdm(os.listdir(path)):
root, ext = os.path.splitext(img)
if ext.lower() in ['.png']:
img = cv2.imread(os.path.join(path,img), cv2.IMREAD_GRAYSCALE)
img_normalized = img / 255.0
img_binary = np.where(img_normalized >= 0.5, 1, 0)
output_path = os.path.join(path_destiny, f'{root}.png')
cv2.imwrite(output_path, (img_binary).astype(np.uint8))
Hello friends 👋
I'm trying to train the notebook on Google Colab.
My dataset is custom. I generated the masks myself. My dataset is similar to the ballon dataset. Images are sized 512 x 512.
I made small changes, I will share with you:
I get the error: 🤷♀️
Please help me. Some problems I can't solve. Your help will be appreciated!