Skip to content
#

pytorch-implmention

Here are 168 public repositories matching this topic...

omg777
omg777 commented Apr 26, 2018

Thanks for your tutorial from scratch. It helps me a lot.
In article part 3, there are some codes you wrote. I copy that codes but some error for me.

model = Darknet("cfg/yolov3.cfg")
inp = get_test_input()
pred = model(inp)
print (pred)

TypeError: forward() missing 1 required positional argument: 'CUDA'

and I want to ask you that training module is the only left work

TomasAndersonFang
TomasAndersonFang commented Mar 24, 2020

I add a function(according the code in the tutorial4) to calculate the bleu score, but i get the vey low score(0.09), could you tell me why?
This is code to calculate bleu:

def translate_sentence(sentence, src_field, trg_field, model, device, max_len = 50):
    
    model.eval()
        
    if isinstance(sentence, str):
        nlp = spacy.load('de')
        tokens = [token.te
atulkum
atulkum commented Nov 30, 2018

Need help for retraining and cross validation and see if the ROUGE score matches exactly (or better) with the numbers reported in the paper.
I just train for 500k iteration (with batch size 8) with pointer generation enabled + coverage loss disabled and next 100k iteration (with batch size 8) with pointer generation enabled + coverage loss enabled.

It would be great if someone can help re-r

Improve this page

Add a description, image, and links to the pytorch-implmention topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the pytorch-implmention topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.