Code Monkey home page Code Monkey logo

yymnist's Issues

performance optimization

=== before ===

for i in range(w):
      for j in range(h):
            x = xmin + i
            y = ymin + j
            blank[y][x] = image[j][i]

=== after ===
blank[ymin:ymin+h,xmin:xmin+w] = image[0:h,0:w]

is there some mistake in def compute_iou?

return ((xmax-xmin) * (ymax - ymin)) / (A1 + A2)

in this line, i think it should return ((xmax-xmin) * (ymax - ymin)) / (A1 + A2 - (xmax-xmin) * (ymax - ymin)) according to iou's definition.

我在运行make_data.py中遇到的问题

选择相应路径,运行make_data.py后,正确读取了./mnist/train/中的数据,也创建了Images文件夹和labels.txt,但是Images文件夹中并没有.jpg的图片,labels.txt中却有了imags路径以及标签,寻求您解答为什么Images文件夹中写入图片。

some images might be missed

image is read randomly in each loop. this mean that some image from the dataset might be missed, but some might be read a few times.

idx = random.randint(0, total_image)
data[0] = make_image(data, image_paths[idx], ratio)

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.