Giter VIP home page Giter VIP logo

Comments (10)

totoroTree avatar totoroTree commented on July 3, 2024

Has started training successfully, following the steps:

  1. download pretrained weight from the README.md
  2. use the path to the pretrained weight as the CHECK_POINT in train_mobilenetdet_on_kitti.sh
  3. modify the file "checkpoint" inside the pretrained weight folder: update the path to local pretrained weight file. For example:
    model_checkpoint_path: "MobileNet/data/mobilenetdet-model/model.ckpt-906808"
    all_model_checkpoint_paths: "MobileNet/data/mobilenetdet-model/model.ckpt-906808"

from mobilenet.

suhyung avatar suhyung commented on July 3, 2024

Thank you. This was very valuable advice to me!

from mobilenet.

lijunhong5457 avatar lijunhong5457 commented on July 3, 2024

i download pretrained weight from the README.md, but got loss nan. what is the problem do you know?

from mobilenet.

lijunhong5457 avatar lijunhong5457 commented on July 3, 2024

python2 will be fine

from mobilenet.

Santara avatar Santara commented on July 3, 2024

python2 will be fine

@lijunhong5457 do you mean, after using python2 instead of python3, the nan loss error vanished?

from mobilenet.

lijunhon avatar lijunhon commented on July 3, 2024

yes, when change python3 to python2 , there is no problem to train it.
i modify the checkpoint like below:
model_checkpoint_path: model.ckpt-906808"
all_model_checkpoint_paths: "model.ckpt-906808"
and I save the checkpoint to CHECK_POINT folder. it works well.

from mobilenet.

Santara avatar Santara commented on July 3, 2024

Thanks for letting me know that, @lijunhong5457 . But I am still facing InvalidArgumentError due to NaNs in the histograms. Have you ever faced that? Here is a snippet.

InvalidArgumentError (see above for traceback): Nan in summary histogram for: MobileNet/conv_ds_3/dw_batch_norm/moving_variance_1
         [[Node: MobileNet/conv_ds_3/dw_batch_norm/moving_variance_1 = HistogramSummary[T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:CPU:0"](MobileNet/conv_ds_3/dw_batch_norm/moving_variance_1/tag, MobileNet/conv_ds_3/dw_batch_norm/moving_variance/read)]]
         [[Node: fifo_queue_Dequeue/_1 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device_incarnation=1, tensor_name="edge_56_fifo_queue_Dequeue", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:GPU:0"]()]]

from mobilenet.

lijunhon avatar lijunhon commented on July 3, 2024

@Santara I think that your checkpoint was improperly modified, resulting in incorrect initial parameter loading. For checkpoint, don't add new lines or spaces manually, just modify them on the original basis. But the premise is that you modify the path so that the program can find the model.

from mobilenet.

lijunhon avatar lijunhon commented on July 3, 2024

@Santara when you get loss nan, you should clear train_dir to avoid that program load wrong parameter.

from mobilenet.

Santara avatar Santara commented on July 3, 2024

Thank you for all the help, @lijunhon - but even after doing everything you suggested, I am still getting NaN in summary histograms. Is it because I am running on a CPU? It should not be, right?

from mobilenet.

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.