Code Monkey home page Code Monkey logo

Comments (7)

itijyou avatar itijyou commented on May 27, 2024 1

Thanks. I will make this part clearer, with examples.

python issegm/voc.py --gpus 0,1,2,3 --split train --data-root ${New_database} --output output --model ${New_database}_rna-a1_cls${Number_of_classes} --batch-images 16 --crop-size 500 --origin-size 2048 --scale-rate-range 0.7,1.3 --weights models/ilsvrc-cls_rna-a1_cls1000_ep-0001.params --lr-type fixed --base-lr 0.0016 --to-epoch 140 --kvstore local --prefetch-threads 4 --prefetcher thread --backward-do-mirror

Changing --crop-size and/or --origin-size as you like is supposed to be OK.
Besides,

  1. prepare split files and save them into issegm/data/${New_database};
  2. specify --cache-images 0 if your new data are too large to hold in host memory.

from ademxapp.

DonghyunK avatar DonghyunK commented on May 27, 2024

@itijyou Thank you for the reply.

May I ask more question?

1. dataset definition?

There is a part like , line number 250 in voc.py
if dataset == 'ade20k': num_classes = model_specs.get('classes', 150) label_2_id = np.arange(-1, 150) label_2_id[0] = 255 id_2_label = np.arange(1, 256+1) id_2_label[255] = 0 valid_labels = range(1, 150+1) # if args.split == 'test': cmap_path = None # max_shape = np.array((2100, 2100)) if model_specs.get('balanced', False) and args.split == 'trainval': meta['image_classes']['trainval'] = meta['image_classes']['train'] + meta['image_classes']['val']

I think I need to define something here for a new dataset. I dont know what I have to do.

2. A format of label

A format of label is different for each dataset. So what format is allowed? (e.g. (wxh and intensity=label) or (wxhxc intensity =[label, label, label])

Thank you!

from ademxapp.

itijyou avatar itijyou commented on May 27, 2024

@DonghyunK

  1. Yes. I thought there were a default setting in this function (but apparently not).
    In most cases, adding something like this should suffice.
elif dataset == 'pascal-context':
        num_classes = model_specs.get('classes', 60)
        valid_labels = range(num_classes)
        #
        max_shape = np.array((500, 500))
  1. wxh and intensity=label

from ademxapp.

DonghyunK avatar DonghyunK commented on May 27, 2024

@itijyou

Thank you, I can train it now.

Could you please tell me how I can check an accuracy on a validation set for each epoch?

MXNet is totally new to me, so that I am sorry to ask you many questions.

Thanks.

from ademxapp.

itijyou avatar itijyou commented on May 27, 2024

Specify the `eval_data' parameter when calling mod.fit

For MXNet related questions, it'd be better to ask at the MXNet project.

from ademxapp.

DonghyunK avatar DonghyunK commented on May 27, 2024

@itijyou

I appreciate and thank you for the answers.

Since I resolved this issue, I close this issue.

from ademxapp.

czzerone avatar czzerone commented on May 27, 2024

Thanks. I will make this part clearer, with examples.

python issegm/voc.py --gpus 0,1,2,3 --split train --data-root ${New_database} --output output --model ${New_database}_rna-a1_cls${Number_of_classes} --batch-images 16 --crop-size 500 --origin-size 2048 --scale-rate-range 0.7,1.3 --weights models/ilsvrc-cls_rna-a1_cls1000_ep-0001.params --lr-type fixed --base-lr 0.0016 --to-epoch 140 --kvstore local --prefetch-threads 4 --prefetcher thread --backward-do-mirror

Changing --crop-size and/or --origin-size as you like is supposed to be OK.
Besides,

  1. prepare split files and save them into issegm/data/${New_database};
  2. specify --cache-images 0 if your new data are too large to hold in host memory.

hello,i follow this command to train the model on the pascal voc dataset, but when I test the model after training ,the prediction is all black. do you know how to deal with it??
Thanks.

from ademxapp.

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.