Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1223 connectés 

  FORUM HardWare.fr
  Programmation
  Python

  Python - Output trop verbose

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Python - Output trop verbose

n°2334257
vandit
alive & kicking
Posté le 29-05-2019 à 19:15:42  profilanswer
 

Bonjour, quand le lance un script Python et je recupere l'output dans un fichier, le fichier contient les données, par contre j'ai du garbage sur la console.
 
Quelqu'un saurait comment se debarrasser de ce logging inutile ?
 

# python3.5 /root/tensorflow_work/label_image.py foobar.jpg > foobar ;
2019-05-29 20:03:03.059523: W tensorflow/core/framework/op_def_util.cc:355] Op BatchNormWithGlobalNormalization is deprecated. It will cease to work in GraphDef version 9. Use tf.nn.batch_normalization().
2019-05-29 20:03:03.378680: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2019-05-29 20:03:03.451922: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2111995000 Hz
2019-05-29 20:03:03.452021: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x6ba17e0 executing computations on platform Host. Devices:
2019-05-29 20:03:03.452034: I tensorflow/compiler/xla/service/service.cc:158]   StreamExecutor device (0): <undefined>, <undefined>
2019-05-29 20:03:04.141918: W tensorflow/core/framework/allocator.cc:124] Allocation of 25245000 exceeds 10% of system memory.
2019-05-29 20:03:04.159574: W tensorflow/core/framework/allocator.cc:124] Allocation of 100980000 exceeds 10% of system memory.


 

# head foobar
foo (score = 0.64049)
bar (score = 0.35951)


 
Merci.


---------------
"Première fois de ma vie que je te vois mais tu m'as l'air d'un sacré tocard !"
mood
Publicité
Posté le 29-05-2019 à 19:15:42  profilanswer
 

n°2334258
rat de com​bat
attention rongeur méchant!
Posté le 29-05-2019 à 20:02:44  profilanswer
 

python3.5 /root/tensorflow_work/label_image.py foobar.jpg > foobar 2>/dev/null

n°2334259
vandit
alive & kicking
Posté le 29-05-2019 à 20:20:47  profilanswer
 

rat de combat a écrit :

python3.5 /root/tensorflow_work/label_image.py foobar.jpg > foobar 2>/dev/null


 
Merci beaucoup, ca marche impec   :jap:


---------------
"Première fois de ma vie que je te vois mais tu m'as l'air d'un sacré tocard !"

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Python

  Python - Output trop verbose

 

Sujets relatifs
Pas d'interpreteur Python sur Pycharm[Python]Problème de split.
Question sur la programmation en Python avec Notepad++[Python] Génération de dictionnaires
Python 3.6 extraction de feuille excel pour convertion en PDF[PYTHON] Récupérer les donnée d'un programme
[Python] Récupération l'error handling avec ParamikoEnvoi SMS Python suivant retour commande
Supprimer un doublon dans une liste pythonProgrammation Python
Plus de sujets relatifs à : Python - Output trop verbose


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR