AI4EPS / DeepDenoiser

DeepDenoiser: Seismic Signal Denoising and Decomposition Using Deep Neural Networks
MIT License
183 stars 60 forks source link

some problems about "uvicorn" #9

Open JUNZHU-SEIS opened 3 years ago

JUNZHU-SEIS commented 3 years ago

Every time I run "uvicorn --app-dir=deepdenoiser app:app --reload --port 8003", I got the error messages below

INFO:     Will watch for changes in these directories: ['/home/as/Work/tmp/deepdenoise/DeepDenoiser']
INFO:     Uvicorn running on http://127.0.0.1:8003 (Press CTRL+C to quit)
INFO:     Started reloader process [23817] using statreload
/home/as/anaconda3/envs/deepdenoiser/lib/python3.7/site-packages/tensorflow/python/keras/legacy_tf_layers/convolutional.py:414: UserWarning: `tf.layers.conv2d` is deprecated and will be removed in a future version. Please Use `tf.keras.layers.Conv2D` instead.
  warnings.warn('`tf.layers.conv2d` is deprecated and '
/home/as/anaconda3/envs/deepdenoiser/lib/python3.7/site-packages/tensorflow/python/keras/engine/base_layer_v1.py:1719: UserWarning: `layer.apply` is deprecated and will be removed in a future version. Please use `layer.__call__` method instead.
  warnings.warn('`layer.apply` is deprecated and '
/home/as/anaconda3/envs/deepdenoiser/lib/python3.7/site-packages/tensorflow/python/keras/legacy_tf_layers/normalization.py:308: UserWarning: `tf.layers.batch_normalization` is deprecated and will be removed in a future version. Please use `tf.keras.layers.BatchNormalization` instead. In particular, `tf.control_dependencies(tf.GraphKeys.UPDATE_OPS)` should not be used (consult the `tf.keras.layers.BatchNormalization` documentation).
  '`tf.layers.batch_normalization` is deprecated and '
/home/as/anaconda3/envs/deepdenoiser/lib/python3.7/site-packages/tensorflow/python/keras/legacy_tf_layers/core.py:268: UserWarning: `tf.layers.dropout` is deprecated and will be removed in a future version. Please use `tf.keras.layers.Dropout` instead.
  warnings.warn('`tf.layers.dropout` is deprecated and '
/home/as/anaconda3/envs/deepdenoiser/lib/python3.7/site-packages/tensorflow/python/keras/legacy_tf_layers/convolutional.py:1294: UserWarning: `tf.layers.conv2d_transpose` is deprecated and will be removed in a future version. Please Use `tf.keras.layers.Conv2DTranspose` instead.
  warnings.warn('`tf.layers.conv2d_transpose` is deprecated and '
2021-09-19 18:12:01.694317: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  SSE4.1 SSE4.2 AVX AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2021-09-19 18:12:01.717938: I tensorflow/core/platform/profile_utils/cpu_utils.cc:112] CPU Frequency: 2799925000 Hz
2021-09-19 18:12:01.718885: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55f47dc085a0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2021-09-19 18:12:01.718923: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
2021-09-19 18:12:01.719037: I tensorflow/core/common_runtime/process_util.cc:146] Creating new thread pool with default inter op setting: 2. Tune using inter_op_parallelism_threads for best performance.
2021-09-19 18:12:01.791547: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:196] None of the MLIR optimization passes are enabled (registered 0 passes)
restoring model /home/as/Work/tmp/deepdenoise/DeepDenoiser/model/190614-104802/model_95.ckpt
Connecting to k8s kafka
WARNING:kafka.conn:DNS lookup failed for quakeflow-kafka-headless:9092, exception was [Errno -3] Temporary failure in name resolution. Is your advertised.listeners (called advertised.host.name before Kafka 9) correct and resolvable?
ERROR:kafka.conn:DNS lookup failed for quakeflow-kafka-headless:9092 (AddressFamily.AF_UNSPEC)
WARNING:kafka.conn:DNS lookup failed for quakeflow-kafka-headless:9092, exception was [Errno -3] Temporary failure in name resolution. Is your advertised.listeners (called advertised.host.name before Kafka 9) correct and resolvable?
ERROR:kafka.conn:DNS lookup failed for quakeflow-kafka-headless:9092 (AddressFamily.AF_UNSPEC)
k8s Kafka connection error
Connecting to local kafka
ERROR:kafka.conn:Connect attempt to <BrokerConnection node_id=bootstrap-0 host=localhost:9092 <connecting> [IPv4 ('127.0.0.1', 9092)]> returned error 111. Disconnecting.
ERROR:kafka.conn:Connect attempt to <BrokerConnection node_id=bootstrap-0 host=localhost:9092 <connecting> [IPv4 ('127.0.0.1', 9092)]> returned error 111. Disconnecting.
local Kafka connection error
INFO:     Started server process [23819]
INFO:uvicorn.error:Started server process [23819]
INFO:     Waiting for application startup.
INFO:uvicorn.error:Waiting for application startup.
INFO:     Application startup complete.
INFO:uvicorn.error:Application startup complete.

Any reply and comment is appreciated.

wayneweiqiang commented 3 years ago

Hi, that is normal. The errors are from kafka. This Interactive example is mainly for the QuakeFlow project.