未验证 提交 29397b37 编写于 作者: R Roman Donchenko 提交者: GitHub

Fix a bunch of typos (#6405)

<!-- Raise an issue to propose your change
(https://github.com/opencv/cvat/issues).
It helps to avoid duplication of efforts from multiple independent
contributors.
Discuss your ideas with maintainers to be sure that changes will be
approved and merged.
Read the [Contribution
guide](https://opencv.github.io/cvat/docs/contributing/). -->

<!-- Provide a general summary of your changes in the Title above -->

### Motivation and context
<!-- Why is this change required? What problem does it solve? If it
fixes an open
issue, please link to the issue here. Describe your changes in detail,
add
screenshots. -->

### How has this been tested?
<!-- Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to
see how your change affects other areas of the code, etc. -->

### Checklist
<!-- Go over all the following points, and put an `x` in all the boxes
that apply.
If an item isn't applicable for some reason, then ~~explicitly
strikethrough~~ the whole
line. If you don't do that, GitHub will show incorrect progress for the
pull request.
If you're unsure about any of these, don't hesitate to ask. We're here
to help! -->
- [x] I submit my changes into the `develop` branch
- ~~[ ] I have added a description of my changes into the
[CHANGELOG](https://github.com/opencv/cvat/blob/develop/CHANGELOG.md)
file~~
- ~~[ ] I have updated the documentation accordingly~~
- ~~[ ] I have added tests to cover my changes~~
- ~~[ ] I have linked related issues (see [GitHub docs](

https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword))~~
- ~~[ ] I have increased versions of npm packages if it is necessary

([cvat-canvas](https://github.com/opencv/cvat/tree/develop/cvat-canvas#versioning),

[cvat-core](https://github.com/opencv/cvat/tree/develop/cvat-core#versioning),

[cvat-data](https://github.com/opencv/cvat/tree/develop/cvat-data#versioning)
and

[cvat-ui](https://github.com/opencv/cvat/tree/develop/cvat-ui#versioning))~~

### License

- [x] I submit _my code changes_ under the same [MIT License](
https://github.com/opencv/cvat/blob/develop/LICENSE) that covers the
project.
  Feel free to contact the maintainers if that's a concern.
上级 3f5eb710
......@@ -245,7 +245,7 @@ class OpenCVControlComponent extends React.PureComponent<Props & DispatchToProps
toolsBlockerState.algorithmsLocked ? 0 : threshold);
let points = [];
if (toolsBlockerState.algorithmsLocked && this.latestPoints.length > 2) {
// disable approximation for lastest two points to disable fickering
// disable approximation for latest two points to disable fickering
const [x, y] = this.latestPoints.slice(-2);
this.latestPoints.splice(this.latestPoints.length - 2, 2);
points = openCVWrapper.contours.approxPoly(
......
......@@ -88,7 +88,7 @@ function MeanQuality(props: Props): JSX.Element {
return (
<AnalyticsCard
title='Mean annotation quality'
className='cvat-task-mean-annotaion-quality'
className='cvat-task-mean-annotation-quality'
value={toRepresentation(reportSummary?.accuracy)}
tooltip={tooltip}
rightElement={dowloadReportButton}
......
......@@ -30,7 +30,7 @@
height: $grid-unit-size * 68;
}
.cvat-task-mean-annotaion-quality {
.cvat-task-mean-annotation-quality {
.ant-statistic {
display: flex;
flex-direction: column;
......
......@@ -215,7 +215,7 @@ class ObjectManager:
def _unite_objects(obj0, obj1):
raise NotImplementedError()
def _modify_unmached_object(self, obj, end_frame):
def _modify_unmatched_object(self, obj, end_frame):
raise NotImplementedError()
def merge(self, objects, start_frame, overlap, dimension):
......@@ -239,7 +239,7 @@ class ObjectManager:
if not old_objects_by_frame or not int_objects_by_frame:
for frame in old_objects_by_frame:
for old_obj in old_objects_by_frame[frame]:
self._modify_unmached_object(old_obj, start_frame + overlap)
self._modify_unmatched_object(old_obj, start_frame + overlap)
self.objects.extend(int_objects)
return
......@@ -280,7 +280,7 @@ class ObjectManager:
# (e.g. generate a shape with outside=True at the end).
for j in old_objects_indexes:
if j != -1:
self._modify_unmached_object(old_objects[j],
self._modify_unmatched_object(old_objects[j],
start_frame + overlap)
else:
# We don't have old objects on the frame. Let's add all new ones.
......@@ -301,7 +301,7 @@ class TagManager(ObjectManager):
# TODO: improve the trivial implementation
return obj0 if obj0["frame"] < obj1["frame"] else obj1
def _modify_unmached_object(self, obj, end_frame):
def _modify_unmatched_object(self, obj, end_frame):
pass
def pairwise(iterable):
......@@ -415,7 +415,7 @@ class ShapeManager(ObjectManager):
# TODO: improve the trivial implementation
return obj0 if obj0["frame"] < obj1["frame"] else obj1
def _modify_unmached_object(self, obj, end_frame):
def _modify_unmatched_object(self, obj, end_frame):
pass
class TrackManager(ObjectManager):
......@@ -531,7 +531,7 @@ class TrackManager(ObjectManager):
else:
return 0
def _modify_unmached_object(self, obj, end_frame):
def _modify_unmatched_object(self, obj, end_frame):
shape = obj["shapes"][-1]
if not shape["outside"]:
shape = deepcopy(shape)
......@@ -540,7 +540,7 @@ class TrackManager(ObjectManager):
obj["shapes"].append(shape)
for element in obj.get("elements", []):
self._modify_unmached_object(element, end_frame)
self._modify_unmatched_object(element, end_frame)
@staticmethod
def get_interpolated_shapes(
......@@ -575,7 +575,7 @@ class TrackManager(ObjectManager):
angle_diff = ((angle_diff + 180) % 360) - 180
if abs(angle_diff) >= 180:
# if the main arc is bigger than 180, go another arc
# to find it, just substract absolute value from 360 and inverse sign
# to find it, just subtract absolute value from 360 and inverse sign
angle_diff = 360 - abs(angle_diff) * -1 if angle_diff > 0 else 1
return angle_diff
......
......@@ -96,7 +96,7 @@ def make_exporter(name):
# Add checking for TF availability to avoid CVAT sever instance / interpreter
# crash and provide a meaningful diagnistic message in the case of AVX
# crash and provide a meaningful diagnostic message in the case of AVX
# instructions unavailability:
# https://github.com/openvinotoolkit/cvat/pull/1567
import datumaro.util.tf_util as TF
......
......@@ -77,7 +77,7 @@ class ProjectAnnotationAndData:
data_serializer = DataSerializer(data={
"server_files": files['media'],
#TODO: followed fields whould be replaced with proper input values from request in future
#TODO: following fields should be replaced with proper input values from request in future
"use_cache": False,
"use_zip_chunks": True,
"image_quality": 70,
......
......@@ -110,7 +110,7 @@ class Git:
raise ex
# Method creates the main branch if repostory doesn't have any branches
# Method creates the main branch if repository doesn't have any branches
def _create_master_branch(self):
if len(self._rep.heads):
raise Exception("Some heads already exists")
......
......@@ -481,7 +481,7 @@ class TaskExporter(_ExporterBase, _TaskBackupBase):
elif isinstance(file, ZipFile):
self._export_task(zip_obj=file, target_dir=target_dir)
else:
raise ValueError('Unsuported type of file argument')
raise ValueError('Unsupported type of file argument')
class _ImporterBase():
def __init__(self, *args, **kwargs):
......@@ -574,7 +574,7 @@ class TaskImporter(_ImporterBase, _TaskBackupBase):
elif isinstance(self._file, ZipFile):
return read(self._file)
raise ValueError('Unsuported type of file argument')
raise ValueError('Unsupported type of file argument')
def _create_annotations(self, db_job, annotations):
self._prepare_annotations(annotations, self._labels_mapping)
......@@ -940,7 +940,7 @@ def export(db_instance, request, queue_name):
use_target_storage_conf = request.query_params.get('use_default_location', True)
else:
raise Exception(
"Unexpected type of db_isntance: {}".format(type(db_instance)))
"Unexpected type of db_instance: {}".format(type(db_instance)))
use_settings = strtobool(str(use_target_storage_conf))
obj = db_instance if use_settings else request.query_params
location_conf = get_location_configuration(
......
......@@ -6,7 +6,7 @@ import django.db.models.deletion
from django.conf import settings
from cvat.apps.dataset_manager.task import _merge_table_rows
# some modified functions to transer annotation
# some modified functions to transfer annotation
def _bulk_create(db_model, db_alias, objects, flt_param):
if objects:
if flt_param:
......
......@@ -1877,9 +1877,9 @@ class CloudStorageWriteSerializer(serializers.ModelSerializer):
storage_status = storage.get_status()
if storage_status == Status.AVAILABLE:
new_manifest_names = set(i.get('filename') for i in validated_data.get('manifests', []))
previos_manifest_names = set(i.filename for i in instance.manifests.all())
delta_to_delete = tuple(previos_manifest_names - new_manifest_names)
delta_to_create = tuple(new_manifest_names - previos_manifest_names)
previous_manifest_names = set(i.filename for i in instance.manifests.all())
delta_to_delete = tuple(previous_manifest_names - new_manifest_names)
delta_to_create = tuple(new_manifest_names - previous_manifest_names)
if delta_to_delete:
instance.manifests.filter(filename__in=delta_to_delete).delete()
if delta_to_create:
......
......@@ -358,7 +358,7 @@ def _validate_scheme(url):
parsed_url = urlparse.urlparse(url)
if parsed_url.scheme not in ALLOWED_SCHEMES:
raise ValueError('Unsupported URL sheme: {}. Only http and https are supported'.format(parsed_url.scheme))
raise ValueError('Unsupported URL scheme: {}. Only http and https are supported'.format(parsed_url.scheme))
def _download_data(urls, upload_dir):
job = rq.get_current_job()
......
......@@ -43,7 +43,7 @@ from utils.dataset_manifest import ImageManifestManager, VideoManifestManager
from cvat.apps.engine.tests.utils import (ApiTestBase, ForceLogin, logging_disabled,
generate_image_file, generate_video_file)
#supress av warnings
#suppress av warnings
logging.getLogger('libav').setLevel(logging.ERROR)
def create_db_users(cls):
......
......@@ -39,7 +39,7 @@ class EventsViewSet(viewsets.ViewSet):
@extend_schema(summary='Method returns csv log file ',
methods=['GET'],
description='Recieve logs from the server',
description='Receive logs from the server',
parameters=[
OpenApiParameter('org_id', location=OpenApiParameter.QUERY, type=OpenApiTypes.INT, required=False,
description="Filter events by organization ID"),
......
{% load i18n %}
{% autoescape off %}
{% blocktrans %}Confirm your email adress{% endblocktrans %}
{% blocktrans %}Confirm your email address{% endblocktrans %}
{% endautoescape %}
\ No newline at end of file
......@@ -2488,7 +2488,7 @@ def prepare_report_for_downloading(db_report: models.QualityReport, *, host: str
# Decorate the report for better usability and readability:
# - add conflicting annotation links like:
# <host>/tasks/62/jobs/82?frame=250&type=shape&serverID=33741
# - covert some fractions to percents
# - convert some fractions to percents
# - add common report info
task_id = db_report.get_task().id
......
......@@ -983,7 +983,7 @@ paths:
/api/events:
get:
operationId: events_list
description: Recieve logs from the server
description: Receive logs from the server
summary: 'Method returns csv log file '
parameters:
- in: query
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册