Code Monkey home page Code Monkey logo

grad_metadata's Introduction

Grad_metadata

Env Preparing

Using VSCode Dev Contariners

Tutorial

Python 3 -> Additional Options -> 3.11-bullseye -> ZSH Plugins (Last One) -> Trust @devcontainers-contrib -> Keep Defaults Setup venv:

python3.11 -m venv .venv
source .venv/bin/activate

Using VSCode WSL2: Ubuntu 22.04.3 LTS

Tutorial

Install Ubuntu 22.04.3 LTS -> Update Ubuntu Packages -> Install Python 3.11 -> Open Project in WSL2 Using VSCode

Install Python 3.11

sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.11
sudo apt install python3.11-dev

Setup venv:

sudo apt install python3.11-venv
python3.11 -m venv .venv
source .venv/bin/activate

Install requirements:

pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install -r /root/Grad_metadata_project/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install -r /root/Grad_metadata_project/requirements.txt --upgrade
pip freeze > requirements_freeze.txt

Install GUI (Graphical User Interface) toolkit (optional)

sudo apt update 
sudo apt install python3-tk

Install Cuda (optional):

sudo apt install nvidia-cuda-toolkit

Auto Build

The auto build will be triggered by pushing any tag named like release-v$version. For instance, push a tag named as v0.0.1 will build a docker image of 0.0.1 version.

#list existing tags
git tag
#creat a new tag
git tag v0.0.1
#push this tag to origin
git push origin v0.0.1

RUN

nohup .venv/bin/python3.11 src/calculation.py > /dev/null 2>&1 &

nohup .venv/bin/python3.11 src/calculation_0.py > /dev/null 2>&1 &
nohup .venv/bin/python3.11 src/calculation_1.py > /dev/null 2>&1 &
nohup .venv/bin/python3.11 src/calculation_2.py > /dev/null 2>&1 &
nohup .venv/bin/python3.11 src/calculation_3.py > /dev/null 2>&1 &
nohup .venv/bin/python3.11 src/calculation_4.py > /dev/null 2>&1 &
nohup .venv/bin/python3.11 src/calculation_5.py > /dev/null 2>&1 &

nohup .venv/bin/python3.11 src/back_calculation_0.py > /dev/null 2>&1 &
nohup .venv/bin/python3.11 src/back_calculation_1.py > /dev/null 2>&1 &
nohup .venv/bin/python3.11 src/back_calculation_2.py > /dev/null 2>&1 &
nohup .venv/bin/python3.11 src/back_calculation_3.py > /dev/null 2>&1 &
nohup .venv/bin/python3.11 src/back_calculation_4.py > /dev/null 2>&1 &
nohup .venv/bin/python3.11 src/back_calculation_5.py > /dev/null 2>&1 &

nohup .venv/bin/python3.11 src/analysis_all.py > log.txt 2>&1 &

nohup .venv/bin/python3.11 src/analysis_large_remove_refs_id.py > log_large.txt 2>&1 &
nohup .venv/bin/python3.11 src/analysis_large_all.py > log_large_all.txt 2>&1 &


sudo pkill -f python3.11

grad_metadata's People

Contributors

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