Giter Club home page Giter Club logo

Comments (4)

Michael-Hsu avatar Michael-Hsu commented on August 11, 2024

https://github.com/ne7ermore/torch-light/tree/master/Image-Cap
Hi @ne7ermore,
I found this code very educational. Thank you. But, I do not have a GPU. When I run train.py on a CPU, the estimated time of training is about 3-4 weeks. So, could you please share the trained model. It would be of great help. My email id - [email protected].
Thank You

Hello, did you get the trained model? I also have the same problem. If you do get it, could you please share the trained model with me ? My email is [email protected]. Thanks a lot.

from torch-light.

Michael-Hsu avatar Michael-Hsu commented on August 11, 2024

@ne7ermore
Thanks for your sharing code for Image Cap. I find there might be some bug in the train.py. There isn't definition of "speak" in model.py. Or I misunderstand, could you please give me some advice?

def eval():
actor.eval()
eval_score = .0
for imgs, labels in tqdm(validation_data,
mininterval=1,
desc="Actor-Critic Eval",
leave=False):
enc = actor.encode(imgs)

    hidden = actor.feed_enc(enc)
    ### Bug to fix??
    words, _ = actor.speak(hidden)

    scores = rouge_l(words, labels)
    scores = scores.sum()

    eval_score += scores.data

eval_score = eval_score[0] / validation_data.sents_size

return eval_score

from torch-light.

fireholder avatar fireholder commented on August 11, 2024

I met the same issue as you, have you solved it ? @Michael-Hsu

from torch-light.

Michael-Hsu avatar Michael-Hsu commented on August 11, 2024

from torch-light.

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.