Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: viewable newline characters in the field spec for the annotations by using line after line definition of the labels in the yamle-file #3061

Open
2 tasks done
RoseDeSable opened this issue Nov 17, 2023 · 0 comments

Comments

@RoseDeSable
Copy link

Nuclio Version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of Nuclio.

Issue Description

Hi,
I use the label-definition, if it is descibed as in the documenntation:

line by line


annotations:
name: RetinaNet R101
type: detector
framework: pytorch
spec: |
[
{ "id": 1, "name": "person" },
{ "id": 2, "name": "bicycle" },

    ...

    { "id":89, "name": "hair_drier" },
    { "id":90, "name": "toothbrush" }
  ]      

source: https://opencv.github.io/cvat/docs/manual/advanced/serverless-tutorial/#dl-model-as-a-serverless-function

I import the yaml-file and allthing seems to be allwright. But AFTER EXPORTING AND IMPORTING the yaml-file, I see the definitions with viewable newline characters in the file and in the field spec:

spec: ""[\n {\n "name": "7",\n "color": "#aaf0d1",\n "attributes": []\n },\n {\n "name": "4",\n "color": "#ddff33",\n "attributes": []\n },\n {\n "name": "B",\n "color": "#f34a4a",\n "attributes": []\n },\n {\n "name": "background",\n "color": "#000000",\n " ...

Therefore this function is as model unusable for CVAT.

Best Regards
Rose

Expected Behavior

the label-definition without viewable newline characters.

Deployment Method

Docker

Nuclio Version

1.11.24

Additional Information

no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant