Coder Social home page Coder Social logo

Comments (3)

terryyz avatar terryyz commented on May 25, 2024

I've modified dataset_RAD.py and test.py. But how should I interpret the textual meaning directly from preds in preds = model.classifier(features) without providing the answer?

Currently, I just got

tensor([[  4521.0752, -16908.3027, -28779.4844, -32143.1523, -29880.7891,
         -29126.6074, -26594.2578, -31120.8008, -33121.8359, -40312.3633,
         -16655.6953, -33896.0430, -37730.6797, -30265.6680, -33304.3125,
         -30089.0332, -40767.5938, -44966.4961, -26389.0898, -19556.2910,
         -19911.0488, -38344.4648, -29145.9512, -29589.6387, -34024.9727,
         -38474.7539, -37898.4297, -24648.2656, -29801.7969, -31162.5137,
         -30545.6074, -41221.7695, -19932.4863, -28403.5078, -37335.5117,
         -24761.4023, -37053.2031, -31145.4102, -30407.9961, -29190.5410,
         -25364.6211, -35120.1758, -38884.9414, -35124.9414, -30316.7520,
         -28352.2090, -29198.7383, -22669.2090, -32501.9746, -26896.6016,
         -36094.2695, -40190.1445, -35625.8516, -31822.3809, -26720.2402,
         -24276.2285, -36822.5820, -33120.4883, -35561.1367, -34376.5898,
         -34748.7500, -25393.2656, -23351.5586, -26898.6094, -33085.0273,
         -34122.3008, -33637.5430, -36250.1211, -22975.5488, -25337.3828,
         -34188.7812, -33388.1992, -31966.5605, -35786.0039, -40908.2539,
         -32773.7266, -19764.8594, -38571.9727, -38613.2266, -36693.8281,
         -30338.4648, -37878.6562,  -9487.0830, -28014.2637, -42571.8789,
         -32981.2148, -23938.3984, -30732.9492, -35457.6953, -28974.5527,
         -25880.1074, -31204.7070, -31952.1875, -27093.1543, -31259.8887,
         -36327.4570, -39023.8477, -29373.2773, -26115.9023, -29468.7188,
         -26441.2402, -32868.7070, -26605.3223, -29041.9336, -38904.8984,
         -32798.8477, -28913.7148, -31626.5762, -33361.2734, -36313.0234,
         -30281.4941, -34759.2812, -26223.3633, -26631.8867, -18811.6680,
         -32436.9258, -43109.5586, -29789.5996, -28507.3809, -29590.0234,
         -23937.9844, -26302.7754, -27150.3320, -30426.3906, -43362.6992,
         -35076.5039, -30915.9941, -33822.5781, -41970.4141, -41426.3516,
         -29909.7695, -30746.3789, -19521.9336, -29318.2676, -30632.7422,
         -19518.2949, -33788.7109, -39181.3477, -32803.0781, -33473.2266,
         -23458.2363, -30992.0605, -26685.5469, -27119.4883, -42361.4141,
         -30741.6211, -30650.0234, -36128.2656, -32855.3672, -35683.8164,
         -39200.2852, -26352.7520, -28038.2148, -29012.5625, -30997.6172,
         -30907.6016, -30600.2676, -33270.7422, -31144.0605, -26336.8887,
         -35493.5703, -31050.5020, -40282.9883, -32279.4707, -38294.1680,
         -36007.8984, -32742.2871, -37879.3750, -25347.7598, -33923.2188,
         -33191.2695, -46379.1523, -35888.2539, -36403.5312, -35664.2266,
         -34395.7656, -33008.6289, -28910.6992, -37579.9961, -27408.5977,
         -25585.3398, -31994.1230, -36511.7969, -42839.5664, -40809.8945,
         -30120.3438, -32838.0234, -29284.9492, -36762.2461, -35040.6484,
         -47163.1523, -30340.8184, -41462.3516, -41153.5742, -36343.2617,
         -37943.6133, -36992.1523, -41823.3906, -27396.8750, -39361.5547,
         -31346.9043, -28228.9492, -36528.4297, -30728.5781, -32062.7891,
         -36241.1250, -30762.1484, -36615.7148, -33705.3438, -37665.2930,
         -35951.0000, -41900.8203, -32433.1660, -30195.2246, -40893.3008,
         -34489.7656, -36537.5703, -31160.1484, -33432.5312, -31937.1094,
         -30136.7129, -30466.0059, -34391.8203, -29929.6836, -36636.4219,
         -39949.1289, -25049.2402, -30468.3496, -30136.8809, -25153.1816,
         -38460.9609, -36047.8789, -14656.9385, -28447.4609, -34130.1484,
         -36127.1875, -35284.5039, -34214.5820, -40977.8320, -31500.5312,
         -33442.8984, -29969.0352, -31587.2051, -39341.0000, -31838.3477,
         -29030.1895, -38915.9297, -34805.4805, -25492.7090, -20730.3047,
         -27129.9785, -24096.8145, -32002.6719, -36044.1641, -23445.7832,
         -39586.4961, -35516.8398, -33168.8320, -33936.3555, -32031.6758,
         -27331.3027, -34038.9648, -36551.1055, -40452.9414, -24655.7539,
         -29028.8496, -39835.4844, -43447.4961, -33429.6992, -30996.1543,
         -38606.2422, -35995.6016, -26618.9863, -37546.5078, -40229.4102,
         -30682.1172, -29902.8848, -20722.1309, -33147.6562, -34749.4297,
         -36049.2500, -43387.5859, -26963.4043, -29877.9258, -30579.0840,
         -38012.4062, -27725.7578, -35853.1445, -35984.9805, -39377.8359,
         -19605.1465, -31073.6211, -36436.3438, -29649.2598, -29903.8125,
         -30260.7793, -39975.7109, -34226.3750, -29056.3730, -31662.7812,
         -21754.8008, -42417.2305, -30563.4668, -30709.5117, -25246.2559,
         -31325.2715, -35714.9023, -29781.2754, -37937.7656, -34060.3164,
         -33708.2383, -34557.9102, -33515.7500, -31954.4727, -29288.6309,
         -23896.7539, -33609.2344, -23363.5977, -28598.8652, -31996.6992,
         -26910.2617, -33729.3789, -21067.5527, -30128.4473, -28728.0039,
         -37191.9297, -26148.0078, -29756.9785, -35322.8555, -45522.5547,
         -38719.7383, -35605.2422, -31709.5742, -30830.3145, -28904.2188,
         -19462.4688, -38335.2852, -31989.2051, -37839.6953, -29996.2734,
         -27992.1816, -38754.0938, -32442.3711, -33842.9336, -45785.2109,
         -35058.9766, -28760.9688, -37069.1719, -34315.7500, -23132.4902,
         -33233.9336, -38615.6758, -33958.6484, -31352.5410, -35155.8555,
         -40385.1680, -26134.6621, -37271.1016, -40974.3320, -39337.2344,
         -33010.8008, -32336.8145, -36317.8242, -36602.5391, -41401.4414,
         -39907.6445, -35867.2969, -38620.5469, -37397.9336, -34614.4727,
         -30271.4238, -38010.7539, -36206.9453, -25355.9062, -28583.2559,
         -32495.7832, -30027.2910, -33695.1562, -30506.8906, -31685.2363,
         -29792.9434, -31886.7578, -33519.0859, -27827.9961, -29310.2109,
         -33014.2344, -34385.5781, -36936.1406, -34099.0195, -26977.3320,
         -32249.9590, -29114.9785, -33824.3594, -29797.0352, -26685.4648,
         -28918.3828, -39180.7539, -34139.8555, -34448.1758, -34704.4766,
         -34754.8906, -29141.0664, -32848.8320, -26128.6289, -30977.6973,
         -35302.5195, -40055.0078, -28800.6035, -26545.2227, -33140.3438,
         -29986.3574, -38222.7461, -29280.0195, -34898.6367, -32491.1094,
         -34975.0352, -29128.9766, -27385.7402, -28131.8379, -32957.2227,
         -37279.3750, -30825.2500, -26931.0957, -26606.0234, -18716.0254,
         -29949.9082, -28234.0059, -32579.4941, -28689.7148, -44049.1211,
         -47953.2266, -37862.5977, -33837.5312, -37678.1055, -45743.6562,
         -41339.5391, -35858.6445, -33787.8164, -30198.0820, -26533.4551,
         -29614.5547, -32964.0117, -34474.6641, -36396.8750, -26232.8926,
         -40466.8438, -30807.3457, -24014.1113, -32843.7148, -27391.0332,
         -32426.5996, -34479.1875, -26711.1094, -31850.9102, -28501.2793,
         -24307.5879, -26812.0645, -41332.1836]], device='cuda:0')

from miccai19-medvqa.

terryyz avatar terryyz commented on May 25, 2024

Got IndexError: list index out of range from return dataloader.dataset.label2ans[idx.item()] by calling print(get_answer(features, dataloader))...

from miccai19-medvqa.

terryyz avatar terryyz commented on May 25, 2024

Solved. Should be preds instead of features.

from miccai19-medvqa.

Related Issues (11)

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.