Giter VIP home page Giter VIP logo

simple-tensor's People

Contributors

fatchur avatar gideonmanurung avatar maghfirarsyita avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

simple-tensor's Issues

Can't proccess input image in detector_inference_example.py

hi, i can't do proccess my input image.
the error message is :

Traceback (most recent call last):
File "detector_inference_example.py", line 41, in
saver_all.restore(session, 'model/yolov3') #path to your downloaded big model
File "C:\Users\shand\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\training\saver.py", line 1322, in restore
err, "a mismatch between the current graph and the graph")
tensorflow.python.framework.errors_impl.InvalidArgumentError: Restoring from checkpoint failed. This is most likely due to a mismatch between the current graph and the graph from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:

2 root error(s) found.
(0) Invalid argument: Assign requires shapes of both tensors to match. lhs shape= [21] rhs shape= [255]
[[node save_1/Assign_288 (defined at detector_inference_example.py:38) ]]
(1) Invalid argument: Assign requires shapes of both tensors to match. lhs shape= [21] rhs shape= [255]
[[node save_1/Assign_288 (defined at detector_inference_example.py:38) ]]
[[save_1/RestoreV2/_410]]
0 successful operations.
0 derived errors ignored.

Errors may have originated from an input operation.

this is the piece of code where i'm gonna load my model
saver_all.restore(session, 'model/yolov3') #path to your downloaded big model

this is the code where the input image gonna be process

img_ = cv2.imread('images/car.jpeg')
img_ = cv2.resize(img_, (416, 416))
img = img_.reshape((1, 416, 416, 3)).astype(np.float32)
img = img/255.
detection_result = session.run(c.boxes_dicts, feed_dict={c.input_placeholder: img})
bboxes = c.nms(detection_result, 0.2, 0.1) #set the threshold to 0.2, you can modify it

FYI, the location of my model and my input image is in the same folder
in my opinion there's something wrong with the code when the image will be resize and reshape
thank you 

Perbedaan folder train dan val

Mas Fatchur saya ingin bertanya. contoh gambar seperti apa yang dapat dibedakan dataset untuk folder train dan folder val? Apakah folder val itu dataset yang real dan kualitasnya baik.

Terima Kasih

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.