Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Scalar Data Found #259

Open
I-CANT-CODE opened this issue Mar 26, 2019 · 2 comments
Open

No Scalar Data Found #259

I-CANT-CODE opened this issue Mar 26, 2019 · 2 comments

Comments

@I-CANT-CODE
Copy link

I-CANT-CODE commented Mar 26, 2019

I am having issues with TensorBoard.

I am basically training the network 10 times in a for loop, each iteration training on a different version of the same data set, like such:

for j in range(1,10):

    folder_name = path to folder [j] + "/*.png"
    checkpoint_path = "checkpoints_"+str(j)
    
   data_provider = image_util.ImageDataProvider(folder_name,data_suffix=".png",mask_suffix = "_LABEL.png")
    data_provider.n_class = 3

    net[j] = unet.Unet(layers=3,cost_kwargs = {"class_weights":[.4,.3,.3]}, features_root=128, channels=1, n_class=3)

    trainer[j] = unet.Trainer(net[j],optimizer = "adam", opt_kwargs = dict(learning_rate=.00001))

    path[j] = trainer[j].train(data_provider, output_path=checkpoint_path, training_iters = 32, epochs=2)

but for some reason in TensorBoard only half of these sessions' scalar data shows up on the graphs. Why is this?

Edit: so the data does eventually show up in TensorBoard but it takes around 20 minutes AFTER it finishes training each iteration to finally show up in the graph. Any Idea why?

@I-CANT-CODE
Copy link
Author

OK, issue was resolved by using a time.wait(5) at the end of the loop. Maybe some strange non-blocking thread that needed time to run before moving on to the next training sesh

@I-CANT-CODE
Copy link
Author

Ok issue was not resolved, TensorBoard only works sometimes after all loops are finished, still shows up empty during training for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant