IGDN
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python, tensorflow
調査の方向性
Start by running the provided generatorend reproduction and compare saving with Conv2D versus Conv2DTranspose. Read tensorflow_compression/python/layers/gdn.py around GDN.call, especially the alpha and rectify condition; done means the model saves without the OperatorNotAllowedInGraphError while preserving the reported layer behavior.
索引モデルが issue の本文から書いたものです。
説明
class generatorend(tf.keras.Model):
def __init__(self):
super().__init__(name="generator_ender")
self.conv1 = tf.keras.layers.Conv2D(480, kernel_size = [3,3], strides =[2,2],activation=tfc.GDN(inverse = True,name="gdn1"))
self.conv2 = tf.keras.layers.Conv2DTranspose(480, kernel_size = [3,3], strides =[2,2],activation=tfc.GDN(inverse = True, name="gdn1"))
self.acti = tf.keras.layers.Activation(tf.keras.activations.tanh)
def call(self, inputs):
x = self.conv1(inputs)
x = self.conv2(x)
x = self.acti(x)
return x`
model = generatorend()
dummy_input = tf.random.normal([1, 16,24, 8])
model(dummy_input) # This will build the model
model.save('test_model') # Now try to save it
`
Traceback (most recent call last):
File "test.py", line 399, in
model.save('test_model') # Now try to save it
File "/usr/local/lib/python3.8/dist-packages/keras/utils/traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/usr/lib/python3.8/contextlib.py", line 120, in exit
next(self.gen)
File "/usr/local/lib/python3.8/dist-packages/tensorflow_compression/python/layers/gdn.py", line 381, in call
if not callable(self.alpha_parameter) and self.alpha == 1 and self.rectify:
tensorflow.python.framework.errors_impl.OperatorNotAllowedInGraphError: Exception encountered when calling layer 'gdn1' (type GDN).
Using a symbolic tf.Tensor as a Python bool is not allowed: AutoGraph did convert this function. This might indicate you are trying to use an unsupported feature.
Call arguments received by layer 'gdn1' (type GDN):
• args=('tf.Tensor(shape=(None, None, None, 480), dtype=float32)',)
• kwargs=<class 'inspect._empty'>`
tested with simple code:
however, encountered with :
It is clear that all params stays the same and the only difference is conv2d and conv2dTranspose. Thus i think it may be a bug
- 主要言語
- Python
- スター
- 923
- フォーク
- 258
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tensorflow/compression のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
tensorflow/compression#188 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
tensorflow/compression#187 ·
-
安卓 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
tensorflow/compression#185 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
tensorflow/compression#179 · リアクション 4 件 ·
-
Unable to save model オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
tensorflow/compression#174 · リアクション 1 件 ·
tensorflow/compression の issue をすべて見る
似ている issue
-
area: harness bug status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Human-Agent-Society/reef#625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
learningequality/kolibri#15351 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Name consistency オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
eellak/triplestore#65 · コメント 1 件 ·