Giter Site home page Giter Site logo

hpn's Issues

Some qusetions about the implementation of the sematic ranking loss in this code

Q1:

I find the elements in nns and others is useless in the triplets collection
`

for i in xrange(wtvv.shape[0]):

for j in xrange(len(nns[i])):      
 
    for k in xrange(len(others[i])):     
          
        triplets.append([i,j,i,k])        

triplets = np.array(triplets).astype(int)

`

Q2:
The implementation of prototype_loss_sem is different from L_{PI} in the paper. Is this a trick? Could you explain how it works?

Missing argument when computing prototypes with word embeddings

Hi, thanks for the nice repo and very interesting paper!

I am trying to recompute the prototypes on CIFAR100 with privileged information, using the following command:
python prototypes.py -c 100 -d 50 -r prototypes/sgd-sem/ -w wtv/cifar100_wtvvectors.npy

but I get this error:
Traceback (most recent call last): File "prototypes.py", line 95, in <module> nns.append(sorder[:args.nn]) AttributeError: 'Namespace' object has no attribute 'nn'

And it seems indeed that argument nn is not defined anywhere...

.

Hi!Can you post pre-trained code on github? The download link only contains npy files. Thank you.

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.