Converting from csv to record error in tensorflow durng transfer learing object detectiontensorflow object detection labels for custom dataTensorflow Object Detection API multi-class errorTensorflow object detection on MobileNet, training results oscillatetensorflow detection API SsdFeatureExtractor' object has no attribute 'override_base_feature_extractor_hyperparams'Tensorflow tf.data to operate on image based on contents of another fileExtracting parts of array elements using pythonNormalized label box for object detection API tensorflowtensorflow object detection API: generate TF record of custom data setWhy is labeling training data this way leading to bad object detection when re-training pre-trained models using the tensorflow object detection api?Tensorflow object detection train_config file error
Adding things to bunches of things vs multiplication
Why does Japan use the same type of AC power outlet as the US?
Build a mob of suspiciously happy lenny faces ( ͡° ͜ʖ ͡°)
What does 〇〇〇〇 mean when combined with おじさん?
Is a USB 3.0 device possible with a four contact USB 2.0 connector?
What is the purpose/function of this power inductor in parallel?
When does The Truman Show take place?
Eric Andre had a dream
Java methods to add and authenticate users in MySQL
Unconventional examples of mathematical modelling
What is the opposite of "hunger level"?
How to train a replacement without them knowing?
How can I enter recovery mode (for Mac OS, on an iMac) remotely?
What would cause a nuclear power plant to break down after 2000 years, but not sooner?
Attacking the Hydra
Is this bar slide trick shown on Cheers real or a visual effect?
Would getting a natural 20 with a penalty still count as a critical hit?
Has the speed of light ever been measured in vacuum?
I was dismissed as a candidate for an abroad company after disclosing my disability
What exactly happened to the 18 crew members who were reported as "missing" in "Q Who"?
Why do so many people play out of turn on the last lead?
Is the Microsoft recommendation to use C# properties applicable to game development?
Will some rockets really collapse under their own weight?
What allows us to use imaginary numbers?
Converting from csv to record error in tensorflow durng transfer learing object detection
tensorflow object detection labels for custom dataTensorflow Object Detection API multi-class errorTensorflow object detection on MobileNet, training results oscillatetensorflow detection API SsdFeatureExtractor' object has no attribute 'override_base_feature_extractor_hyperparams'Tensorflow tf.data to operate on image based on contents of another fileExtracting parts of array elements using pythonNormalized label box for object detection API tensorflowtensorflow object detection API: generate TF record of custom data setWhy is labeling training data this way leading to bad object detection when re-training pre-trained models using the tensorflow object detection api?Tensorflow object detection train_config file error
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Currently I am following this tutorial on Windows 10
and I have the requirements. But when I come to the step
Converting from *.csv to *.record I am getting error
This is the error I am getting
I tried the solutions on github by changing classes_text.append(row['class'].encode('utf8'))
to classes_text.append(repr(row['class']))
in the line 80 however it did not work
Csv Sample file
filename,width,height,class,xmin,ymin,xmax,ymax
6eadc7dfeb4fa757492ae20ff67edd50.jpg,dog,416,416,167,196,283,413
9d57e44f2028317e57cc4a3c2c836dd4.jpg,dog,416,416,56,37,101,111
python generate_tfrecord.py --label=dog--csv_input=C:tensorflow_gpuTensorFlowmodelsspacetraining_demoannotationstrain_labels.csv --img_path=C:tensorflow_gpuTensorFlowmodelsspacetraining_demoimagestrain --output_path=C:tensorflow_gpuTensorFlowmodelsspacetraining_demoannotationstrain.record
_sys.exit(main(argv))
File "generate_tfrecord_org.py", line 106, in main
tf_example = create_tf_example(group, path)
File "generate_tfrecord_org.py", line 80, in create_tf_example
classes_text.append(row['class'].encode('utf8'))
AttributeError: 'int' object has no attribute 'encode'
I want the code return me *.record file but it gives the error and creates empty *.record file
python tensorflow protocol-buffers
add a comment |
Currently I am following this tutorial on Windows 10
and I have the requirements. But when I come to the step
Converting from *.csv to *.record I am getting error
This is the error I am getting
I tried the solutions on github by changing classes_text.append(row['class'].encode('utf8'))
to classes_text.append(repr(row['class']))
in the line 80 however it did not work
Csv Sample file
filename,width,height,class,xmin,ymin,xmax,ymax
6eadc7dfeb4fa757492ae20ff67edd50.jpg,dog,416,416,167,196,283,413
9d57e44f2028317e57cc4a3c2c836dd4.jpg,dog,416,416,56,37,101,111
python generate_tfrecord.py --label=dog--csv_input=C:tensorflow_gpuTensorFlowmodelsspacetraining_demoannotationstrain_labels.csv --img_path=C:tensorflow_gpuTensorFlowmodelsspacetraining_demoimagestrain --output_path=C:tensorflow_gpuTensorFlowmodelsspacetraining_demoannotationstrain.record
_sys.exit(main(argv))
File "generate_tfrecord_org.py", line 106, in main
tf_example = create_tf_example(group, path)
File "generate_tfrecord_org.py", line 80, in create_tf_example
classes_text.append(row['class'].encode('utf8'))
AttributeError: 'int' object has no attribute 'encode'
I want the code return me *.record file but it gives the error and creates empty *.record file
python tensorflow protocol-buffers
add a comment |
Currently I am following this tutorial on Windows 10
and I have the requirements. But when I come to the step
Converting from *.csv to *.record I am getting error
This is the error I am getting
I tried the solutions on github by changing classes_text.append(row['class'].encode('utf8'))
to classes_text.append(repr(row['class']))
in the line 80 however it did not work
Csv Sample file
filename,width,height,class,xmin,ymin,xmax,ymax
6eadc7dfeb4fa757492ae20ff67edd50.jpg,dog,416,416,167,196,283,413
9d57e44f2028317e57cc4a3c2c836dd4.jpg,dog,416,416,56,37,101,111
python generate_tfrecord.py --label=dog--csv_input=C:tensorflow_gpuTensorFlowmodelsspacetraining_demoannotationstrain_labels.csv --img_path=C:tensorflow_gpuTensorFlowmodelsspacetraining_demoimagestrain --output_path=C:tensorflow_gpuTensorFlowmodelsspacetraining_demoannotationstrain.record
_sys.exit(main(argv))
File "generate_tfrecord_org.py", line 106, in main
tf_example = create_tf_example(group, path)
File "generate_tfrecord_org.py", line 80, in create_tf_example
classes_text.append(row['class'].encode('utf8'))
AttributeError: 'int' object has no attribute 'encode'
I want the code return me *.record file but it gives the error and creates empty *.record file
python tensorflow protocol-buffers
Currently I am following this tutorial on Windows 10
and I have the requirements. But when I come to the step
Converting from *.csv to *.record I am getting error
This is the error I am getting
I tried the solutions on github by changing classes_text.append(row['class'].encode('utf8'))
to classes_text.append(repr(row['class']))
in the line 80 however it did not work
Csv Sample file
filename,width,height,class,xmin,ymin,xmax,ymax
6eadc7dfeb4fa757492ae20ff67edd50.jpg,dog,416,416,167,196,283,413
9d57e44f2028317e57cc4a3c2c836dd4.jpg,dog,416,416,56,37,101,111
python generate_tfrecord.py --label=dog--csv_input=C:tensorflow_gpuTensorFlowmodelsspacetraining_demoannotationstrain_labels.csv --img_path=C:tensorflow_gpuTensorFlowmodelsspacetraining_demoimagestrain --output_path=C:tensorflow_gpuTensorFlowmodelsspacetraining_demoannotationstrain.record
_sys.exit(main(argv))
File "generate_tfrecord_org.py", line 106, in main
tf_example = create_tf_example(group, path)
File "generate_tfrecord_org.py", line 80, in create_tf_example
classes_text.append(row['class'].encode('utf8'))
AttributeError: 'int' object has no attribute 'encode'
I want the code return me *.record file but it gives the error and creates empty *.record file
python tensorflow protocol-buffers
python tensorflow protocol-buffers
edited Mar 27 at 14:00
Dere_negn
1572 silver badges9 bronze badges
1572 silver badges9 bronze badges
asked Mar 27 at 12:27
Johnyy66554Johnyy66554
346 bronze badges
346 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55377207%2fconverting-from-csv-to-record-error-in-tensorflow-durng-transfer-learing-object%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55377207%2fconverting-from-csv-to-record-error-in-tensorflow-durng-transfer-learing-object%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown