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.

Please update AVA class names json file link

See original GitHub issue

Hi, the AVA class names json file link (shown as below ) doesn’t not exist, could you please update it ? image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
wwdokcommented, Nov 16, 2020

@AlexanderMelde yeah, i finnaly did it like you said, the snippet code is :

import re
# reading the data from the file
with open('ava_action_list_v2.2.txt') as f:
    data = f.read()
    # print(data)
    result = re.findall(r'["](.*?)["]', data)  # find all contents inside double quote
    with open("result.json", "a") as file:  # a mean append
        for i in range(80):
            num = i+1
            file.write("\"\\\"" + result[i] + "\\\"\": " + str(num) + ", ")

but it still need some postprocess, like remove last coma and add curly brace

0reactions
AlexanderMeldecommented, Nov 16, 2020

You can find mappings on the AVA download page, e.g. ava_action_list_v2.2.pbtxt.

Note you might need to reformat it to look like this: {"ClassA": 0, "ClassB": 1, "ClassC": 2}.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Preparation of AVA-Dataset Format for Training on Custom ...
Now I want to convert my custom dataset into "AVA-Dataset Format" and ... The classids.json file contains a mapping of class names and...
Read more >
How to change a field name in JSON using Jackson
Have you tried using @JsonProperty? @Entity public class City { @id Long id; String name; @JsonProperty("label") public String getName() ...
Read more >
JSON Patch | jsonpatch.com
A JSON Patch document is just a JSON file containing an array of patch operations. The patch operations supported by JSON Patch are...
Read more >
AVA: A Video Dataset of Atomic Visual Action
AVA is a project that provides audiovisual annotations of video for improving our understanding of human activity. Each of the video clips has...
Read more >
Jackson JSON Java Parser API Example Tutorial - DigitalOcean
We have following java classes corresponding to the json data. ... can write to any output stream such as file StringWriter stringEmp =...
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