Git Product home page Git Product logo

kaggle-rsna-intracranial-hemorrhage's People

Contributors

appian42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kaggle-rsna-intracranial-hemorrhage's Issues

tqdm stuck...no response,wait for your help ,thanks

total 16
-rw-r--r-- 1 root root 2934 Oct 19 02:37 README.md
drwxr-xr-x 2 root root 4096 Oct 19 02:37 bin
drwxr-xr-x 2 root root 4096 Oct 19 02:37 conf
drwxr-xr-x 6 root root 4096 Oct 19 02:37 src
['/kaggle/working/RSNA666/src/preprocess/dicom_to_dataframe.py', '--input', '/kaggle/input/rsna-intracranial-hemorrhage-detection/stage_1_train.csv', '--output', '/kaggle/input/train_raw.pkl', '--imgdir', '/kaggle/input/rsna-intracranial-hemorrhage-detection/stage_1_train_images']
read /kaggle/input/rsna-intracranial-hemorrhage-detection/stage_1_train.csv (4045572 records)
100%|█████████████████████████████| 4045572/4045572 [00:14<00:00, 278177.31it/s]
removed ID_6431af929
making records...
args.n_pool= 4
------1--------
0%| | 0/674257 [00:00<?, ?it/s]

I test your code on Kagggle.
wait for your help,Thanks

Is this ‘if’ written in the right order?

Thanks a lot for your sharing. When I read the code, I find that in src/preprocess/create_dataset.py, the add_adjacent_labels perhaps works weird.

            if j == 0:
                left = labels[j-1]
            else:
                left = ''

Doesn't it should be

            if j == 0:
                left = ''
            else:
                left = labels[j-1]
def add_adjacent_labels(df):
    df = df.sort_values('PositionOrd')

    records = []
    print('making adjacent labels...')
    for index,group in tqdm(df.groupby('StudyInstanceUID')):

        labels = list(group.labels)
        for j,id in enumerate(group.ID):
            if j == 0:
                left = labels[j-1]
            else:
                left = ''
            if j+1 == len(labels):
                right = ''
            else:
                right = labels[j+1]

            records.append({
                'LeftLabel': left,
                'RightLabel': right,
                'ID': id,
            })
    return pd.merge(df, pd.DataFrame(records), on='ID')

Looking forward for your response!
Thanks again for your sharing!!

Is nn.AdaptiveAvgPool2d(1) too small?

Hi, Appian. Thanks for sharing the code. I have a question about model.avg_pool. You use nn.AdaptiveAvgPool2d(1) to make the feature map become 1x1, is that too small for the training process? I think that it may lose some information or details which are important to the classification task. Have you ever tried other size, for example 5x5 or 7x7? Thanks for answering.

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.