回答編集履歴
1
追記
test
CHANGED
@@ -1 +1,77 @@
|
|
1
1
|
質問者さんがお使いのtensorflowのバージョンが不明ですが、tensorflow 1.15 を使用すれば``ModuleNotFoundError: No module named 'tensorflow.contrib'``のエラーは解消するはずです。
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
---
|
6
|
+
|
7
|
+
【追記】実行結果
|
8
|
+
|
9
|
+
```
|
10
|
+
|
11
|
+
WARNING:tensorflow:
|
12
|
+
|
13
|
+
The TensorFlow contrib module will not be included in TensorFlow 2.0.
|
14
|
+
|
15
|
+
For more information, please see:
|
16
|
+
|
17
|
+
* https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
|
18
|
+
|
19
|
+
* https://github.com/tensorflow/addons
|
20
|
+
|
21
|
+
* https://github.com/tensorflow/io (for I/O related ops)
|
22
|
+
|
23
|
+
If you depend on functionality not listed there, please file an issue.
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
WARNING:tensorflow:From /content/fenwicks/train.py:159: The name tf.losses.Reduction is deprecated. Please use tf.compat.v1.losses.Reduction instead.
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
---------------------------------------------------------------------------
|
32
|
+
|
33
|
+
AttributeError Traceback (most recent call last)
|
34
|
+
|
35
|
+
<ipython-input-2-e7475465a85a> in <module>()
|
36
|
+
|
37
|
+
5 tf.io.gfile.rmtree('./fenwicks')
|
38
|
+
|
39
|
+
6 get_ipython().system('git clone -q https://github.com/fenwickslab/fenwicks.git ')
|
40
|
+
|
41
|
+
----> 7 import fenwicks as fw
|
42
|
+
|
43
|
+
8 fw.colab_utils.setup_gcs()
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
1 frames
|
48
|
+
|
49
|
+
/content/fenwicks/__init__.py in <module>()
|
50
|
+
|
51
|
+
9 from .utils import colab as colab_utils
|
52
|
+
|
53
|
+
10
|
54
|
+
|
55
|
+
---> 11 from .vision.models import keras_models
|
56
|
+
|
57
|
+
12 from .vision import transform
|
58
|
+
|
59
|
+
13 from .vision import image
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
/content/fenwicks/vision/models/__init__.py in <module>()
|
64
|
+
|
65
|
+
3 from tensorflow.python.keras import engine as keras_engine
|
66
|
+
|
67
|
+
4
|
68
|
+
|
69
|
+
----> 5 keras_applications.set_keras_submodules(backend=tf.keras.backend, layers=tf.keras.layers, models=tf.keras.models,
|
70
|
+
|
71
|
+
6 utils=tf.keras.utils, engine=keras_engine)
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
AttributeError: module 'keras_applications' has no attribute 'set_keras_submodules'
|
76
|
+
|
77
|
+
```
|