Git Product home page Git Product logo

tensorflow_with_colab_tutorial's Introduction

Hello World 👋

I'm Nisarg Kapkar, a Computer Engineering undergraduate student (2018-2022 batch) at Pandit Deendayal Energy University, Gandhinagar, India. I am a Full-Stack Developer and Product Management Enthusiast. I also do technical writing & blogging in my free time.

Areas of Expertise/Interest: Software Engineering, Data Structures & Algorithms, Product Management, UI-UX Designing.

Skills 💼

Programming Languages

Frontend Development

Backend Development

Tools & Technologies

Projects 👨‍💻

Latest Blogs 📝

GitHub Stats 📊

Some Quotes ✨

  • Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.
  • Don’t practice until you get it right. Practice until you can’t get it wrong.
  • Stand up and walk. Keep moving forward. You've got two good legs. So get up and use them. You're strong enough to make your own path.
  • It's not our abilities that show what we truly are. It is our choices.
  • Nee heb je, ja kun je krijgen. (Translation: You already have no for an answer, but you could get a yes)

tensorflow_with_colab_tutorial's People

Contributors

nkap23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tensorflow_with_colab_tutorial's Issues

Model is not able to label the object with no bounding box.

I have done all the steps successfully and able to export the trained model successfully with no build error.
But when i am trying to test the model with some images, model is not detecting anything.
detection_score is coming very less.
tensorflow_collab_sample_low_score
.
tensorflow_collab_sample_bb
tensorflow_collab_sample_classes
tensorflow_collab_sample_error

Step 9 : python3: can't open file 'setup.py'

When I try to run the cell dedicated to Step 9 :

!python setup.py build
!python setup.py install

I have theses issues

python3: can't open file 'setup.py': [Errno 2] No such file or directory
python3: can't open file 'setup.py': [Errno 2] No such file or directory

I have tried to look for setup.py but I don't know which one it is.

Thanks

Step 11 does not work for me

Hello,
I am following your tutorial and so far everything worked out fine for me, because it is perfectly described. But with Step 11 I get a lot of traceback warnings and the two .record-files are not generated. I checked if all the paths are right, and if the generate_tfrecord.py and the label_map.pbtxt are in place.
Can you somehow help me?

Here is a part of the feedback I get while running Step 11:
/content/gdrive/My Drive/TensorFlow/scripts/preprocessing
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/object_detection-0.1-py3.6.egg/object_detection/utils/label_map_util.py", line 159, in load_labelmap
text_format.Merge(label_map_string, label_map)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 734, in Merge
allow_unknown_field=allow_unknown_field)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 802, in MergeLines
return parser.MergeLines(lines, message)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 827, in MergeLines
self._ParseOrMerge(lines, message)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 849, in _ParseOrMerge
self._MergeField(tokenizer, message)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 974, in _MergeField
merger(tokenizer, message, field)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 1048, in _MergeMessageField
self._MergeField(tokenizer, sub_message)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 974, in _MergeField
merger(tokenizer, message, field)

Thanks in advance!

Stuck at step 10, No module named 'object_detection'

Traceback (most recent call last):
File "model_builder_tf2_test.py", line 25, in
from object_detection.builders import model_builder
ModuleNotFoundError: No module named 'object_detection'
Done

i have checked the xml files, label_map.pbtxt and generate_tfrecord.py all are present and i have also modified the pbxt file to one id only
as i am only using one dataset

cant move past Step 9

Hi,
I'm currently stuck at Step 9 which I should run
!python setup.py build
!python setup.py install

but i get this in return
python3: can't open file 'setup.py': [Errno 2] No such file or directory
python3: can't open file 'setup.py': [Errno 2] No such file or directory

How or what should i do?

Hi i am using Google Colab and i stuck at n10, the error is below

/content/gdrive/MyDrive/Colab Notebooks/VGG-ImageDetection/TensorFlow/models/research/object_detection/builders
Traceback (most recent call last):
File "model_builder_tf2_test.py", line 24, in
from object_detection.builders import model_builder
File "/usr/local/lib/python3.7/dist-packages/object_detection-0.1-py3.7.egg/object_detection/builders/model_builder.py", line 55, in
from object_detection.models import center_net_resnet_v1_fpn_feature_extractor
File "/usr/local/lib/python3.7/dist-packages/object_detection-0.1-py3.7.egg/object_detection/models/center_net_resnet_v1_fpn_feature_extractor.py", line 24, in
from object_detection.models.keras_models import resnet_v1
File "/usr/local/lib/python3.7/dist-packages/object_detection-0.1-py3.7.egg/object_detection/models/keras_models/resnet_v1.py", line 24, in
from tensorflow.python.keras.applications import resnet
ModuleNotFoundError: No module named 'tensorflow.python.keras.applications'

