Giter Club home page Giter Club logo

ai_cup's Introduction

How to run the program

  • Please first read the requirement.txt, install the required packages, and read the ArgumentParser for each files.
  • In order to run main.py, you are required to modify the PyTorch source code so that the vision transformer can recieve inputs that have more than 3 channels (use the diff command to see the modification of modification/modified_vision_transformer and modification/ori_vision_transformer), where the original path of the source code is https://github.com/pytorch/vision/blob/main/torchvision/models/vision_transformer.py.
$ python main.py # 棋力模仿
$ python result_collector.py -t=<path_to_dataset *.csv> -m=<path_to_your_model> -o=<path_to_store_the_result> 


$ python train_blender.py # 棋風辨識
$ python blending_collector.py -t=<path_to_dataset *.csv> -m=<path_to_your_model> --output=<path_to_store_the_result> 

File discriptions

  • baseline_model.py: implements the ResNet for blending
  • blender.py: the models and training pipeline of blending
  • blending_collector.py: collects the result for submission
  • GoDataset: classes and functions for reading data and buildindg Pytorch Dataset
  • GoEnv: the game of Go leveraging other low-level api
  • gogame.py: originally from https://github.com/aigagror/GymGo (with modification), the low-level api for the game of Go
  • GoParser: parse the csv files
  • goutils.py: a lots of helper functions, such as formatting the moves, so that differents module can communicate.
  • govars.py: global variables
  • main.py: run and initialize models for task 1
  • result_collector.py: collects the result for submission
  • state_utils.py:originally from https://github.com/aigagror/GymGo (with modification), the low-level api to calculate the state of Go
  • train_blender.py: start the training of blender.py
  • trainer.py: the wrapper for training ViT for task 1.

ai_cup's People

Contributors

b06b01073 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.