Code Monkey home page Code Monkey logo

Comments (5)

baobobby avatar baobobby commented on May 3, 2024

you will have to change the inputsize in the first line of cnn-tf.js. And then you have to make sure the image size in folder *\cnn-explainer-master\public\assets\img is the same as the value you type in cnn-tf.js. If the size of these images is different, you must transfer them to the size you want. After that you may run the programm as expected.

In cnn-tf.js the developer was going to give a way that can automatically adapt the input image size to the value which is customized by users, but the code is not yet completed, so we have to change the size of the images to the value we customize in cnn-tf.js manually.

from cnn-explainer.

miiiingi avatar miiiingi commented on May 3, 2024

When I edit the first line of cnn-tf.js, the web browser only show me the blank page..
I am not familiar with node js, so I do not know what can i do for correct view of the web browser..
plz tell me What can i do this error??

image

Best regards.

from cnn-explainer.

baobobby avatar baobobby commented on May 3, 2024

I guess you want to change the input size to a larger one, right? Well as I wrote above, except the code modification of the first line in cnn-tf.js, you will also have to resize the images in folder *\cnn-explainer-master\public\assets\img to the same value in the first line of cnn-tf.js.

The reason why only blank page displayed may be that you didnt transfer the images' size in the folder I mentioned and the program found that the input image size is not conformed with the value you set in cnn-tf.js, so it rejected the next move but gave a blank page.

Pls remember that the Programm is only to show your CNN but with the images in the folder I mentioned as its input. Which means, that you must keep the sizes of those images, the input size you set in cnn-tf.js and of course the input size you set in your CNN exactly the SAME.

A way to change the size of image is using PowerToys. It is a powerful image editor that is developed by Microsoft, you can easily resize the images you selected with this tool.

CNN-Explainer have the ablity to crop a bigger image to a smaller input size (the size that be set in the first line of cnn-tf.js). But when the size of input image is smaller than the input size in cnn-tf.js, the program will reject the next move. Because there are no codes for resizing the input image. So in this situation we must resize the images manually.
QQ截图20220902163521
The picture shows the folder in which the input images are located.

from cnn-explainer.

miiiingi avatar miiiingi commented on May 3, 2024

Okay. I will try to resize those images. Thank you!!

from cnn-explainer.

baobobby avatar baobobby commented on May 3, 2024

You are welcom. Have fun with modifying CNN Explainer.

from cnn-explainer.

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.