Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fine Tuning TransLab #9

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

true-real-michael
Copy link
Collaborator

@true-real-michael true-real-michael commented Apr 17, 2023

This branch is under construction and only has basic fine-tuning logic

Currently fine tuning requires running without a docker image

  1. Create directories ./datasets/Trans10K/images and ./datasets/Trans10K/masks and place images and masks to the corresponding directories
  2. Install requirements:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install gdown thop
gdown 1shxxcNHmpu8TmLosT1qmFnojqwQzM22e
cp -r ../common .
  1. Run the fine-tuner:
python fine_tuner.py --config-file configs/trans10K/translab_bs4.yaml TRAIN.MODEL_SAVE_DIR workdirs/translab_bs4 TRAIN.PRETRAINED_MODEL_PATH 16.pth

For some reason, it does not work on my my machine with a discrete graphics card, and it works on a machine with a mac m1 processor.

@true-real-michael true-real-michael marked this pull request as draft April 17, 2023 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant