Code Monkey home page Code Monkey logo

Comments (12)

GrassSunFlower avatar GrassSunFlower commented on May 12, 2024 1

Maybe you should read the code more carefully, we assign different anchors in the data_prep/get_cityscapes_list.py:

for i in range(1, 8):
    train_lst.append([str(index), p, l, "512", str(256 * i)])

And together with TuSimple-DUC/tusimple_duc/core/utils.py

def get_single_image_duc(item, input_args):

That's exactly how we do data augmentation.

from tusimple-duc.

GrassSunFlower avatar GrassSunFlower commented on May 12, 2024 1

@chienyiwang fix by #7

from tusimple-duc.

GrassSunFlower avatar GrassSunFlower commented on May 12, 2024

see #2.

from tusimple-duc.

chienyiwang avatar chienyiwang commented on May 12, 2024

Hi @GrassSunFlower Thanks for the reply. However, the list only provides the image/annotation filename in each line. Would you be able to provide the download link of actual augmented training data for easier training? Thank you!

from tusimple-duc.

chienyiwang avatar chienyiwang commented on May 12, 2024

Hi @GrassSunFlower, I see. Sorry I presumed you are extracting 35700 images into a separate folder which follows the usual segmentation data pipeline. Thanks for the explanation!

from tusimple-duc.

chienyiwang avatar chienyiwang commented on May 12, 2024

Hi @GrassSunFlower , could I ask some questions related to the gen_cityscapes_list.py code?

  1. What is the usage of the following code segment
    if index % sample_rate != 2: continue
  2. What is the reason for printing out the same line twice (from line 28-30)?
for line in train_lst:
        print >> train_out, '\t'.join(line)
        print >> train_out, '\t'.join(line)

Thank you very much!

from tusimple-duc.

GrassSunFlower avatar GrassSunFlower commented on May 12, 2024

These two statements should be two bugs.
Thanks for your patience. I'll fix them shortly.

from tusimple-duc.

shipengai avatar shipengai commented on May 12, 2024

Hi,@chienyiwang
Have you trained the model on the Cityscapes?
what's the performance your trained model on the val dataset?

from tusimple-duc.

shipengai avatar shipengai commented on May 12, 2024

Hi ,@GrassSunFlower @wpqmanu Is there a error in data_prep/get_cityscapes_list.py. the train lst has only 20825 lines, not 35700. because of range(1,8) = [1,2,3,4,5,6,7]

from tusimple-duc.

GrassSunFlower avatar GrassSunFlower commented on May 12, 2024

Nope.
35700 should came from our paper saying that

 Since the image size in the Cityscapes dataset
is 1024 × 2048, which is too big to fit in the GPU memory,
we partition each image into twelve 800×800 patches with
partial overlapping, thus augmenting the training set to have
35700 images.``` which is in the 'baseline model'.

And our actual augmentation utilized is in 'Bigger Patch Size', which says

 Since the patch size
exceeds the maximum dimension (800 × 800) in the previous
12-fold data augmentation framework, we adopt a new
7-fold data augmentation strategy: seven center locations
with x = 512, y = {256, 512, ..., 1792} are set in the original
image;

which is 7*2975.
Hope this will help you out. @shipeng-uestc

from tusimple-duc.

shipengai avatar shipengai commented on May 12, 2024

@GrassSunFlower Thanks for your reply. I figure out it.
I have another question. Can I use directly init.param to train on cityscape fine annotation dataset and need not to change super-paramter i.e. batch_size learning rate and so on.

from tusimple-duc.

GrassSunFlower avatar GrassSunFlower commented on May 12, 2024

Sure you do.

from tusimple-duc.

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.