Skip to content

Pretrained weight is really bad? #17

@ratthachat

Description

@ratthachat

Hi, thanks for the amazing repo!

I download the trained weight here
https://drive.google.com/file/d/1RRwhSMUrpBBRyAsfHLPGt1rlYFoiuus2/view?usp=sharing
mentioned in README.

And then load statedict into Mario network successfully.

file_id = '1RRwhSMUrpBBRyAsfHLPGt1rlYFoiuus2'
url = f'https://drive.google.com/uc?id={file_id}'
!gdown {url} # I run in Colab

ckp = torch.load('./trained_mario.chkpt', map_location=('cuda' if use_cuda else 'cpu'))
mario.exploration_rate = ckp.get('exploration_rate')
mario.net.load_state_dict(ckp.get('model'))
<All keys matched successfully>

However, when trying to play using this trained model, the mario always dies very fast at the beginning (e.g. 40 frames)
Is the above path still a correct pretrained path?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions