Coder Social home page Coder Social logo

Comments (2)

daisy-belle avatar daisy-belle commented on April 28, 2024

enviroment use: tf-gpu 1.12.0 , linux, python 3.6.8
there is the same error!
really hope to give me some advice ~

from google-research.

Mahhos avatar Mahhos commented on April 28, 2024

Hi there, a problem occured when running the bam/run_classifier.py.

Tensorflow seems to lock the events.out.tfevents file until the whole program end, when execute the command utils.rmkdir(config.checkpoints_dir) at run_classfier.py line 271, tf.gfile.DeleteRecursively appears to can't be done and raise the error given below

Traceback (most recent call last):
  File "D:/bam/run_classifier.py", line 281, in <module>
    tf.app.run()
  File "C:\Python36\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
    _sys.exit(main(argv))
  File "D:/bam/run_classifier.py", line 276, in main
    utils.rmkdir(config.checkpoints_dir)
  File "D:\bam\helpers\utils.py", line 71, in rmkdir
    rmrf(path)
  File "D:\bam\helpers\utils.py", line 60, in rmrf
    tf.gfile.DeleteRecursively(path)
  File "C:\Python36\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 563, in delete_recursively
    delete_recursively_v2(dirname)
  File "C:\Python36\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 577, in delete_recursively_v2
    pywrap_tensorflow.DeleteRecursively(compat.as_bytes(path), status)
  File "C:\Python36\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 528, in __exit__
    c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.FailedPreconditionError: Failed to remove a directory: bam_dir\models\debug-model\checkpoints; Directory not empty

The enviroment currently use : tensorflow-gpu 1.13.1 windows10.
However, when run this code on centos, the problem doesn't exist.
Really hope to give me some advice

Following the steps in the repo, I am trying to run command python -m bam.run_classifier debug-model $BAM_DIR '{"debug": true}' as a minimal test. However, below line of code, raise Extra data: line 1 column 5 (char 4) error. Do you have any idea what should be the root cause? I tried to run other commands, still, this line raises an issue with the JSON.

Line raining the error:
\bam\run_classifier.py", line 258, in main config = configure.Config(topdir, model_name, **json.loads(hparams))

Error:
raise JSONDecodeError("Extra data", s, end) json.decoder.JSONDecodeError: Extra data: line 1 column 5 (char 4)

from google-research.

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.