Code Monkey home page Code Monkey logo

Comments (16)

MarvinTeichmann avatar MarvinTeichmann commented on July 17, 2024

Did you run python download_data.py --kitti_url URL_YOU_RETRIEVED? This should download and prepare all data.

from multinet.

HaoXuAI avatar HaoXuAI commented on July 17, 2024

yeah I used python download_data.py --kitti_url URL_YOU_RETRIEVED to retrieve data. And it said all done. the problem showed up when try to use train.py. And I tracked the error line to KittiSeg.json found the URL is empty.

from multinet.

MarvinTeichmann avatar MarvinTeichmann commented on July 17, 2024

This message comes, when no folder data_road cannot be found. Can you check whether there is a folder data_road in RUNS or $TV_DIR_RUNS?

from multinet.

HaoXuAI avatar HaoXuAI commented on July 17, 2024

my data_road is in MultiNet/DATA, is it supposed to be in RUNS/?

from multinet.

MarvinTeichmann avatar MarvinTeichmann commented on July 17, 2024

No, sry it should be in DATA. Is there a dir data_road?

from multinet.

HaoXuAI avatar HaoXuAI commented on July 17, 2024

yep. there is.

ubuntu@ip-172-30-5-78:~/didicompetetion/Hao/MultiNet/DATA$ ls
data_road  data_road.zip  KittiBox  vgg16.npy

from multinet.

HaoXuAI avatar HaoXuAI commented on July 17, 2024

And I after I put the URL manually, new error occurred:

2017-03-21 14:58:42,749 INFO Initialize training folder
2017-03-21 14:58:42,749 INFO f: <open file u'/home/ubuntu/didicompetetion/Hao/MultiNet/hypes/../submodules/KittiSeg/hypes/KittiSeg.json', mode 'r' at 0x7fa81a9dd540>
Traceback (most recent call last):
  File "train.py", line 615, in <module>
    tf.app.run()
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 44, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "train.py", line 594, in main
    subhypes, submodules, subgraph, tv_sess = build_united_model(hypes)
  File "train.py", line 512, in build_united_model
    subhypes[model] = json.load(f)
  File "/usr/lib/python2.7/json/__init__.py", line 291, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 17 column 5 (char 544)

It seems the URL is not readable?

from multinet.

MarvinTeichmann avatar MarvinTeichmann commented on July 17, 2024

The code tries to download the data in kitti_seg_input. All files seams to be there. The routine should be skipped at this : line

Can you check, why if os.path.exists(vgg_weights) and os.path.exists(kitti_road_dir) returns false? Is data_dir set correctly?

from multinet.

MarvinTeichmann avatar MarvinTeichmann commented on July 17, 2024

Hi, I think I found the issue. Can you try using commit c1612e3 and run training again?

from multinet.

HaoXuAI avatar HaoXuAI commented on July 17, 2024

no, still not working

2017-03-21 15:18:19,534 INFO Initialize training folder
2017-03-21 15:18:19,534 INFO f: <open file u'/home/ubuntu/didicompetetion/Hao/MultiNet/hypes/../submodules/KittiSeg/hypes/KittiSeg.json', mode 'r' at 0x7f112a85d540>
Traceback (most recent call last):
  File "train.py", line 616, in <module>
    tf.app.run()
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 44, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "train.py", line 595, in main
    subhypes, submodules, subgraph, tv_sess = build_united_model(hypes)
  File "train.py", line 513, in build_united_model
    subhypes[model] = json.load(f)
  File "/usr/lib/python2.7/json/__init__.py", line 291, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 17 column 5 (char 544)

from multinet.

MarvinTeichmann avatar MarvinTeichmann commented on July 17, 2024

Can you checkout the unmodified hype? It should work without setting the kitti_url.

The quoted issue indicates that your hype does not follow the .json specification (Forgot using quotes when pasting the kitti url?).

from multinet.

HaoXuAI avatar HaoXuAI commented on July 17, 2024

yeah that error fixed! but another one showed up.. lol

Traceback (most recent call last):
  File "train.py", line 618, in <module>
    tf.app.run()
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 44, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "train.py", line 597, in main
    subhypes, submodules, subgraph, tv_sess = build_united_model(hypes)
  File "train.py", line 537, in build_united_model
    first_iter)
  File "train.py", line 133, in build_training_graph
    decoded_logits = objective.decoder(hypes, logits, train=True)
  File "/home/ubuntu/didicompetetion/Hao/MultiNet/submodules/KittiSeg/hypes/../decoder/kitti_multiloss.py", line 48, in decoder
    decoded_logits['logits'] = logits['fcn_logits']
KeyError: 'fcn_logits'

And it happened after running several layers.

from multinet.

MarvinTeichmann avatar MarvinTeichmann commented on July 17, 2024

This looks as if you are using an old version of KittiSeg. Try updating all submodules by running:

git pull
git submodule update --recursive

from multinet.

HaoXuAI avatar HaoXuAI commented on July 17, 2024

yeah fixed after review #10. One question, it asked like this:
ERROR File '/home/ubuntu/didicompetetion/Hao/MultiNet/hypes/../DATA/weights/vgg16.npy' not found. Download it from ftp://mi.eng.cam.ac.uk/pub/mttt2/models/vgg16.npy
ERROR File '/home/ubuntu/didicompetetion/Hao/MultiNet/hypes/../DATA/vgg16.npy' not found. Download it from ftp://mi.eng.cam.ac.uk/pub/mttt2/models/vgg16.npy

So I just put vgg16.npy both in DATA/ and DATA/weights/, that makes me confused.

from multinet.

MarvinTeichmann avatar MarvinTeichmann commented on July 17, 2024

Yeah, the different submodules read the data from different location. Should properly fix this. For now you can avoid downloading it twice by creating a symlink ln -s weights/vgg16.npy vgg16.npy or vice versa.

from multinet.

HaoXuAI avatar HaoXuAI commented on July 17, 2024

cool, Ill close this issue, thanks for helping me! :)

from multinet.

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.