File size: 1,043 Bytes
14034f0
 
5ebeb73
 
 
 
 
 
 
27476a6
9345fb4
 
14034f0
 
 
 
 
 
9345fb4
14034f0
 
 
 
 
 
 
9345fb4
 
1dd7dc2
 
 
 
9345fb4
5ebeb73
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.PHONY: install

venv:
	python -m venv venv


activate: 
	source ./venv/bin/activate

install: local_install install_openmmlab

docker_install: local_install install_openmmlab_with_mim

local_install:
	@echo "Running requirements install"
	pip install --upgrade pip
	pip install -r requirements.txt

install_openmmlab_with_mim:
	@echo "Running Openmmlab requirements install"
	pip install -U openmim
	mim install mmengine
	mim install mmcv
	mim install mmdet
	mim install mmocr

install_openmmlab:
	@echo "Running Openmmlab requirements install"
	pip install mmengine==0.7.4
	pip install mmcv==2.0.1
	pip install mmdet==3.0.0
	pip install mmocr==1.0.0

build:
	pip install -e .
	gradio app.py

# clean_for_actions:
# 	git lfs prune
# 	git filter-branch --force --index-filter "git rm --cached --ignore-unmatch helper/text/videos/eating_spaghetti.mp4" --prune-empty --tag-name-filter cat -- --all
# 	git push --force origin main

# add_space:
#	git remote add demo https://huggingface.co/spaces/Riksarkivet/htr_demo
#	git push --force demo main