question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'ProgbarLogger' object has no attribute 'log_values'

See original GitHub issue

Hello, I am facing the specified error with the following config :

OS : Ubuntu 18.04 Tensorflow: 1.15.04 Keras : 2.3.1

JSON:

{
    "model" : {
        "type":                 "Classifier",
        "architecture":         "NASNetMobile",
        "input_size":           224,
        "fully-connected":      [],
        "labels":               [],
        "dropout" : 		    0.2
    },
     "weights" : {
            "full":   				"",
            "backend":   		    "imagenet",
            "save_bottleneck":      false
        
    },
    "train" : {
        "actual_epoch":         100,
        "train_image_folder":   "/mnt/0d2701de-7997-4d53-99fb-0c9de0a116c9/K210_tools/data/fire_dataset/cat_imaages",
        "train_times":          1,
        "valid_image_folder":   "/mnt/0d2701de-7997-4d53-99fb-0c9de0a116c9/K210_tools/data/fire_dataset/non_cat_images",
        "valid_times":          1,
        "valid_metric":         "val_accuracy",
        "batch_size":           16,
        "learning_rate":        1e-3,
        "saved_folder":   		"cat",
        "first_trainable_layer": "",
        "augumentation":		 true
    },
    "converter" : {
        "type":   				["k210"]
    }
}

When i run python train.py -c ../configs/cat_classifier.json i get the following error AttributeError: 'ProgbarLogger' object has no attribute 'log_values' I have tried adding " dense " to the first_trainable_layer but i get a different error Exception: First trainable layer specified in config file is not in the model Also i have tried with the dogs_classifier with the provided data from the sample_datasets and the result is the same.

Thank you for your time!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
AIWintermuteAIcommented, Feb 7, 2021

Okay, great! I actually knew something is wrong with folder structure when you wrote to me on LinkedIn, I just decided it’s better to have it on GitHub issues in case someone else encounters similar problem 😃 Closing the issue.

0reactions
spstrademarkcommented, Feb 7, 2021

Hello, With the provided structure of folders it worked! Thank you for your time

Read more comments on GitHub >

github_iconTop Results From Across the Web

'ProgbarLogger' object has no attribute 'log_values' · Issue ...
I have no idea why I get this error, It seems to happen randomly, can anyone point me in the right direction? Here...
Read more >
python - AttributeError: 'ProgbarLogger' object has no attribute ...
Answer 1: If the error only occurs when you use smaller datasets, you're very likely using datasets small enough to not have a...
Read more >
'ProgbarLogger' object has no attribute 'log_values'-numpy
Coding example for the question AttributeError: 'ProgbarLogger' object has no attribute 'log_values'-numpy.
Read more >
Kerasで'ProgbarLogger' object has no attribute 'log_values'
自分のソースコードを確認してみると、動作確認のため少ない枚数で学習させたので、バッチサイズで割った時に0になった模様。 例えば.
Read more >
'ProgbarLogger' object has no attribute 'log_values'_Doit_行之 ...
AttributeError : 'ProgbarLogger' object has no attribute 'log_values'. 场景:tensorflow.keras,或keras训练模型. 输入数据条数小于batch_size.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found