TypeError

Hello, thanks for putting this together! I've been really struggling to find a reliable way to train a custom model and this looks like it's almost perfect for what I need.

I followed your instructions exactly and everything goes fine just until step 11. I get the following error. I did double check the folder locations are as required. Also, I made sure that the label map capitalization is the same as the XML files.

/content/gdrive/My Drive/TensorFlow/scripts/preprocessing
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/object_detection-0.1-py3.6.egg/object_detection/utils/label_map_util.py", line 171, in load_labelmap
text_format.Merge(label_map_string, label_map)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 734, in Merge
allow_unknown_field=allow_unknown_field)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 802, in MergeLines
return parser.MergeLines(lines, message)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 827, in MergeLines
self._ParseOrMerge(lines, message)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 849, in _ParseOrMerge
self._MergeField(tokenizer, message)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 974, in _MergeField
merger(tokenizer, message, field)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 1048, in _MergeMessageField
self._MergeField(tokenizer, sub_message)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 974, in _MergeField
merger(tokenizer, message, field)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 1099, in _MergeScalarField
value = tokenizer.ConsumeString()
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 1470, in ConsumeString
the_bytes = self.ConsumeByteString()
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 1485, in ConsumeByteString
the_list = [self._ConsumeSingleByteString()]
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 1504, in _ConsumeSingleByteString
raise self.ParseError('Expected string but found: %r' % (text,))
google.protobuf.text_format.ParseError: 3:13 : ' name: ‘Bird’': Expected string but found: '‘'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "generate_tfrecord.py", line 59, in
label_map = label_map_util.load_labelmap(args.labels_path)
File "/usr/local/lib/python3.6/dist-packages/object_detection-0.1-py3.6.egg/object_detection/utils/label_map_util.py", line 173, in load_labelmap
label_map.ParseFromString(label_map_string)
TypeError: a bytes-like object is required, not 'str'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/object_detection-0.1-py3.6.egg/object_detection/utils/label_map_util.py", line 171, in load_labelmap
text_format.Merge(label_map_string, label_map)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 734, in Merge
allow_unknown_field=allow_unknown_field)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 802, in MergeLines
return parser.MergeLines(lines, message)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 827, in MergeLines
self._ParseOrMerge(lines, message)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 849, in _ParseOrMerge
self._MergeField(tokenizer, message)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 974, in _MergeField
merger(tokenizer, message, field)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 1048, in _MergeMessageField
self._MergeField(tokenizer, sub_message)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 974, in _MergeField
merger(tokenizer, message, field)
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 1099, in _MergeScalarField
value = tokenizer.ConsumeString()
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 1470, in ConsumeString
the_bytes = self.ConsumeByteString()
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 1485, in ConsumeByteString
the_list = [self._ConsumeSingleByteString()]
File "/usr/local/lib/python3.6/dist-packages/google/protobuf/text_format.py", line 1504, in _ConsumeSingleByteString
raise self.ParseError('Expected string but found: %r' % (text,))
google.protobuf.text_format.ParseError: 3:13 : ' name: ‘Bird’': Expected string but found: '‘'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "generate_tfrecord.py", line 59, in
label_map = label_map_util.load_labelmap(args.labels_path)
File "/usr/local/lib/python3.6/dist-packages/object_detection-0.1-py3.6.egg/object_detection/utils/label_map_util.py", line 173, in load_labelmap
label_map.ParseFromString(label_map_string)
TypeError: a bytes-like object is required, not 'str'

error: avro-python3 1.10.0 is installed but avro-python3!=1.9.2,<1.10.0,>=1.8.1 is required by {'apache-beam'}

Hi my name is Arif,

Currently I am trying to follow your project and train it with my own dataset..

at step 9, when I'm trying to install the setup.py there is an error like this when it trying to install avro-python3

error: avro-python3 1.10.0 is installed but avro-python3!=1.9.2,<1.10.0,>=1.8.1 is required by {'apache-beam'}

do you know how to handle this error?

Thank you, I am waiting for your response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.