Skip to content

Conversation

msokoloff1
Copy link
Contributor

@msokoloff1 msokoloff1 commented Nov 17, 2021

  • Keyframes are present in classification answers so we are supporting that
  • There is a new optional field for media type in the labelbox v1 converter. This will be used properly in the future but users can set the media type manually now if it can't be inferred.

@msokoloff1 msokoloff1 requested a review from jtsodapop November 17, 2021 19:28
@@ -24,13 +24,25 @@ class ClassificationAnswer(FeatureSchema):
- Represents a classification option.
- Because it inherits from FeatureSchema
the option can be represented with either the name or feature_schema_id

- The key frame arg only applies to video classifications.
Each answer can have a key frame indepdent of the others.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indepdent -> independent

'value': answer.value
}) for answer in self.answer
])
return Dropdown(answer=[answer.to_common() for answer in self.answer])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably not related to this pr... but Dropdown only support 1 answer similar to Radio answers rather than Checklist is there a reason why we have a list of answers for Dropdown?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is a list because that is how we export it

elif not self._is_url():
return TextData(text=self.row_data, **data_row_info)
return 'image'
elif (self._row_contains((".txt", ".text", ".html")) and
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be an or statement with line 198? if self._has_text_annotations():

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would also need to check if there are not object annotations. This also would make the condition on 200 harder to read.

else:
# no annotations to infer data type from.
# Use information from the row_data format if possible.
if self._row_contains((".jpg", ".png", ".jpeg")) and self._is_url():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be an or statement with line 200? elif self._has_object_annotations():

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could but I think this is more readable

@msokoloff1 msokoloff1 merged commit b814162 into develop Nov 18, 2021
@msokoloff1 msokoloff1 deleted the ms/video-classification-keyframe branch November 18, 2021 12:36
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

Successfully merging this pull request may close these issues.

2 participants