Comments (2)
I have the same the question :((
from dataaugmentationforobjectdetection.
In file quick-start.ipynb comment the next lines as follows:
# bboxes = pkl.load(open("messi_ann.pkl", "rb"))
# #inspect the bounding boxes
# print(bboxes)
And, add the next lines:
in_coor = ['class','x1','y1','x2','y2'] # how in your file was sorted.
out_coor = ['x1','y1','x2','y2','class'] # how it was requested by algorithm.
filetxt = 'yourfile.txt' # path of your file txt
with open(filetxt) as f:
contents = f.readlines()
data = list()
for i in contents:
data.append([float(j) for j in i.split(',')])
data_arr = np.asarray(data)
in_order = {j:i for i,j in enumerate(in_coor)}
sort_in = [in_order[k] for k in in_coor]
sort_out = [in_order[k] for k in out_coor]
bboxes = data_arr[:,sort_out]
#inspect the bounding boxes
print(bboxes)
from dataaugmentationforobjectdetection.
Related Issues (20)
- Crop Video frames HOT 1
- How To Contribute HOT 1
- Please provide licence details
- I encountered a problem about rgb HOT 1
- About black region left in rotation/translation
- Some transforms could cut boxes or even delete them
- Typo Error: 'Tranformed`, should be Transformed
- Difference between resizing and scaling? HOT 2
- will i get bounding box for each augmentation ?
- IndexError: index 0 is out of bounds for axis 0 with size 0 HOT 2
- Random copy-paste
- Rotation scaling difference HOT 1
- Rotation and Shearing giving faulty results HOT 4
- RandomHSV function
- Will there be a new version for polygon bounding boxes ?
- Numpy divide error in RandomRotate and RandomShear HOT 1
- Error while using sequence HOT 1
- Hope to add Crop or RandomCrop operation
- Bug in clip_box function HOT 1
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 dataaugmentationforobjectdetection.