Coder Social home page Coder Social logo

Comments (10)

dufengtong avatar dufengtong commented on August 28, 2024 18

It because the return format of zip() is different between python2 and 3.
change the line grads_and_vars = zip(clipped_grads, tvars) in optimizer/generic_optimizer.py to grads_and_vars = list(zip(clipped_grads, tvars)), it works for me.

from kittiseg.

WPSanberg avatar WPSanberg commented on August 28, 2024 2

It seems to be python-related, I changed from python 3.5 to python 2.7 and the KITTI training works out of the box now.

from kittiseg.

wenouyang avatar wenouyang commented on August 28, 2024

Hi WPSanberg,

It seems to me that we are meeting the similar problem, i posted my question in the previous thread.

Wenouyang

from kittiseg.

obendidi avatar obendidi commented on August 28, 2024

Hello , I don't know where the problem is in what you did ,
but I've trained the model on my own dataset and it did work , I'll tell what I did , maybe it will help ,
I mainly changed the input file , and set it up so that it loads the images directly from train and validation folders , after loading it resizes them to the same resolution as Kitti images , and then it gets the ground truth mask from the hypes , and use it to read the 'gt_images' and separate it into the different classes, the rest I didn't touch ... hope it helps

from kittiseg.

MarvinTeichmann avatar MarvinTeichmann commented on August 28, 2024

To me this looks like the tensor loss/total_loss is not well defined. Can you check, whether the loss function actually gets computed correctly?

from kittiseg.

WPSanberg avatar WPSanberg commented on August 28, 2024

Hi Marvin,
It indeed seems to be about the loss, the error rises in tensorvisions def build_training_graph(hypes, queue, modules): at this segment:
with tf.name_scope("Loss"): losses = objective.loss(hypes, decoded_logits, labels)
but I am not sure how to trace it beyond that.

By the way, I get the same error message if I try to run the training process with the original configuration on the KITTI data.

from kittiseg.

MarvinTeichmann avatar MarvinTeichmann commented on August 28, 2024

Yeah, if I find some spare time, I will look into python 3.5. In theory it should work out of the box.

from kittiseg.

KKayak avatar KKayak commented on August 28, 2024

@WPSanberg how to comment out line 123,train.maybe_download_and_extract(hypes),it should be what

from kittiseg.

WPSanberg avatar WPSanberg commented on August 28, 2024

from kittiseg.

devimonica avatar devimonica commented on August 28, 2024

@WPSanberg how to comment out line 123,train.maybe_download_and_extract(hypes),it should be what

Nothing. Just go to Format and Comment out that region.

from kittiseg.

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.