Comments (7)
@DeepakShanthaiah I already had this problem, but I thought that was fixed. This is probably happening because the proportion of the image is not the same as the XML in the generation process. To confirm this hypothesis, check your output JPG file, the generated bounding boxes are in the correct positions?
Your problem may be here:
auto_annotate/scripts/visualization_utils.py
Line 858 in d08e728
In this line of code, the bounding box position is set, but if for some reason your im_width/height is not correct, the proportion of the box will not be correct.
Please, let me know about your findings!
from auto_annotate.
Hello @AlvaroCavalcante ,The result folder where I get the output image in that the bounding boxes are exactly on the part. Also, the co-ordinates of the bounding boxes fits exactly when I drag that bounding box on the particular part in LabelImg tool and this is tedious task to drag and place that bounding boxes everytime for multiple class.If it gets auto annotated on the part itself if not 100% atleast 90% of that part it will help us .
I did went through that line and I am not able to figure out why is this issue.
If the bounding boxes in output jpg image is perfect then why is it generating XML file with distorted localization of annotation. I guess something is going wrong while writing XML file.
Any alternative suggestion you can help me with to tackle this ?
from auto_annotate.
@AlvaroCavalcante , I just tried checking the proportion of image:
In my input image : width =640 and height =480
In Xml file which is generated the width and height are same as above but the output image in result folder has width =636 and height = 482, so here is the issue I believe. What should I do to overcome this ?
from auto_annotate.
@DeepakShanthaiah don't worry, we'll solve your problem! Well, I've done the following test:
- I got an online image of a leaf disease (my object detection model is trained for it) and resized with the same resolution as your image (640 x 480):
- After that, I ran the script and got the following JPG output:
- I copied and pasted the generated XML file in the same folder as my original image (without detections).
- Then I opened the LabelImage software, and clicked on "Open Dir", selecting my directory with my image and XML.
- The result is the bounding box in the right position, as saw in the output JPG.
Important detail - please, note that your XML and JPG MUST have the same name, not only in the file but inside the tag in XML, here is my working example:
If you have trouble with the file name, let me know, I already implemented a solution to solve this, passing the same name to the image and XML file inside generate_xlm class.
from auto_annotate.
@DeepakShanthaiah I've added an update on branch master to get the XML name automatically based on the JPG filename.
from auto_annotate.
Hello @AlvaroCavalcante , Thanks for your response . The issue is resolved and it helped me reduce my time in annotating.
from auto_annotate.
@DeepakShanthaiah Good news! If you have any other problems, feel free to report. I'll close this issue now.
from auto_annotate.
Related Issues (20)
- readme.md
- bug
- documentation
- duplicate
- enhancement
- Error parsing message HOT 5
- KeyError: "The name 'image_tensor:0' refers to a Tensor which does not exist. The operation, 'image_tensor', does not exist in the graph." HOT 4
- How to get pretrained model and what is it trained on? HOT 2
- XML result path dynamically HOT 2
- A way to set the min confidence level of the auto labels? HOT 2
- Running detection_img_tf2.py [...] resulting in AttributeError: ... 'cv2' has no attribute HOT 3
- visualize_boxes_and_labels_on_image_array() got an unexpected keyword argument 'file_name' HOT 4
- tensorflow.python.framework.errors_impl.NotFoundError: /path-label-map.pbtxt; No such file or directory HOT 3
- How to set the dimensions for the bounding box? HOT 6
- Version issue within the setup.py HOT 19
- Create issue template HOT 4
- Question: I am trying to auto_annotate images using google collab but getting this error. HOT 2
- using yolov5 model HOT 2
- Could not find matching concrete function to call loaded from the SavedModel HOT 2
- Annotations are not generated HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto_annotate.