Giter Site home page Giter Site logo

Comments (7)

Xiaocong6 avatar Xiaocong6 commented on June 15, 2024 1

hi, I met the same error. How do you solve it?
Hope for your help. Thanks!

from neural-image-assessment.

titu1994 avatar titu1994 commented on June 15, 2024

This code wasn't built for eager execution mode on Tensorflow, that may be one of the issues. Otherwise see whether you can drop theast batch inside the dataset.batch method. Maybe that will fix it.

from neural-image-assessment.

ranju2015 avatar ranju2015 commented on June 15, 2024

Same error I am getting. I have not used eager execution mode.

Epoch 00020: val_loss did not improve from 0.08821
Exception ignored in: <generator object train_generator at 0x7f7ee96fb308>
Traceback (most recent call last):
File "/home/bigdata/s2830250/nima-master-titu1994/utils/data_loader.py", line 128, in train_generator
yield (X_batch, y_batch)
File "/home/bigdata/s2830250/rvenv/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1587, in exit
self._default_graph_context_manager.exit(exec_type, exec_value, exec_tb)
File "/usr/local/lib/python3.5/contextlib.py", line 77, in exit
self.gen.throw(type, value, traceback)
File "/home/bigdata/s2830250/rvenv/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 5233, in get_controller
context.context().context_switches.pop()
File "/home/bigdata/s2830250/rvenv/lib/python3.5/site-packages/tensorflow/python/eager/context.py", line 141, in pop
self.stack.pop()
IndexError: pop from empty list

from neural-image-assessment.

ranju2015 avatar ranju2015 commented on June 15, 2024

This code wasn't built for eager execution mode on Tensorflow, that may be one of the issues. Otherwise see whether you can drop theast batch inside the dataset.batch method. Maybe that will fix it.

Do you think the training sample needs to be divisible by 200 if my batchsize is 200? My dataset remainder is 21 if I divide total samples by 200.

from neural-image-assessment.

ranju2015 avatar ranju2015 commented on June 15, 2024

Epoch 00020: val_loss did not improve from 0.04966
Exception ignored in: <generator object val_generator at 0x7f588c71da20>
Traceback (most recent call last):
File "/home/tiger/jiazheng/neural-image-assessment/utils/data_loader.py", line 158, in val_generator
yield (X_batch, y_batch)
File "/home/tiger/jiazheng/venv34/lib/python3.4/site-packages/tensorflow/python/client/session.py", line 1596, in exit
self._default_graph_context_manager.exit(exec_type, exec_value, exec_tb)
File "/usr/lib/python3.4/contextlib.py", line 77, in exit
self.gen.throw(type, value, traceback)
File "/home/tiger/jiazheng/venv34/lib/python3.4/site-packages/tensorflow/python/framework/ops.py", line 5267, in get_controller
context.context().context_switches.pop()
File "/home/tiger/jiazheng/venv34/lib/python3.4/site-packages/tensorflow/python/eager/context.py", line 136, in pop
self.stack.pop()
IndexError: pop from empty list
Exception ignored in: <generator object train_generator at 0x7f58ac2835e8>
Traceback (most recent call last):
File "/home/tiger/jiazheng/neural-image-assessment/utils/data_loader.py", line 123, in train_generator
yield (X_batch, y_batch)
File "/home/tiger/jiazheng/venv34/lib/python3.4/site-packages/tensorflow/python/client/session.py", line 1596, in exit
self._default_graph_context_manager.exit(exec_type, exec_value, exec_tb)
File "/usr/lib/python3.4/contextlib.py", line 77, in exit
self.gen.throw(type, value, traceback)
File "/home/tiger/jiazheng/venv34/lib/python3.4/site-packages/tensorflow/python/framework/ops.py", line 5267, in get_controller
context.context().context_switches.pop()
File "/home/tiger/jiazheng/venv34/lib/python3.4/site-packages/tensorflow/python/eager/context.py", line 136, in pop
self.stack.pop()
IndexError: pop from empty list

after the last epoch, this error happened. I checked the dataset, the ava.txt matches the training images. all the epochs before were good. Thanks!

Did you solve the problem?

from neural-image-assessment.

ranju2015 avatar ranju2015 commented on June 15, 2024

This code wasn't built for eager execution mode on Tensorflow, that may be one of the issues. Otherwise see whether you can drop theast batch inside the dataset.batch method. Maybe that will fix it.

Would you please elaborate this point little more? I am stuck at this point.

from neural-image-assessment.

Jackyinuo avatar Jackyinuo commented on June 15, 2024

This code wasn't built for eager execution mode on Tensorflow, that may be one of the issues. Otherwise see whether you can drop theast batch inside the dataset.batch method. Maybe that will fix it.

Would you please elaborate this point little more? I am stuck at this point.

HI, I have been stuck in this error, would you addressed this error???

from neural-image-assessment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.