GithubHelp home page GithubHelp logo

ultrasound-nerve-segmentation's Issues

InvalidArgumentError: Incompatible shapes: [819200] vs. [5120]

Getting that error at line 65 of train.py:
model.fit_generator(train_generator, validation_data=val_generator, nb_val_samples=X_val.shape[0] * 2,
samples_per_epoch=X_train.shape[0], nb_epoch=nb_epoch, verbose=1,
callbacks=[model_checkpoint, reduce_lr, tb], max_q_size=10000)

At callbacks of above line.

I read documentation of fit_generation at keras official website and found that it works parllely with CPU and GPU. But I don't have GPU.
So, is this error is coming because of absence of GPU?

Thanks...

a question regarding customdatagenerator

Hi Raghavendra,

Thanks for sharing the code. I have a question regarding generator.py. Looks like CustomDataGenerator(Iterator): only contains two methods: init and next. You mentioned that this is modified Modified keras ImageDataGenerator, which seems to me includes a lot of other methods.

Or in specific, I am just trying to understand how does your CustomDataGenerator(Iterator) work?. Thanks.

Besides, in train.py, the train_generator and val_generator are setup in different manner, may I know the difference?

train_generator = CustomDataGenerator(X_train, y_train, transform, batch_size)

val_generator = CustomDataGenerator(X_val, y_val, lambda x, y: transform(x, y, augment=False), batch_size)

Getting no pixel values in mask.

Hi,

I changed the dimension ordering of keras to 'theano' with backend 'tensorflow', dropped all images in "input" folder and then ran your code. Code is executing without any error but I am not getting any pixel value (mask) for test set.

Even I ran your code after commenting line {65, 66} of file submission.py:
#if has_masks[i, 0] < 0.5:
#masks[i, 0] *= 0.

But still there is no pixel value (mask) for any image of test set. Please help me..

Thanks...

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.