-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix interpolation error #1878
Fix interpolation error #1878
Conversation
Pull Request Test Coverage Report for Build 6377
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this! I changed test_annotation.py and the annotation.py file per this "Fix interpolation error #1878", did docker-compose down
and docker-compose up -d
and tried to dump annotations again. Unfortunately, I received the same error.
Log File
2020-07-10 11:25:24,623 INFO RPC interface 'supervisor' initialized
2020-07-10 11:25:24,623 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2020-07-10 11:25:24,623 INFO supervisord started with pid 1
2020-07-10 11:25:25,627 INFO spawned: 'ssh-agent' with pid 8
2020-07-10 11:25:25,630 INFO spawned: 'rqscheduler' with pid 9
2020-07-10 11:25:25,636 INFO spawned: 'runserver' with pid 10
2020-07-10 11:25:25,639 INFO spawned: 'rqworker_low' with pid 12
2020-07-10 11:25:25,641 INFO spawned: 'rqworker_default_0' with pid 14
2020-07-10 11:25:25,643 INFO spawned: 'rqworker_default_1' with pid 15
2020-07-10 11:25:25,646 INFO spawned: 'git_status_updater' with pid 19
2020-07-10 11:25:25,648 INFO spawned: 'clamav_update' with pid 25
2020-07-10 11:25:25,649 DEBG 'ssh-agent' stdout output:
SSH_AUTH_SOCK=/tmp/ssh-agent.sock; export SSH_AUTH_SOCK;
echo Agent pid 13;
2020-07-10 11:25:25,649 DEBG 'ssh-agent' stderr output:
debug2: fd 3 setting O_NONBLOCK
2020-07-10 11:25:25,650 DEBG 'runserver' stderr output:
wait-for-it.sh: waiting for cvat_db:5432 without a timeout
2020-07-10 11:25:25,651 DEBG 'rqscheduler' stderr output:
wait-for-it.sh: waiting for cvat_redis:6379 without a timeout
2020-07-10 11:25:25,652 DEBG 'rqworker_low' stderr output:
wait-for-it.sh: waiting for cvat_redis:6379 without a timeout
2020-07-10 11:25:25,657 DEBG 'rqworker_default_0' stderr output:
wait-for-it.sh: waiting for cvat_redis:6379 without a timeout
2020-07-10 11:25:25,660 DEBG fd 41 closed, stopped monitoring <POutputDispatcher at 140447675020856 for <Subprocess at 140447675172408 with name clamav_update in state STARTING> (stdout)>
2020-07-10 11:25:25,660 DEBG fd 45 closed, stopped monitoring <POutputDispatcher at 140447675021000 for <Subprocess at 140447675172408 with name clamav_update in state STARTING> (stderr)>
2020-07-10 11:25:25,661 INFO exited: clamav_update (exit status 0; not expected)
2020-07-10 11:25:25,661 DEBG received SIGCLD indicating a child quit
2020-07-10 11:25:25,661 DEBG 'rqscheduler' stderr output:
wait-for-it.sh: cvat_redis:6379 is available after 0 seconds
2020-07-10 11:25:25,662 DEBG 'rqworker_default_1' stderr output:
wait-for-it.sh: waiting for cvat_redis:6379 without a timeout
2020-07-10 11:25:25,662 DEBG 'runserver' stderr output:
wait-for-it.sh: cvat_db:5432 is available after 0 seconds
2020-07-10 11:25:25,663 DEBG 'git_status_updater' stderr output:
wait-for-it.sh: waiting for cvat_redis:6379 without a timeout
2020-07-10 11:25:25,664 DEBG 'rqworker_default_0' stderr output:
wait-for-it.sh: cvat_redis:6379 is available after 0 seconds
2020-07-10 11:25:25,666 DEBG 'rqscheduler' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
2020-07-10 11:25:25,666 DEBG 'runserver' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
2020-07-10 11:25:25,667 DEBG 'rqworker_default_0' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
2020-07-10 11:25:25,669 DEBG 'rqworker_default_1' stderr output:
wait-for-it.sh: cvat_redis:6379 is available after 0 seconds
2020-07-10 11:25:25,669 DEBG 'rqworker_low' stderr output:
wait-for-it.sh: cvat_redis:6379 is available after 0 seconds
2020-07-10 11:25:25,671 DEBG 'git_status_updater' stderr output:
wait-for-it.sh: cvat_redis:6379 is available after 0 seconds
2020-07-10 11:25:25,672 DEBG 'rqworker_low' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
2020-07-10 11:25:25,673 DEBG 'rqworker_default_1' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
2020-07-10 11:25:25,675 DEBG 'git_status_updater' stderr output:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
2020-07-10 11:25:25,830 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2020-07-10 11:25:25,830 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4
2020-07-10 11:25:25,839 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11
2020-07-10 11:25:25,839 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4
2020-07-10 11:25:25,842 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2020-07-10 11:25:25,845 DEBG 'ssh-agent' stderr output:
debug1: type 17
2020-07-10 11:25:25,846 DEBG 'rqworker_default_1' stderr output:
Identity added: /home/django/.ssh/id_rsa (/home/django/.ssh/id_rsa)
2020-07-10 11:25:25,847 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4
2020-07-10 11:25:25,850 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2020-07-10 11:25:25,852 DEBG 'ssh-agent' stderr output:
debug1: type 17
2020-07-10 11:25:25,854 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4
2020-07-10 11:25:25,859 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11
2020-07-10 11:25:25,859 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4
2020-07-10 11:25:25,864 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2020-07-10 11:25:25,866 DEBG 'ssh-agent' stderr output:
debug1: type 17
2020-07-10 11:25:25,869 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4
2020-07-10 11:25:25,872 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11
2020-07-10 11:25:25,872 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4
2020-07-10 11:25:25,878 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2020-07-10 11:25:25,880 DEBG 'ssh-agent' stderr output:
debug1: type 17
2020-07-10 11:25:25,883 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4
2020-07-10 11:25:25,887 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11
2020-07-10 11:25:25,887 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4
2020-07-10 11:25:25,890 DEBG 'rqscheduler' stderr output:
11:25:25 Registering birth
2020-07-10 11:25:25,896 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2020-07-10 11:25:25,898 DEBG 'ssh-agent' stderr output:
debug1: type 17
2020-07-10 11:25:25,901 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4
2020-07-10 11:25:25,915 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11
2020-07-10 11:25:25,915 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4
2020-07-10 11:25:26,917 INFO success: ssh-agent entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-07-10 11:25:26,917 INFO success: rqscheduler entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-07-10 11:25:26,917 INFO success: runserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-07-10 11:25:26,917 INFO success: rqworker_low entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-07-10 11:25:26,917 INFO success: rqworker_default_0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-07-10 11:25:26,917 INFO success: rqworker_default_1 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-07-10 11:25:26,917 INFO success: git_status_updater entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-07-10 11:25:26,919 INFO spawned: 'clamav_update' with pid 102
2020-07-10 11:25:26,928 DEBG fd 41 closed, stopped monitoring <POutputDispatcher at 140447675021144 for <Subprocess at 140447675172408 with name clamav_update in state STARTING> (stdout)>
2020-07-10 11:25:26,928 DEBG fd 45 closed, stopped monitoring <POutputDispatcher at 140447675020712 for <Subprocess at 140447675172408 with name clamav_update in state STARTING> (stderr)>
2020-07-10 11:25:26,928 INFO exited: clamav_update (exit status 0; not expected)
2020-07-10 11:25:26,928 DEBG received SIGCLD indicating a child quit
2020-07-10 11:25:28,932 INFO spawned: 'clamav_update' with pid 188
2020-07-10 11:25:28,961 DEBG fd 41 closed, stopped monitoring <POutputDispatcher at 140447675021216 for <Subprocess at 140447675172408 with name clamav_update in state STARTING> (stdout)>
2020-07-10 11:25:28,961 DEBG fd 45 closed, stopped monitoring <POutputDispatcher at 140447675021000 for <Subprocess at 140447675172408 with name clamav_update in state STARTING> (stderr)>
2020-07-10 11:25:28,961 INFO exited: clamav_update (exit status 0; not expected)
2020-07-10 11:25:28,961 DEBG received SIGCLD indicating a child quit
2020-07-10 11:25:31,966 INFO spawned: 'clamav_update' with pid 219
2020-07-10 11:25:31,975 DEBG fd 41 closed, stopped monitoring <POutputDispatcher at 140447675021288 for <Subprocess at 140447675172408 with name clamav_update in state STARTING> (stdout)>
2020-07-10 11:25:31,975 DEBG fd 45 closed, stopped monitoring <POutputDispatcher at 140447675020712 for <Subprocess at 140447675172408 with name clamav_update in state STARTING> (stderr)>
2020-07-10 11:25:31,975 INFO exited: clamav_update (exit status 0; not expected)
2020-07-10 11:25:31,975 DEBG received SIGCLD indicating a child quit
2020-07-10 11:25:32,976 INFO gave up: clamav_update entered FATAL state, too many start retries too quickly
2020-07-10 11:25:33,790 DEBG 'rqworker_low' stderr output:
INFO:rq.worker:RQ worker 'rq:worker:26594c887f54453baf485dfdbfadcdf9' started, version 1.0
2020-07-10 11:25:33,791 DEBG 'rqworker_default_0' stderr output:
INFO:rq.worker:RQ worker 'rq:worker:865f00834ab54f4eaec408ebea5821f8' started, version 1.0
2020-07-10 11:25:33,791 DEBG 'rqworker_low' stderr output:
INFO:rq.worker:*** Listening on low...
2020-07-10 11:25:33,792 DEBG 'rqworker_default_0' stderr output:
INFO:rq.worker:*** Listening on default...
2020-07-10 11:25:33,792 DEBG 'rqworker_low' stderr output:
INFO:rq.worker:Cleaning registries for queue: low
2020-07-10 11:25:33,793 DEBG 'rqworker_default_0' stderr output:
INFO:rq.worker:Cleaning registries for queue: default
2020-07-10 11:25:34,050 DEBG 'rqworker_default_1' stderr output:
INFO:rq.worker:RQ worker 'rq:worker:18b1a6ff220f431cb8a431c046573a91' started, version 1.0
2020-07-10 11:25:34,051 DEBG 'rqworker_default_1' stderr output:
INFO:rq.worker:*** Listening on default...
2020-07-10 11:25:35,079 DEBG 'runserver' stdout output:
Operations to perform:
Apply all migrations: account, admin, auth, authtoken, contenttypes, engine, git, sessions, sites, socialaccount
Running migrations:
No migrations to apply.
Your models have changes that are not yet reflected in a migration, and so won't be applied.
Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
2020-07-10 11:25:35,643 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2020-07-10 11:25:35,645 DEBG 'ssh-agent' stderr output:
debug1: type 17
2020-07-10 11:25:35,648 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4
2020-07-10 11:25:35,652 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11
2020-07-10 11:25:35,652 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4
2020-07-10 11:25:36,374 DEBG 'runserver' stdout output:
0 static files copied to '/home/django/static', 411 unmodified.
2020-07-10 11:25:36,588 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2020-07-10 11:25:36,591 DEBG 'ssh-agent' stderr output:
debug1: type 17
2020-07-10 11:25:36,594 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4
2020-07-10 11:25:36,598 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11
2020-07-10 11:25:36,598 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4
2020-07-10 11:25:41,963 DEBG 'runserver' stdout output:
Successfully ran command.
Server URL : http://localhost:8080/
Server Root : /tmp/cvat-server
Server Conf : /tmp/cvat-server/httpd.conf
Error Log File : /dev/stderr (INFO)
Request Capacity : 5 (1 process * 5 threads)
Request Timeout : 60 (seconds)
Startup Timeout : 15 (seconds)
Queue Backlog : 100 (connections)
Queue Timeout : 45 (seconds)
Server Capacity : 20 (event/worker), 20 (prefork)
Server Backlog : 500 (connections)
Locale Setting : C.UTF-8
2020-07-10 11:25:42,004 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:42.004123 2020] [mpm_event:notice] [pid 10:tid 140665144747904] AH00489: Apache/2.4.18 (Ubuntu) mod_wsgi/4.7.1 Python/3.5 configured -- resuming normal operations
[Fri Jul 10 11:25:42.004188 2020] [mpm_event:info] [pid 10:tid 140665144747904] AH00490: Server built: 2019-10-08T13:31:25
[Fri Jul 10 11:25:42.004064 2020] [wsgi:info] [pid 265:tid 140665144747904] mod_wsgi (pid=265): Starting process 'localhost:8080' with threads=5.
[Fri Jul 10 11:25:42.004198 2020] [core:notice] [pid 10:tid 140665144747904] AH00094: Command line: 'apache2 (mod_wsgi-express) -f /tmp/cvat-server/httpd.conf -D MOD_WSGI_MPM_ENABLE_EVENT_MODULE -D MOD_WSGI_MPM_EXISTS_EVENT_MODULE -D MOD_WSGI_MPM_EXISTS_WORKER_MODULE -D MOD_WSGI_MPM_EXISTS_PREFORK_MODULE -D FOREGROUND'
2020-07-10 11:25:42,004 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:42.004591 2020] [wsgi:info] [pid 265:tid 140665144747904] mod_wsgi (pid=265): Python home /usr.
2020-07-10 11:25:42,004 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:42.004632 2020] [wsgi:info] [pid 265:tid 140665144747904] mod_wsgi (pid=265): Initializing Python.
2020-07-10 11:25:42,039 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:42.039264 2020] [wsgi:info] [pid 265:tid 140665144747904] mod_wsgi (pid=265): Attach interpreter ''.
2020-07-10 11:25:42,043 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:42.043413 2020] [wsgi:info] [pid 265:tid 140665144747904] mod_wsgi (pid=265): Imported 'mod_wsgi'.
[Fri Jul 10 11:25:42.043475 2020] [wsgi:info] [pid 265:tid 140665144747904] mod_wsgi (pid=265, process='localhost:8080', application=''): Loading Python script file '/tmp/cvat-server/handler.wsgi'.
2020-07-10 11:25:42,281 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
2020-07-10 11:25:42,285 DEBG 'ssh-agent' stderr output:
debug1: type 17
2020-07-10 11:25:42,287 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4
2020-07-10 11:25:42,291 DEBG 'ssh-agent' stderr output:
debug2: fd 4 setting O_NONBLOCK
debug1: type 11
2020-07-10 11:25:42,291 DEBG 'ssh-agent' stderr output:
debug1: XXX shrink: 3 < 4
2020-07-10 11:25:49,404 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:49.403856 2020] [wsgi:error] [pid 265:tid 140664942532352] [remote 172.20.0.6:42198] [2020-07-10 11:25:49,403] WARNING django.request: Not Found: /dextr/enabled
2020-07-10 11:25:49,410 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:49.410642 2020] [wsgi:error] [pid 265:tid 140664942532352] [remote 172.20.0.6:42198] WARNING:django.request:Not Found: /dextr/enabled
2020-07-10 11:25:49,411 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:49.411123 2020] [wsgi:error] [pid 265:tid 140664908961536] [remote 172.20.0.6:42196] [2020-07-10 11:25:49,405] WARNING django.request: Not Found: /tensorflow/segmentation/meta/get
2020-07-10 11:25:49,411 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:49.411833 2020] [wsgi:error] [pid 265:tid 140664925746944] [remote 172.20.0.6:42172] [2020-07-10 11:25:49,408] WARNING django.request: Not Found: /analytics/app/kibana
2020-07-10 11:25:49,412 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:49.412020 2020] [wsgi:error] [pid 265:tid 140664908961536] [remote 172.20.0.6:42196] WARNING:django.request:Not Found: /tensorflow/segmentation/meta/get
2020-07-10 11:25:49,413 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:49.412908 2020] [wsgi:error] [pid 265:tid 140664934139648] [remote 172.20.0.6:42182] [2020-07-10 11:25:49,410] WARNING django.request: Not Found: /auto_annotation/meta/get
2020-07-10 11:25:49,413 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:49.413545 2020] [wsgi:error] [pid 265:tid 140664925746944] [remote 172.20.0.6:42172] WARNING:django.request:Not Found: /analytics/app/kibana
2020-07-10 11:25:49,415 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:49.415081 2020] [wsgi:error] [pid 265:tid 140664917354240] [remote 172.20.0.6:42192] [2020-07-10 11:25:49,414] WARNING django.request: Not Found: /tensorflow/annotation/meta/get
2020-07-10 11:25:49,417 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:49.417577 2020] [wsgi:error] [pid 265:tid 140664934139648] [remote 172.20.0.6:42182] WARNING:django.request:Not Found: /auto_annotation/meta/get
2020-07-10 11:25:49,418 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:49.417923 2020] [wsgi:error] [pid 265:tid 140664942532352] [remote 172.20.0.6:42200] [2020-07-10 11:25:49,417] WARNING django.request: Not Found: /reid/enabled
2020-07-10 11:25:49,418 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:49.418479 2020] [wsgi:error] [pid 265:tid 140664917354240] [remote 172.20.0.6:42192] WARNING:django.request:Not Found: /tensorflow/annotation/meta/get
2020-07-10 11:25:49,418 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:49.418722 2020] [wsgi:error] [pid 265:tid 140664942532352] [remote 172.20.0.6:42200] WARNING:django.request:Not Found: /reid/enabled
2020-07-10 11:25:56,042 DEBG 'rqworker_default_0' stderr output:
INFO:rq.worker:default: cvat.apps.dataset_manager.views.export_task_annotations(2, 'CVAT for video 1.1', 'http://localhost:8080') (/api/v1/tasks/2/annotations/CVAT for video 1.1)
2020-07-10 11:25:56,861 DEBG 'rqworker_default_0' stderr output:
[2020-07-10 11:25:56,859] ERROR cvat.server.task_2: [cvat.apps.dataset_manager.views @ export_task]: exception occurred
Traceback (most recent call last):
File "/home/django/cvat/apps/dataset_manager/views.py", line 62, in export_task
server_url=server_url, save_images=save_images)
File "/home/django/cvat/apps/dataset_manager/task.py", line 723, in export_task
save_images=save_images)
File "/home/django/cvat/apps/dataset_manager/task.py", line 619, in export
exporter(dst_file, task_data, **options)
File "/home/django/cvat/apps/dataset_manager/formats/registry.py", line 36, in call
f_or_cls(*args, **kwargs)
File "/home/django/cvat/apps/dataset_manager/formats/cvat.py", line 539, in _export_video
anno_callback=dump_as_cvat_interpolation, save_images=save_images)
File "/home/django/cvat/apps/dataset_manager/formats/cvat.py", line 517, in _export
anno_callback(f, task_data)
File "/home/django/cvat/apps/dataset_manager/formats/cvat.py", line 378, in dump_as_cvat_interpolation
for track in annotations.tracks:
File "/home/django/cvat/apps/dataset_manager/bindings.py", line 288, in tracks
track, 0, self._db_task.data.size)
File "/home/django/cvat/apps/dataset_manager/annotation.py", line 739, in get_interpolated_shapes
shapes.extend(interpolate(prev_shape, shape))
File "/home/django/cvat/apps/dataset_manager/annotation.py", line 719, in interpolate
shapes = polyshape_interpolation(shape0, shape1)
File "/home/django/cvat/apps/dataset_manager/annotation.py", line 692, in polyshape_interpolation
shapes.append(copy_shape(shape0, frame, points))
File "/home/django/cvat/apps/dataset_manager/annotation.py", line 449, in copy_shape
if points:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
2020-07-10 11:25:56,861 DEBG 'rqworker_default_0' stderr output:
ERROR:cvat.server.task_2:[cvat.apps.dataset_manager.views @ export_task]: exception occurred
Traceback (most recent call last):
File "/home/django/cvat/apps/dataset_manager/views.py", line 62, in export_task
server_url=server_url, save_images=save_images)
File "/home/django/cvat/apps/dataset_manager/task.py", line 723, in export_task
save_images=save_images)
File "/home/django/cvat/apps/dataset_manager/task.py", line 619, in export
exporter(dst_file, task_data, **options)
File "/home/django/cvat/apps/dataset_manager/formats/registry.py", line 36, in call
f_or_cls(*args, **kwargs)
File "/home/django/cvat/apps/dataset_manager/formats/cvat.py", line 539, in _export_video
anno_callback=dump_as_cvat_interpolation, save_images=save_images)
File "/home/django/cvat/apps/dataset_manager/formats/cvat.py", line 517, in _export
anno_callback(f, task_data)
File "/home/django/cvat/apps/dataset_manager/formats/cvat.py", line 378, in dump_as_cvat_interpolation
for track in annotations.tracks:
File "/home/django/cvat/apps/dataset_manager/bindings.py", line 288, in tracks
track, 0, self._db_task.data.size)
File "/home/django/cvat/apps/dataset_manager/annotation.py", line 739, in get_interpolated_shapes
shapes.extend(interpolate(prev_shape, shape))
File "/home/django/cvat/apps/dataset_manager/annotation.py", line 719, in interpolate
shapes = polyshape_interpolation(shape0, shape1)
File "/home/django/cvat/apps/dataset_manager/annotation.py", line 692, in polyshape_interpolation
shapes.append(copy_shape(shape0, frame, points))
File "/home/django/cvat/apps/dataset_manager/annotation.py", line 449, in copy_shape
if points:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
2020-07-10 11:25:56,863 DEBG 'rqworker_default_0' stderr output:
ERROR:rq.worker:ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/rq/worker.py", line 812, in perform_job
rv = job.perform()
File "/usr/local/lib/python3.5/dist-packages/rq/job.py", line 588, in perform
self._result = self._execute()
File "/usr/local/lib/python3.5/dist-packages/rq/job.py", line 594, in _execute
return self.func(*self.args, **self.kwargs)
File "/home/django/cvat/apps/dataset_manager/views.py", line 87, in export_task_annotations
return export_task(task_id, dst_format, server_url=server_url, save_images=False)
File "/home/django/cvat/apps/dataset_manager/views.py", line 62, in export_task
server_url=server_url, save_images=save_images)
File "/home/django/cvat/apps/dataset_manager/task.py", line 723, in export_task
save_images=save_images)
File "/home/django/cvat/apps/dataset_manager/task.py", line 619, in export
exporter(dst_file, task_data, **options)
File "/home/django/cvat/apps/dataset_manager/formats/registry.py", line 36, in call
f_or_cls(*args, **kwargs)
File "/home/django/cvat/apps/dataset_manager/formats/cvat.py", line 539, in _export_video
anno_callback=dump_as_cvat_interpolation, save_images=save_images)
File "/home/django/cvat/apps/dataset_manager/formats/cvat.py", line 517, in _export
anno_callback(f, task_data)
File "/home/django/cvat/apps/dataset_manager/formats/cvat.py", line 378, in dump_as_cvat_interpolation
for track in annotations.tracks:
File "/home/django/cvat/apps/dataset_manager/bindings.py", line 288, in tracks
track, 0, self._db_task.data.size)
File "/home/django/cvat/apps/dataset_manager/annotation.py", line 739, in get_interpolated_shapes
shapes.extend(interpolate(prev_shape, shape))
File "/home/django/cvat/apps/dataset_manager/annotation.py", line 719, in interpolate
shapes = polyshape_interpolation(shape0, shape1)
File "/home/django/cvat/apps/dataset_manager/annotation.py", line 692, in polyshape_interpolation
shapes.append(copy_shape(shape0, frame, points))
File "/home/django/cvat/apps/dataset_manager/annotation.py", line 449, in copy_shape
if points:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/rq/worker.py", line 812, in perform_job
rv = job.perform()
File "/usr/local/lib/python3.5/dist-packages/rq/job.py", line 588, in perform
self._result = self._execute()
File "/usr/local/lib/python3.5/dist-packages/rq/job.py", line 594, in _execute
return self.func(*self.args, **self.kwargs)
File "/home/django/cvat/apps/dataset_manager/views.py", line 87, in export_task_annotations
return export_task(task_id, dst_format, server_url=server_url, save_images=False)
File "/home/django/cvat/apps/dataset_manager/views.py", line 62, in export_task
server_url=server_url, save_images=save_images)
File "/home/django/cvat/apps/dataset_manager/task.py", line 723, in export_task
save_images=save_images)
File "/home/django/cvat/apps/dataset_manager/task.py", line 619, in export
exporter(dst_file, task_data, **options)
File "/home/django/cvat/apps/dataset_manager/formats/registry.py", line 36, in call
f_or_cls(*args, **kwargs)
File "/home/django/cvat/apps/dataset_manager/formats/cvat.py", line 539, in _export_video
anno_callback=dump_as_cvat_interpolation, save_images=save_images)
File "/home/django/cvat/apps/dataset_manager/formats/cvat.py", line 517, in _export
anno_callback(f, task_data)
File "/home/django/cvat/apps/dataset_manager/formats/cvat.py", line 378, in dump_as_cvat_interpolation
for track in annotations.tracks:
File "/home/django/cvat/apps/dataset_manager/bindings.py", line 288, in tracks
track, 0, self._db_task.data.size)
File "/home/django/cvat/apps/dataset_manager/annotation.py", line 739, in get_interpolated_shapes
shapes.extend(interpolate(prev_shape, shape))
File "/home/django/cvat/apps/dataset_manager/annotation.py", line 719, in interpolate
shapes = polyshape_interpolation(shape0, shape1)
File "/home/django/cvat/apps/dataset_manager/annotation.py", line 692, in polyshape_interpolation
shapes.append(copy_shape(shape0, frame, points))
File "/home/django/cvat/apps/dataset_manager/annotation.py", line 449, in copy_shape
if points:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
2020-07-10 11:25:59,057 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:59.057730 2020] [wsgi:error] [pid 265:tid 140664942532352] [remote 172.20.0.6:42224] [2020-07-10 11:25:59,057] ERROR django.request: Internal Server Error: /api/v1/tasks/2/annotations
2020-07-10 11:25:59,058 DEBG 'runserver' stderr output:
[Fri Jul 10 11:25:59.057863 2020] [wsgi:error] [pid 265:tid 140664942532352] [remote 172.20.0.6:42224] ERROR:django.request:Internal Server Error: /api/v1/tasks/2/annotations
@miso-ramen, please make sure the files were updated in the Docker image. |
I apologize I missed that step! Works like a charm now. Thanks, so much! (^-^)/ |
Motivation and context
Fixes #1869
Adds simple interpolation tests.
How has this been tested?
Unit tests
Checklist
develop
branchcvat-core, cvat-data and cvat-ui)
License
Feel free to contact the maintainers if that's a concern.