question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unexpected behaviour with task `meta`

See original GitHub issue

My actions before raising this issue

  • Read/searched the docs
  • Searched past issues

Steps to Reproduce (for bugs)

  1. Make manifest.jsonl with own order (not abc) on aws (2D images)
  2. Add manifest.jsonl to cloud storage
  3. Create tasks with same manifest.jsonl
  4. In task creation form files in expected order (as in manifest.jsonl)
  5. After creation file names show in abc order in “player”
  6. But files shown as it is in manifest.jsonl file

Export to COCO mess too – file names and order.

This endpoint shown files in expected order: cloudstorages/{store_id}/content?manifest_path=manifest.jsonl

But tasks/{new-task-id}/data/meta return abc order. (looks like abc)

I checked folder /home/django/data/storages/{store_id}/{name}/manifest.jsonl it has expected order

Possible Solution

Let users make own order in manifest.jsonl and use it as it is

And restore it from manifest or form request.data['server_files']

Steps:

  1. Remove all unexpected sorted from code

Found related:

  1. Fix order after serializer creation

and I don’t know why data['server_files'] income reversed?!!

now I know why it may come in any order, because find the root of this evil

https://github.com/openvinotoolkit/cvat/blob/develop/cvat/apps/engine/views.py#L630

Because looks like serializer does not guaranties income order, is not it?

But it fixable there – just rebuild it if from request.data['server_files'].

Your Environment

Author: Maria Khrustaleva <maya17grd@gmail.com>
Date:   Wed Dec 1 16:57:31 2021 +0300

    Remove key_file_path field (#3959)

    * Remove key_file_path field
    * fix
    * Update comparison

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Siguracommented, Apr 5, 2022

@gHerzmann I removed all sorting from source code and fixed it in request.data['server_files'] and rebuild images

Because do not understand why anybody need to setup it in another place than manifest

1reaction
gHerzmanncommented, Apr 5, 2022

@Sigura, Hi, you can specify Sorting method in the advanced section of the task creation form. In your case, you can choose Predefined sorting. See here for details.

When I try to use the predefined sorting method, I receive the following error: Could not create the task on the server. Exception: It isn't supported to upload manifest file and use random sorting.

See: https://github.com/openvinotoolkit/cvat/blob/6fad1764efd922d99dbcda28c4ee72d071aa5a07/cvat/apps/engine/task.py#L374

It would be great if we could select a sorting method that would use the same order defined in the manifest file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Unexpected behaviour after returning from await
If await Task.Delay() is called on the main UI thread, the code after await would asynchronously continue on the main UI thread, upon...
Read more >
include_role and meta dependencies: strange behaviour on ...
The bug only occurs when using include_role in a role. This example works fine: roles/master/tasks/main.yml. --- - debug: msg=" ...
Read more >
Unusual behaviour accessing post values in rake task - general ...
Rails but I'm seeing an unusual error message while running a rake task. ... Failing to do something with it isn't totally unexpected...
Read more >
Enhanced metacognition for unexpected action outcomes
Metacognition allows us to explicitly represent the uncertainty in our perceptions and decisions. Recent theories suggest that we use ...
Read more >
Meta-control of the exploration-exploitation dilemma emerges ...
In practice and independent of the task, behaviour that leads to precise beliefs about possible action-outcome contingencies should be ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found