Segment Anything: Interaction Error Occurred: Request Failed with Status Code 500 #6598
Closed
2 tasks done
Labels
bug
Something isn't working
My actions before raising this issue
Steps to Reproduce (for bugs)
Expected Behaviour
Using SAM to generate the mask/polygon.
Current Behaviour
I have a job that consists of tiff images. For some of the images, the SAM interaction is working without any issue. However, on some, it's throwing the below error:
Then I checked the Grafana tool to trace the problem. Here is log:
Traceback (most recent call last):
File "/opt/venv/lib/python3.10/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/home/django/cvat/apps/lambda_manager/views.py", line 808, in func_wrapper
data = func(*args, **kwargs)
File "/home/django/cvat/apps/lambda_manager/views.py", line 899, in call
return lambda_func.invoke(db_task, request.data, db_job=job, is_interactive=True, request=request)
File "/home/django/cvat/apps/lambda_manager/views.py", line 302, in invoke
"image": self._get_image(db_task, mandatory_arg("frame"), quality),
File "/home/django/cvat/apps/lambda_manager/views.py", line 410, in _get_image
image = frame_provider.get_frame(frame, quality=quality)
File "/home/django/cvat/apps/engine/frame_provider.py", line 196, in get_frame
chunk_reader = loader.load(chunk_number)
File "/home/django/cvat/apps/engine/frame_provider.py", line 86, in load
self.reader_class([self.get_chunk_path(chunk_id, self.quality, self.db_data)[0]]))
File "/home/django/cvat/apps/engine/cache.py", line 57, in get_task_chunk_data_with_mime
item = self._get_or_set_cache_item(
File "/home/django/cvat/apps/engine/cache.py", line 49, in _get_or_set_cache_item
item = create_function()
File "/home/django/cvat/apps/engine/cache.py", line 59, in
create_function=lambda: self._prepare_task_chunk(db_data, quality, chunk_number),
File "/home/django/cvat/apps/engine/cache.py", line 181, in _prepare_task_chunk
writer.save_as_chunk(images, buff)
File "/home/django/cvat/apps/engine/media_extractors.py", line 665, in save_as_chunk
pil_image.save(output, format=pil_image.format if pil_image.format else self.IMAGE_EXT, quality=100, subsampling=0)
File "/opt/venv/lib/python3.10/site-packages/PIL/Image.py", line 2353, in save
save_handler(self, fp, filename)
File "/opt/venv/lib/python3.10/site-packages/PIL/TiffImagePlugin.py", line 1770, in _save
raise ValueError(
ValueError: quality setting only supported for 'jpeg' compression
Possible Solution
Context
Your Environment
git log -1
):docker version
(e.g. Docker 17.0.05):Logs from `cvat` container
The text was updated successfully, but these errors were encountered: