Problem .json

Open
#47 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python, tensorflow

Research direction

Start in tensorflow/PilotNet/utils/processing.py at parse_json, especially line 19, and reproduce the failure with the JSON shown in the issue. Done means the supplied annotation format is parsed without the ValueError so training can proceed; check whether the repository provides a training or parsing test to run afterward.

Written by the indexing model from the issue text.

Description

There are problems training with the .json. I get the error:
File "/home/vanejessi/DeepLearningStudio/Formula1-FollowLine/tensorflow/PilotNet/utils/processing.py", line 19, in parse_json
array_annotations_v.append(float(v))
ValueError: could not convert string to float: '"7.0",\n "w": "0.044"\n '

The .json file is:
[
{
"image_name": "0.png",
"v": "7.0",
"w": "0.044"
},
{
"image_name": "1.png",
"v": "7.0",
"w": "0.022"
},
{
"image_name": "2.png",
"v": "7.0",
"w": "0.022"
},
{
"image_name": "3.png",
"v": "7.0",
"w": "0.022"
},
...
]

Dominant language
Jupyter Notebook
Stars
11
Forks
7
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JdeRobot/DeepLearningStudio

All issues in JdeRobot/DeepLearningStudio

Similar issues

More Data Engineering issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.