Giter Club home page Giter Club logo

minecraft-biome-detection's Introduction

Minecraft Biome Detection w/ Transfer Learning and Fine-tuning

By: Chris Vaisnor

System Setup

  • OS: Ubuntu 22.04.2 LTS
  • Python Version: 3.10.12
  • PyTorch Version: 2.1.0+cu121

Repository Structure

  • biome_videos/: Contains the raw videos for the dataset
Original Video Structure
- /biome_videos
    - /category1
        - video.mkv
    - /cateogry2
        - video.mkv
    - ....
  • This format should work if multiple videos are present for each category.
  • preprocessing.py: Script to convert videos to frames and store them in the following structure
Frame Storage Structure
- /frames
    - train
        - /category1
            - frame0.jpg
            ....
            - frameN.jpg
        - /category2
        - ....
    - test
        - /category1
            - frame0.jpg
            ....
            - frameN.jpg
        - /category2
        - ....

Example Usage:

python preprocessing.py -dd biome_videos -fd frames -nf 200

Frames are uniformly sampled from each video to create the dataset. The dataset is split into 80% training and 20% testing. Once the frames are stored in the correct structure, you can use main.ipynb to walk through the process of training and testing the model.

  • Various ResNet models can be initialized with pretrained weights from the ImageNet dataset.

Transfer learning and fine-tuning is used to train the model on 10 distinct Minecraft biomes. The dataset consists of 10 classes:

  • Desert
  • Birch Forest
  • Jungle
  • Crimson Forest
  • Dark Forest
  • End Midlands
  • Savanna
  • Snowy Taiga
  • Swamp
  • Plains.

minecraft-biome-detection's People

Contributors

cvaisnor avatar

Watchers

 avatar

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.