-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes
More file actions
12 lines (10 loc) · 684 Bytes
/
notes
File metadata and controls
12 lines (10 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
pip install flask_cors
pip install "dataflow @ git+https://github.com/tensorpack/dataflow.git"
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
pip install deepdoctection[pt]
### if RuntimeError: Could not infer dtype of numpy.float32
---->"D:\CIS\cis - 2502\Python-Backend\venv\lib\site-packages\deepdoctection\extern\d2detect.py", line 88, in d2_predict_image
image = torch.as_tensor(resized_img.astype("float32").transpose(2, 0, 1))
-------> change<--------
image = torch.as_tensor(resized_img.astype("float64").transpose(2, 0, 1))