Hello everyone!
I fixed all issues regarding to migrating code of my project to Hugging Face Spaces until the status changed to Running
. But it is loading infinitely that does not allow to see the Gradio ui. Restarting this Space
or Factory reboot this Space
didnβt help. I canβt make this repo public because of privacy policy of my company, but here is screenshot and logfile.
2022-06-01 07:45:33.676322: I tensorflow/core/util/util.cc:169] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2022-06-01 07:45:33.867863: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2022-06-01 07:45:33.867898: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Removing cache dir /home/user/.cache/youtube-dl ..
backbone params inited by Pytorch official model
Downloading: "https://download.pytorch.org/models/resnet101-5d3b4d8f.pth" to /home/user/.cache/torch/hub/checkpoints/resnet101-5d3b4d8f.pth
0%| | 0.00/170M [00:00<?, ?B/s]
5%|β | 8.16M/170M [00:00<00:01, 85.6MB/s]
10%|β | 17.0M/170M [00:00<00:02, 53.8MB/s]
13%|ββ | 22.8M/170M [00:00<00:02, 54.6MB/s]
17%|ββ | 28.3M/170M [00:00<00:02, 49.9MB/s]
20%|ββ | 34.0M/170M [00:00<00:03, 41.2MB/s]
22%|βββ | 38.2M/170M [00:00<00:03, 41.8MB/s]
25%|βββ | 42.7M/170M [00:00<00:03, 43.2MB/s]
28%|βββ | 47.4M/170M [00:01<00:02, 44.8MB/s]
30%|βββ | 51.9M/170M [00:01<00:03, 37.8MB/s]
37%|ββββ | 63.7M/170M [00:01<00:02, 54.8MB/s]
41%|ββββ | 69.1M/170M [00:01<00:02, 52.5MB/s]
44%|βββββ | 74.2M/170M [00:01<00:02, 40.6MB/s]
48%|βββββ | 82.0M/170M [00:02<00:02, 34.5MB/s]
53%|ββββββ | 91.0M/170M [00:02<00:01, 43.6MB/s]
56%|ββββββ | 95.9M/170M [00:02<00:01, 42.8MB/s]
59%|ββββββ | 101M/170M [00:02<00:01, 42.5MB/s]
64%|βββββββ | 109M/170M [00:02<00:01, 38.2MB/s]
69%|βββββββ | 117M/170M [00:02<00:01, 42.3MB/s]
71%|βββββββ | 121M/170M [00:03<00:01, 31.7MB/s]
74%|ββββββββ | 127M/170M [00:03<00:01, 30.6MB/s]
76%|ββββββββ | 130M/170M [00:03<00:01, 26.7MB/s]
85%|βββββββββ | 145M/170M [00:03<00:00, 44.7MB/s]
95%|ββββββββββ| 162M/170M [00:03<00:00, 66.7MB/s]
100%|ββββββββββ| 170M/170M [00:03<00:00, 46.6MB/s]
/home/user/.local/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: `optional` parameter is deprecated, and it has no effect
warnings.warn(value)
/home/user/.local/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: `numeric` parameter is deprecated, and it has no effect
warnings.warn(value)
/home/user/.local/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: The 'type' parameter has been deprecated. Use the Number component instead.
warnings.warn(value)
Cache at /home/user/app/gradio_cached_examples/log.csv not found. Caching now in 'gradio_cached_examples/' directory.
2022-06-01 07:48:22.516779: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2022-06-01 07:48:22.516813: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)
2022-06-01 07:48:22.516843: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:163] no NVIDIA GPU device is present: /dev/nvidia0 does not exist
2022-06-01 07:48:22.517784: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 AVX512F AVX512_VNNI FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
WARNING:tensorflow:From /home/user/.local/lib/python3.8/site-packages/tensorflow/python/util/deprecation.py:629: calling map_fn_v2 (from tensorflow.python.ops.map_fn) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Use fn_output_signature instead
WARNING:tensorflow:No training configuration found in the save file, so the model was *not* compiled. Compile it manually.
app.py:140: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
new_dict[LABELS[key]] = np.float(result_dict[key])
WARNING:tensorflow:No training configuration found in the save file, so the model was *not* compiled. Compile it manually.
app.py:213: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
conf = np.float(conf)
app.py:277: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
scores = [np.float(x) for x in logit[logit > 0.7].cpu().detach().numpy()]
WARNING:tensorflow:No training configuration found in the save file, so the model was *not* compiled. Compile it manually.
app.py:140: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
new_dict[LABELS[key]] = np.float(result_dict[key])
WARNING:tensorflow:No training configuration found in the save file, so the model was *not* compiled. Compile it manually.
app.py:213: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
conf = np.float(conf)
app.py:277: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
scores = [np.float(x) for x in logit[logit > 0.7].cpu().detach().numpy()]
WARNING:tensorflow:No training configuration found in the save file, so the model was *not* compiled. Compile it manually.
app.py:140: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
new_dict[LABELS[key]] = np.float(result_dict[key])
WARNING:tensorflow:No training configuration found in the save file, so the model was *not* compiled. Compile it manually.
app.py:213: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
conf = np.float(conf)
app.py:277: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
scores = [np.float(x) for x in logit[logit > 0.7].cpu().detach().numpy()]
Running on local URL: http://localhost:7860/
To create a public link, set `share=True` in `launch()`.