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.

Issues with training.

See original GitHub issue

Hey man, This is the error I am getting right now. Traceback (most recent call last): File "gen_anchors.py", line 132, in <module> _main_(args) File "gen_anchors.py", line 111, in _main_ centroids = run_kmeans(annotation_dims, num_anchors) File "gen_anchors.py", line 57, in run_kmeans indices = [random.randrange(ann_dims.shape[0]) for i in range(anchor_num)] File "gen_anchors.py", line 57, in <listcomp> indices = [random.randrange(ann_dims.shape[0]) for i in range(anchor_num)] File "/home/abraham/anaconda3/envs/yolo/lib/python3.5/random.py", line 195, in randrange raise ValueError("empty range for randrange()") ValueError: empty range for randrange() Its due to the pkl file for the dataset. How to create pkl for the same? What is the content for the pkl file?

*Btw its a nice repo 😉, you made yolo v3 in such a short notice

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

4reactions
stihl1210commented, Jun 12, 2018

@FlyEgle @abramjos

Ok the problem is with “cache” value and config.

Please add “/” at the end of path to the directories and remove empty cache file for dataset. Try then again.

empty randrange() is caused due to no files added to list. If exception occurs temporary file should be removed, but it is not. Then script tries to reuse pickle file to load data.

1reaction
liunian199commented, Nov 21, 2019

@stihl1210 Can you describe it more in details? ‘Please add “/” at the end of path to the directories and remove empty cache file for dataset’ directories refer to which?and dataset refer to which?I have removed all pyaches but unfortunately it doesn’t work

Read more comments on GitHub >

github_iconTop Results From Across the Web

7 Critical Employee Training Issues - Solved with Apty
Information Overload · Workforce Resistance · Ineffective Training Methods · Mundane vs Periodical tasks · Lack of Employee Engagement · Employee ...
Read more >
10 Challenges of Training & Development of Professionals
1. Dealing with Change · 2. Developing Leaders · 3. Engaging Learners · 4. Delivering Consistent Training · 5. Tracking Skills Application ·...
Read more >
6 Problems with Training and How to Solve Them - ZandaX
1. Every Company Uses the Same Trainers · 2. Training Targets Low Performers, Not High Performers · 3. The Training Just Isn't Engaging...
Read more >
Training Challenges in the Workplace - Dashe & Thomson
10 Common Training Challenges · Ineffective Training Modules: · Lack of Employee Engagement: · Maintaining a Hybrid Work Environment: · Dealing With ...
Read more >
Training and development challenges and solutions in the ...
6 ways to solve training and development challenges in the workplace · 1. Hectic employee schedules · 2. A dispersed workforce · 3....
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