Questions tagged [keras-cv]

6 questions
1
vote
1 answer

KerasCV Stable Diffusion Inpainting Image Quality

I tried to use KerasCV Stable Diffusion API to run inpainting many times. However the generated image always come with a noisy margin on both the upper border and left border of the image. I only use default parameters to run the API functions.…
Artico
  • 11
  • 2
1
vote
0 answers

Keras CV object detection: bounding boxes, classes and images

I'm trying to load my custom data for this tutorial. Basically it's an object detector with retina-net. The problem starts with the format of the data. From the tutorial, it is mentioned, KerasCV has a predefined specificication for bounding boxes.…
Joaquin
  • 139
  • 1
  • 3
  • 12
1
vote
2 answers

cannot import name 'compute_pycoco_metrics' from 'keras_cv.metrics.coco'

i install keras_cv on macbook M1: pip install keras_cv and run this code import keras_cv and get this error: Traceback (most recent call last): File "", line 1, in File…
Sajjad Aemmi
  • 2,120
  • 3
  • 13
  • 25
0
votes
0 answers

How to properly export keras_cv detection model for inference?

Using keras_cv (TF 2.12 on Linux) I have built and trained a model, similar to official keras_cv documentation and examples. model = keras_cv.models.RetinaNet.from_preset( "resnet50_imagenet", num_classes=len(class_mapping), …
Pawel
  • 900
  • 2
  • 10
  • 19
0
votes
0 answers

Why retinanet model model.predict() return only boxes with -1 after training?

I have been studying keras-cv repository and I have some questions that I was hoping you could help me with. I am currently working on a ship detection model. So I am trying to implement retinaNet model. After suiting my data to the specific…
0
votes
1 answer

Tensorflow how to concatenate tensors

I'm trying to make a data pipeline for using my custom data with this tutorial. So basically my code so far is: import random import enum import numpy as np import cv2 as cv import imageio as iio import matplotlib.pyplot as plt import…
Joaquin
  • 139
  • 1
  • 3
  • 12