djl
djl copied to clipboard
An Engine-Agnostic Deep Learning Framework in Java
关于打包
## 怎么整体打包 在源码中大量使用了native方法,如果需要将项目打包放到另一台电脑上使用,怎么确定需要拷贝哪些动态链接库.然后那一台电脑需要安装相应的Python环境和Python依赖库吗?需要安装cuda环境吗
## Description 1. The output of YOLOv5 does not match/inaccurate if image is pre-processed using Python OpenCV instead of DJL.  **Pre-processing** ````python img = cv2.imread("bus.jpg", cv2.IMREAD_UNCHANGED) img1 = cv2.resize(...
## Description I ran the face_detect example following the docs, got an unexpected result. ### Expected Behavior got a result as example docs shown. ### Error Message got a result...
## Description When running djl with javafx on linux x64 (archlinux) using the cpu flavor, I get the following error when I try to get embeddings twice from a model....
## Description NDArray#get fails with pick index for multidimensional arrays: Executing code: ``` NDArray target = manager.arange(6).reshape(3, 2); NDArray index = manager.create(new long[] {0, 2}); NDArray result = target.get(new NDIndex().addPickDim(index));...
## Description Hello, there are a lot of functions from torch package not implemented (wrapped) in DJL. For example batch matrix-matrix product operation: TORCH.BMM It's looks like it should be...
## Description I am trying to combine the [MNIST tutorial](https://github.com/deepjavalibrary/djl/blob/5ab2685b01b13ccceb99a0ca1667112b2b68e4f3/jupyter/tutorial/02_train_your_first_model.ipynb) with the directions in #2037 to train a model on the MPS pytorch backend. I have gotten the [MPSTest](https://github.com/deepjavalibrary/djl/blob/1d0bc7723bc36caa0ca4323acb841f6e10a240cf/engines/pytorch/pytorch-engine/src/test/java/ai/djl/pytorch/integration/MpsTest.java) in...
## 错误描述 加载模型报错 ai.djl.engine.EngineException ### 错误信息 Exception in thread "main" ai.djl.engine.EngineException: Unknown type name 'transformers.models.bert.modeling_bert.BertForSequenceClassification': transformers.models.bert.modeling_bert.BertForSequenceClassification at ai.djl.pytorch.jni.PyTorchLibrary.moduleLoad(Native Method) ## 代码 System.setProperty("DJL_CACHE_DIR", "E://Python/cache/"); Path modelDir = Paths.get("./modules/codegen-350M-mono/codegen-350M-mono.pt"); Criteria criteria =...
## Description https://docs.djl.ai/master/docs/development/profiler.html I follow this page and set useCuda=true but I cannot see any cuda events in the profiler result  ### Expected Behavior CUDA events ## How to...