tensorflow / tensorflow/graphics

Attribute Error in the models.py

Open
#730 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.8k
Forks
374
PR merge metrics
No merged PRs in 30d

Description

After running the train.py, I got this error:

  File "/.../graphics/tensorflow_graphics/projects/cvxnet/lib/models.py", line 120, in compute_loss
    update_ops = self.updates
                 ^^^^^^^^^^^^
AttributeError: 'MultiConvexNet' object has no attribute 'updates'

It looks the MultiConvexNet object is not initialized and the error happens.
Could you help me to solve the problem.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the error by running train.py, then inspect lib/models.py around line 120 in MultiConvexNet.compute_loss and trace how the object is initialized. Determine why self.updates is unavailable and verify that training proceeds without this AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.