Giter Site home page Giter Site logo

Comments (2)

quangnmkma avatar quangnmkma commented on August 16, 2024

I have the same the question :((

from dataaugmentationforobjectdetection.

luigy-mach avatar luigy-mach commented on August 16, 2024

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)

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.