How to use the minerl.data.download function in minerl

To help you get started, we’ve selected a few minerl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github minerllabs / baselines / sample.py View on Github external
def download_data():
    directory = input("Where would you like to download MineRL-v0?\n")
    if input("(y)es to confirm: ").lower() in ['yes', 'y', 'yeah', 'sure', 'please']:
        minerl.data.download(directory=directory)
github minerllabs / competition_submission_starter_template / utility / verify_or_download_data.py View on Github external
should_download = True
    try:
        data = minerl.data.make('MineRLObtainDiamondVectorObf-v0', data_dir=data_dir)
        assert len(data._get_all_valid_recordings(data.data_dir)) > 0
        should_download = False
    except FileNotFoundError:
        print("The data directory does not exist in your submission, are you running this script from"
              " the root of the repository? data_dir={}".format(data_dir))
    except RuntimeError:
        print("The data contained in your data directory is out of date! data_dir={}".format(data_dir))
    except AssertionError:
        print("No MineRLObtainDiamond-v0 data found. Did the data really download correctly?" )

    if should_download:
        print("Attempting to download the dataset...")
        minerl.data.download(data_dir)

    print("Data verified! A+!")

minerl

MineRL environment and data loader for reinforcement learning from human demonstration in Minecraft

MIT
Latest version published 3 years ago

Package Health Score

58 / 100
Full package analysis

Popular minerl functions