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.

Retraining model on new dataset

See original GitHub issue

i was successful in testing the trained model by getting the trained weights you uploaded in Dropbox. However, I want to retrain the model on new training data.

I added one new image for the existing training data of five images following the instructions in the repo and added new images in the image, gt_image_instance, and gt_image_binary folders, but i get errors. I enter this line from your repo in bash:

python tools/train_lanenet.py --net vgg --dataset_dir data/training_data_example/

The errors I get are:

cv2.error: OpenCV(3.4.2) /Users/travis/build/skvark/opencv-python/opencv/modules/imgproc/src/resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function ‘resize’

and sometimes i get this error:

ValueError: Variable lanenet_loss/inference/encode/conv1_1/conv/W already exists

I already modified the train.txt and val.txt and changed the file paths for the images found locally on my machine.

How to fix this?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:69 (31 by maintainers)

github_iconTop GitHub Comments

2reactions
MaybeShewill-CVcommented, Nov 2, 2018

@chaine09 Since the training process works I will close this issue:)

2reactions
MaybeShewill-CVcommented, Oct 25, 2018

@chaine09 That may be caused by the improper dataset preparation. Could you please show me how you prepare your dataset including your dataset folder structure and your train.txt file

Read more comments on GitHub >

github_iconTop Results From Across the Web

Retraining Models on New Data - Amazon Machine Learning
If monitoring data to detect a change in the data distribution has a high overhead, then a simpler strategy is to train the...
Read more >
Retraining Model During Deployment: Continuous Training ...
A machine learning algorithm is applied to a dataset to produce a model without considering any previously learned knowledge and as new data...
Read more >
Retraining an existing machine learning model with new data
However, you must retrain the model through the method partial_fit , otherwise it will train the whole model again. From the documentation.
Read more >
How to Update Neural Network Models With More Data
We can update the model on the new data only. One extreme version of this approach is to not use any new data...
Read more >
The Ultimate Guide to Model Retraining - KDnuggets
Rather retraining simply refers to re-running the process that generated the previously selected model on a new training set of data.
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