Spaces:
Sleeping
Sleeping
latest
Browse files- app.py +2 -2
- install-on-remote.md +66 -0
- models/__pycache__/best_norm_ED.cpython-310.pyc +0 -0
app.py
CHANGED
|
@@ -86,7 +86,7 @@ for d in dirs:
|
|
| 86 |
font_path = models_dir + "/Ubuntu-Regular.ttf"
|
| 87 |
reader = easyocr.Reader(
|
| 88 |
['en'],
|
| 89 |
-
gpu=
|
| 90 |
recog_network='best_norm_ED',
|
| 91 |
detect_network="craft",
|
| 92 |
user_network_directory=models_dir,
|
|
@@ -118,7 +118,7 @@ col1, col2 = st.columns(2)
|
|
| 118 |
# return image, result
|
| 119 |
import time
|
| 120 |
|
| 121 |
-
max_page =
|
| 122 |
def recognize_page_image(image):
|
| 123 |
start = time.time()
|
| 124 |
result = [[0,"Sample 1"],[1,"Sample 2"]]
|
|
|
|
| 86 |
font_path = models_dir + "/Ubuntu-Regular.ttf"
|
| 87 |
reader = easyocr.Reader(
|
| 88 |
['en'],
|
| 89 |
+
gpu=False,
|
| 90 |
recog_network='best_norm_ED',
|
| 91 |
detect_network="craft",
|
| 92 |
user_network_directory=models_dir,
|
|
|
|
| 118 |
# return image, result
|
| 119 |
import time
|
| 120 |
|
| 121 |
+
max_page = 100
|
| 122 |
def recognize_page_image(image):
|
| 123 |
start = time.time()
|
| 124 |
result = [[0,"Sample 1"],[1,"Sample 2"]]
|
install-on-remote.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
```bash
|
| 3 |
+
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh"
|
| 4 |
+
bash Miniforge3-Linux-x86_64.sh
|
| 5 |
+
```
|
| 6 |
+
scp -r ./BookRecognitionKz vps4@89.250.84.146:~/dsml/BookRecognitionKz -p 1025
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
Result:
|
| 10 |
+
|
| 11 |
+
Transaction finished
|
| 12 |
+
|
| 13 |
+
To activate this environment, use:
|
| 14 |
+
|
| 15 |
+
micromamba activate /home/vps4/miniforge3
|
| 16 |
+
|
| 17 |
+
Or to execute a single command in this environment, use:
|
| 18 |
+
|
| 19 |
+
micromamba run -p /home/vps4/miniforge3 mycommand
|
| 20 |
+
|
| 21 |
+
installation finished.
|
| 22 |
+
Do you wish to update your shell profile to automatically initialize conda?
|
| 23 |
+
This will activate conda on startup and change the command prompt when activated.
|
| 24 |
+
If you'd prefer that conda's base environment not be activated on startup,
|
| 25 |
+
run the following command when conda is activated:
|
| 26 |
+
|
| 27 |
+
conda config --set auto_activate_base false
|
| 28 |
+
|
| 29 |
+
You can undo this by running `conda init --reverse $SHELL`? [yes|no]
|
| 30 |
+
[no] >>> yes
|
| 31 |
+
no change /home/vps4/miniforge3/condabin/conda
|
| 32 |
+
no change /home/vps4/miniforge3/bin/conda
|
| 33 |
+
no change /home/vps4/miniforge3/bin/conda-env
|
| 34 |
+
no change /home/vps4/miniforge3/bin/activate
|
| 35 |
+
no change /home/vps4/miniforge3/bin/deactivate
|
| 36 |
+
no change /home/vps4/miniforge3/etc/profile.d/conda.sh
|
| 37 |
+
no change /home/vps4/miniforge3/etc/fish/conf.d/conda.fish
|
| 38 |
+
no change /home/vps4/miniforge3/shell/condabin/Conda.psm1
|
| 39 |
+
no change /home/vps4/miniforge3/shell/condabin/conda-hook.ps1
|
| 40 |
+
no change /home/vps4/miniforge3/lib/python3.10/site-packages/xontrib/conda.xsh
|
| 41 |
+
no change /home/vps4/miniforge3/etc/profile.d/conda.csh
|
| 42 |
+
modified /home/vps4/.bashrc
|
| 43 |
+
|
| 44 |
+
==> For changes to take effect, close and re-open your current shell. <==
|
| 45 |
+
|
| 46 |
+
/home/vps4/miniforge3/lib/python3.10/site-packages/mamba/mamba.py:889: DeprecationWarning: conda.cli.main.generate_parser is deprecated and will be removed in 24.9. Use `conda.cli.conda_argparse.generate_parser` instead.
|
| 47 |
+
p = generate_parser()
|
| 48 |
+
no change /home/vps4/miniforge3/condabin/conda
|
| 49 |
+
no change /home/vps4/miniforge3/bin/conda
|
| 50 |
+
no change /home/vps4/miniforge3/bin/conda-env
|
| 51 |
+
no change /home/vps4/miniforge3/bin/activate
|
| 52 |
+
no change /home/vps4/miniforge3/bin/deactivate
|
| 53 |
+
no change /home/vps4/miniforge3/etc/profile.d/conda.sh
|
| 54 |
+
no change /home/vps4/miniforge3/etc/fish/conf.d/conda.fish
|
| 55 |
+
no change /home/vps4/miniforge3/shell/condabin/Conda.psm1
|
| 56 |
+
no change /home/vps4/miniforge3/shell/condabin/conda-hook.ps1
|
| 57 |
+
no change /home/vps4/miniforge3/lib/python3.10/site-packages/xontrib/conda.xsh
|
| 58 |
+
no change /home/vps4/miniforge3/etc/profile.d/conda.csh
|
| 59 |
+
no change /home/vps4/.bashrc
|
| 60 |
+
No action taken.
|
| 61 |
+
Added mamba to /home/vps4/.bashrc
|
| 62 |
+
|
| 63 |
+
==> For changes to take effect, close and re-open your current shell. <==
|
| 64 |
+
|
| 65 |
+
Thank you for installing Miniforge3!
|
| 66 |
+
[/home/vps4/miniforge3]
|
models/__pycache__/best_norm_ED.cpython-310.pyc
CHANGED
|
Binary files a/models/__pycache__/best_norm_ED.cpython-310.pyc and b/models/__pycache__/best_norm_ED.cpython-310.pyc differ
|
|
|