text:
DBT Features List

Implemented features for DBT:

Showing DBT queries on UI
DBT node/table lineage
DBT column level lineage (only possible if query is parsable by lineage parser)
DBT Tests and test results
Adding owner/team from DBT into OpenMetadata
Ingesting table and column level tags from DBT into OpenMetadata
DBT descriptions (toggle is added if descriptions should be overridden from DBT)
DBT Tag Category name
Handle multiple DBT projects for a single service

To be considered Feature List:

Exposures (example in metabase) - Exposures make it possible to define and describe a downstream use of your dbt project, such as in a dashboard, application, or data science pipeline
DBT Lineage when there are intermediate not-materialized models
Add support for test_suite_name meta defined in model schemal.yaml file

Issues/Bug List:

[x] DBT errors if tests are present in manifest but run_results file is not passed
[x] DBT - Issue while adding descriptions

https://github.com/open-metadata/OpenMetadata/issues/9011

column level lineage for DBT projects with macros https://github.com/open-metadata/OpenMetadata/issues/9011
tier sync https://github.com/open-metadata/OpenMetadata/issues/9031
arbitrary key/value sync as extra properties https://github.com/open-metadata/OpenMetadata/issues/9637

https://github.com/open-metadata/OpenMetadata/issues/10199
https://github.com/open-metadata/OpenMetadata/issues/10184
https://github.com/open-metadata/OpenMetadata/issues/8561

@OnkarVO7 can you update the ticket with what are we solved so far and what is remaining. Looking at the issue I am not able to tell if shipped some of these already

@harshach the list mentioned under Implemented section here are resolved. Rest others are remaining

Show dbt fields in the UI https://github.com/open-metadata/OpenMetadata/issues/10502

Synchronizing back to metadata to dbt would be crucial as we import metadata from dbt, I suppose.
https://www.castordoc.com/blog/now-live-sync-back-to-dbt
https://openmetadata.slack.com/archives/C02DZK3QH8Q/p1678973195319499

Background:
English is not my native language. So, my level of English may lead to communication barriers. If there are any unclear expressions, please let me know.
We are only at the documentation stage with OMD, so we cannot provide recommendations from a design perspective, but I can give you my requirements:

Metric sharing.
Basic metric search functionality, similar to that of a data table, where metrics can be tagged and associated with a glossary. Additionally, descriptions of the metric's dimensions, statistical granularity, business limitations, and derived relationships between metrics should be provided to allow users to perceive subtle differences between different metrics.

Metric query agent.
Based on managing the physical tables on which the metrics depend, as well as their dimensions and granularity, the agent can generate query SQL based on user parameters and submit the SQL to the data warehouse to obtain data samples.

It would be best to implement the aforementioned requirements using dbt as the data source.

Reference materials:
https://docs.transform.co/docs/metricflow/metricflow-tutorial
https://docs.getdbt.com/docs/build/metrics

Hi, guys.  i updated new tag in dbt and ingest it into openmetadata again.
but i found that old tag still remained. is it possible to add this feature in enhancement(remove the old metadata automatically)?

Closing the issue and opening separate issues for the remaining features
https://github.com/open-metadata/OpenMetadata/issues/12909
https://github.com/open-metadata/OpenMetadata/issues/12910
https://github.com/open-metadata/OpenMetadata/issues/12911

authors: OnkarVO7 geoHeil harshach heroWang quguangyu0321 yu-iskw

repo: open-metadata/OpenMetadata


text:
Use lombok Getter to simplify openmetadata-ui/*.java files

Describe your changes :

See #2972

Type of change :

[ ] Bug fix
[x] Improvement
[ ] New feature
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation

Frontend Preview (Screenshots) :
For frontend related change, please link screenshots of your changes preview! Optional for backend related changes.

Checklist:

[x] I have read the CONTRIBUTING document.
[x] I have performed a self-review of my own.
[x] I have tagged my reviewers below.
[ ] I have commented on my code, particularly in hard-to-understand areas.
[x] My changes generate no new warnings.
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] All new and existing tests passed.

Reviewers

Frontend: @shahsank3t, @darth-coder00, @Sachin-chaurasiya

[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ openmetadata-ui ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 43 source files to /Users/matt/Documents/projects/open-metadata/OpenMetadata/openmetadata-ui/target/test-classes
[WARNING] /Users/matt/Documents/projects/open-metadata/OpenMetadata/openmetadata-ui/src/test/java/org/openmetadata/catalog/selenium/events/Events.java: /Users/matt/Documents/projects/open-metadata/OpenMetadata/openmetadata-ui/src/test/java/org/openmetadata/catalog/selenium/events/Events.java uses or overrides a deprecated API.
[WARNING] /Users/matt/Documents/projects/open-metadata/OpenMetadata/openmetadata-ui/src/test/java/org/openmetadata/catalog/selenium/events/Events.java: Recompile with -Xlint:deprecation for details.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  10.639 s
[INFO] Finished at: 2022-02-24T03:14:48-08:00
[INFO] ------------------------------------------------------------------------

source: gharchive/pull-request

license_type: permissive

license_source: github-api


text:
can someone please provide a conda environment that works

Can someone please provide a conda environment via conda list that works?
I am using the following conda environment and run into the error below when I execute
python setup.py develop
# packages in environment at /home/mhahner/scratch/apps/anaconda3/envs/pcdet:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                      1_llvm    conda-forge
blas                      1.0                         mkl
bzip2                     1.0.8                h516909a_2    conda-forge
ca-certificates           2020.1.1                      0
certifi                   2020.4.5.1               py38_0
cmake                     3.17.0               h28c56e5_0    conda-forge
cudatoolkit               10.1.243             h6bb024c_0
cudatoolkit-dev           10.1.243             h516909a_3    conda-forge
cudnn                     7.6.5                cuda10.1_0
cycler                    0.10.0                   pypi_0    pypi
decorator                 4.4.2                    pypi_0    pypi
easydict                  1.9                      pypi_0    pypi
expat                     2.2.9                he1b5a44_2    conda-forge
future                    0.18.2                   pypi_0    pypi
imagecodecs               2020.2.18                pypi_0    pypi
imageio                   2.8.0                    pypi_0    pypi
kiwisolver                1.2.0                    pypi_0    pypi
krb5                      1.17.1               h2fd8d38_0    conda-forge
ld_impl_linux-64          2.34                 h53a641e_0    conda-forge
libcurl                   7.69.1               hf7181ac_0    conda-forge
libedit                   3.1.20170329      hf8c457e_1001    conda-forge
libffi                    3.2.1             he1b5a44_1007    conda-forge
libgcc-ng                 9.2.0                h24d8f2e_2    conda-forge
libgfortran-ng            7.3.0                hdf63c60_5    conda-forge
libssh2                   1.8.2                h22169c7_2    conda-forge
libstdcxx-ng              9.2.0                hdf63c60_2    conda-forge
libuv                     1.34.0               h516909a_0    conda-forge
llvm-openmp               10.0.0               hc9558a2_0    conda-forge
llvmlite                  0.32.1                   pypi_0    pypi
matplotlib                3.2.1                    pypi_0    pypi
mkl                       2019.5                      281    conda-forge
mkl-service               2.3.0            py38h516909a_0    conda-forge
mkl_fft                   1.1.0            py38hc1659b7_1    conda-forge
mkl_random                1.1.0            py38h962f231_0
ncurses                   6.1               hf484d3e_1002    conda-forge
networkx                  2.4                      pypi_0    pypi
ninja                     1.10.0               hc9558a2_0    conda-forge
numba                     0.49.1                   pypi_0    pypi
numpy                     1.18.1           py38h4f9e942_0
numpy-base                1.18.1           py38hde5b4d6_1
openssl                   1.1.1g               h7b6447c_0
pillow                    7.1.2                    pypi_0    pypi
pip                       20.1               pyh9f0ad1d_0    conda-forge
protobuf                  3.11.3                   pypi_0    pypi
pyparsing                 2.4.7                    pypi_0    pypi
python                    3.8.2           he5300dc_7_cpython    conda-forge
python-dateutil           2.8.1                    pypi_0    pypi
python_abi                3.8                      1_cp38    conda-forge
pytorch                   1.5.0           py3.8_cuda10.1.243_cudnn7.6.3_0    pytorch
pywavelets                1.1.1                    pypi_0    pypi
pyyaml                    5.3.1                    pypi_0    pypi
readline                  8.0                  hf8c457e_0    conda-forge
rhash                     1.3.6             h14c3975_1001    conda-forge
scikit-image              0.17.2                   pypi_0    pypi
scipy                     1.4.1                    pypi_0    pypi
setuptools                46.2.0           py38h32f6830_0    conda-forge
six                       1.14.0                     py_1    conda-forge
spconv                    1.1                      pypi_0    pypi
sqlite                    3.30.1               hcee41ef_0    conda-forge
tensorboardx              2.0                      pypi_0    pypi
tifffile                  2020.5.11                pypi_0    pypi
tk                        8.6.10               hed695b0_0    conda-forge
tqdm                      4.46.0                   pypi_0    pypi
wheel                     0.34.2                     py_1    conda-forge
xz                        5.2.5                h516909a_0    conda-forge
zlib                      1.2.11            h516909a_1006    conda-forge

running develop
running egg_info
writing pcdet.egg-info/PKG-INFO
writing dependency_links to pcdet.egg-info/dependency_links.txt
writing requirements to pcdet.egg-info/requires.txt
writing top-level names to pcdet.egg-info/top_level.txt
reading manifest file 'pcdet.egg-info/SOURCES.txt'
writing manifest file 'pcdet.egg-info/SOURCES.txt'
running build_ext
building 'pcdet.ops.iou3d_nms.iou3d_nms_cuda' extension
Emitting ninja build file /scratch_net/hox/mhahner/repositories/PCDet/build/temp.linux-x86_64-3.8/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/2] /home/mhahner/scratch/apps/anaconda3/envs/pcdet/bin/nvcc -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/TH -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/THC -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/include -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/include/python3.8 -c -c /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms_kernel.cu -o /scratch_net/hox/mhahner/repositories/PCDet/build/temp.linux-x86_64-3.8/pcdet/ops/iou3d_nms/src/iou3d_nms_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=iou3d_nms_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_35,code=sm_35 -std=c++14
[2/2] c++ -MMD -MF /scratch_net/hox/mhahner/repositories/PCDet/build/temp.linux-x86_64-3.8/pcdet/ops/iou3d_nms/src/iou3d_nms.o.d -pthread -B /home/mhahner/scratch/apps/anaconda3/envs/pcdet/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/TH -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/THC -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/include -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/include/python3.8 -c -c /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp -o /scratch_net/hox/mhahner/repositories/PCDet/build/temp.linux-x86_64-3.8/pcdet/ops/iou3d_nms/src/iou3d_nms.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=iou3d_nms_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /scratch_net/hox/mhahner/repositories/PCDet/build/temp.linux-x86_64-3.8/pcdet/ops/iou3d_nms/src/iou3d_nms.o
c++ -MMD -MF /scratch_net/hox/mhahner/repositories/PCDet/build/temp.linux-x86_64-3.8/pcdet/ops/iou3d_nms/src/iou3d_nms.o.d -pthread -B /home/mhahner/scratch/apps/anaconda3/envs/pcdet/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/TH -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/THC -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/include -I/home/mhahner/scratch/apps/anaconda3/envs/pcdet/include/python3.8 -c -c /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp -o /scratch_net/hox/mhahner/repositories/PCDet/build/temp.linux-x86_64-3.8/pcdet/ops/iou3d_nms/src/iou3d_nms.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=iou3d_nms_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp: In function ‘int boxes_overlap_bev_gpu(at::Tensor, at::Tensor, at::Tensor)’:
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:13:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x);CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:42:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(boxes_a);
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:262:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:13:80: error: ‘AT_CHECK’ was not declared in this scope
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x);CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:42:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(boxes_a);
^
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:13:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x);CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:43:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(boxes_b);
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:262:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:13:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x);CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:44:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(ans_overlap);
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:262:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:49:54: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
const float * boxes_a_data = boxes_a.data();
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:341:7: note: declared here
T * data() const {
^~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:50:54: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
const float * boxes_b_data = boxes_b.data();
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:341:7: note: declared here
T * data() const {
^~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:51:56: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
float * ans_overlap_data = ans_overlap.data();
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:341:7: note: declared here
T * data() const {
^~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp: In function ‘int boxes_iou_bev_gpu(at::Tensor, at::Tensor, at::Tensor)’:
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:13:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x);CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:63:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(boxes_a);
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:262:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:13:80: error: ‘AT_CHECK’ was not declared in this scope
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x);CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:63:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(boxes_a);
^
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:13:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x);CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:64:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(boxes_b);
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:262:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:13:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x);CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:65:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(ans_iou);
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:262:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:70:54: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
const float * boxes_a_data = boxes_a.data();
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:341:7: note: declared here
T * data() const {
^~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:71:54: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
const float * boxes_b_data = boxes_b.data();
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:341:7: note: declared here
T * data() const {
^~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:72:48: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
float * ans_iou_data = ans_iou.data();
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:341:7: note: declared here
T * data() const {
^~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp: In function ‘int nms_gpu(at::Tensor, at::Tensor, float)’:
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:13:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x);CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:83:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(boxes);
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:262:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:13:80: error: ‘AT_CHECK’ was not declared in this scope
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x);CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:83:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(boxes);
^
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:87:50: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
const float * boxes_data = boxes.data();
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:341:7: note: declared here
T * data() const {
^~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:88:40: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
long * keep_data = keep.data();
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:341:7: note: declared here
T * data() const {
^~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp: In function ‘int nms_normal_gpu(at::Tensor, at::Tensor, float)’:
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:13:39: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x);CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:133:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(boxes);
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:262:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:13:80: error: ‘AT_CHECK’ was not declared in this scope
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:15:24: note: in expansion of macro ‘CHECK_CUDA’
#define CHECK_INPUT(x) CHECK_CUDA(x);CHECK_CONTIGUOUS(x)
^~~~~~~~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:133:5: note: in expansion of macro ‘CHECK_INPUT’
CHECK_INPUT(boxes);
^
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:137:50: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
const float * boxes_data = boxes.data();
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:341:7: note: declared here
T * data() const {
^~~~
/scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:138:40: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
long * keep_data = keep.data();
^
In file included from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11:0,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:6,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/tensor.h:3,
from /scratch_net/hox/mhahner/repositories/PCDet/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp:7:
/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:341:7: note: declared here
T * data() const {
^~~~
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1395, in _run_ninja_build
subprocess.run(
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 33, in
setup(
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/setuptools/init.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/setuptools/command/develop.py", line 38, in run
self.install_for_development()
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/setuptools/command/develop.py", line 140, in install_for_development
self.run_command('build_ext')
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 87, in run
_build_ext.run(self)
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 580, in build_extensions
build_ext.build_extensions(self)
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 208, in build_extension
_build_ext.build_extension(self, ext)
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 414, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1135, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/home/mhahner/scratch/apps/anaconda3/envs/pcdet/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1413, in _run_ninja_build
raise RuntimeError(message)
RuntimeError: Error compiling objects for extension

I have found a valid combination (see below).
I assume either python 3.8 or pytorch 1.5 caused the trouble
# packages in environment at /home/mhahner/scratch/apps/anaconda3/envs/apex:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                      1_llvm    conda-forge
bzip2                     1.0.8                h516909a_2    conda-forge
ca-certificates           2020.1.1                      0
certifi                   2020.4.5.1               py37_0
cmake                     3.17.0               h28c56e5_0    conda-forge
coloredlogs               14.0                     pypi_0    pypi
cudatoolkit               10.1.243             h6bb024c_0
cudatoolkit-dev           10.1.243             h516909a_3    conda-forge
cudnn                     7.6.5                cuda10.1_0
cycler                    0.10.0                   pypi_0    pypi
decorator                 4.4.2                    pypi_0    pypi
easydict                  1.9                      pypi_0    pypi
expat                     2.2.9                he1b5a44_2    conda-forge
humanfriendly             8.2                      pypi_0    pypi
imagecodecs               2020.2.18                pypi_0    pypi
imageio                   2.8.0                    pypi_0    pypi
kiwisolver                1.2.0                    pypi_0    pypi
krb5                      1.17.1               h2fd8d38_0    conda-forge
libblas                   3.8.0               16_openblas    conda-forge
libcblas                  3.8.0               16_openblas    conda-forge
libcurl                   7.69.1               hf7181ac_0    conda-forge
libedit                   3.1.20181209         hc058e9b_0
libffi                    3.2.1             he1b5a44_1007    conda-forge
libgcc-ng                 9.2.0                h24d8f2e_2    conda-forge
libgfortran-ng            7.5.0                hdf63c60_6    conda-forge
liblapack                 3.8.0               16_openblas    conda-forge
libopenblas               0.3.9                h5ec1e0e_0    conda-forge
libssh2                   1.8.2                h22169c7_2    conda-forge
libstdcxx-ng              9.2.0                hdf63c60_2    conda-forge
libuv                     1.34.0               h516909a_0    conda-forge
llvm-openmp               10.0.0               hc9558a2_0    conda-forge
llvmlite                  0.32.1                   pypi_0    pypi
matplotlib                3.2.1                    pypi_0    pypi
mkl                       2020.1                      217    conda-forge
ncurses                   6.1               hf484d3e_1002    conda-forge
networkx                  2.4                      pypi_0    pypi
ninja                     1.10.0               hc9558a2_0    conda-forge
numba                     0.49.1                   pypi_0    pypi
numpy                     1.18.4           py37h8960a57_0    conda-forge
openssl                   1.1.1g               h7b6447c_0
pcdet                     0.1.0+2244be4             dev_0    <develop>
pillow                    7.1.2                    pypi_0    pypi
pip                       20.1               pyh9f0ad1d_0    conda-forge
protobuf                  3.11.3                   pypi_0    pypi
pyparsing                 2.4.7                    pypi_0    pypi
python                    3.7.5                h0371630_0
python-dateutil           2.8.1                    pypi_0    pypi
python_abi                3.7                     1_cp37m    conda-forge
pytorch                   1.4.0           py3.7_cuda10.1.243_cudnn7.6.3_0    pytorch
pywavelets                1.1.1                    pypi_0    pypi
pyyaml                    5.3.1                    pypi_0    pypi
readline                  7.0               hf8c457e_1001    conda-forge
rhash                     1.3.6             h14c3975_1001    conda-forge
scikit-image              0.17.2                   pypi_0    pypi
scipy                     1.4.1                    pypi_0    pypi
setuptools                46.3.0           py37hc8dfbb8_0    conda-forge
six                       1.14.0                   pypi_0    pypi
spconv                    1.1                      pypi_0    pypi
sqlite                    3.31.1               h7b6447c_0
tensorboardx              2.0                      pypi_0    pypi
tifffile                  2020.5.11                pypi_0    pypi
tk                        8.6.10               hed695b0_0    conda-forge
tqdm                      4.46.0                   pypi_0    pypi
wheel                     0.34.2                     py_1    conda-forge
xz                        5.2.5                h516909a_0    conda-forge
zlib                      1.2.11            h516909a_1006    conda-forge

Finally SOLVED!
The final issue was, that we tried to build spconv on a Tesla K40 GPU,
which has a Kepler architecture and is seemingly too old to build spconv.
The reason why we always tried to build spconv on a Tesla K40 is that in our lab, it is hard to get a GPU on our GPU cluster interactively. (Usually, you can only submit jobs via qsub/SLURM.)
So we always tried to build spconv either on our local Linux clients or on old nodes which only have Tesla K40s. Then, out of despair, we tried to build spconv on a Titan X (Pascal) and we finally found a combination of requirements that worked.
So here is our solution:
conda create --name PCDet python=3.6 pytorch=1.1 cudatoolkit=9.2 cudatoolkit-dev=9.2 \
cmake --channel pytorch --channel=conda-forge
conda activate PCDet
conda install cudnn
conda install boost
git clone https://github.com/traveller59/spconv spconv_8da6f96 --recursive
cd spconv_8da6f96
git checkout 8da6f967fb9a054d8870c3515b1b44eca2103634

If necessary:
Download and extract
0001-Allow-to-specifiy-CUDA_ROOT-directory-and-pick-corre.patch.zip
and patch spconv via:
git am <PATH_TO_EXTRACTED_FILE>/0001-Allow-to-specifiy-CUDA_ROOT-directory-and-pick-corre.patch

CUDA_ROOT=<PATH_TO_YOUR_CONDA_INSTALLATION>/conda_envs/PCDet python setup.py bdist_wheel
cd dist/
pip install *

Test spconv via:
python -c 'import spconv'
(should just return and not raise any errors)
cd ../..
git clone https://github.com/sshaoshuai/PCDet.git
cd PCDet/
pip install -r requirements.txt
CUDA_ROOT=<PATH_TO_YOUR_CONDA_INSTALLATION>/conda_envs/PCDet python setup.py develop

Done!
I hope these instructions help someone else who struggles to build spconv as well.

CUDA_ROOT=<PATH_TO_YOUR_CONDA_INSTALLATION>/conda_envs/PCDet python setup.py bdist_wheel
cd dist/
pip install *

I have the issue with the above part. It gives me this error:
Release
-- The CUDA compiler identification is unknown
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - failed
-- Check for working CUDA compiler: /usr/bin/nvcc
-- Check for working CUDA compiler: /usr/bin/nvcc - broken
CMake Error at /home/soheil/anaconda3/envs/PCDet/share/cmake-3.18/Modules/CMakeTestCUDACompiler.cmake:52 (message):
The CUDA compiler
"/usr/bin/nvcc"

is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/soheil/OpenPCDet/spconv_8da6f96/build/temp.linux-x86_64-3.8/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_3aefc/fast && /usr/bin/make  -f CMakeFiles/cmTC_3aefc.dir/build.make CMakeFiles/cmTC_3aefc.dir/build
make[1]: Entering directory '/home/soheil/OpenPCDet/spconv_8da6f96/build/temp.linux-x86_64-3.8/CMakeFiles/CMakeTmp'
Building CUDA object CMakeFiles/cmTC_3aefc.dir/main.cu.o
/usr/bin/nvcc    "--expt-relaxed-constexpr"   -c /home/soheil/OpenPCDet/spconv_8da6f96/build/temp.linux-x86_64-3.8/CMakeFiles/CMakeTmp/main.cu -o CMakeFiles/cmTC_3aefc.dir/main.cu.o
ptxas fatal   : Value 'sm_20' is not defined for option 'gpu-name'
CMakeFiles/cmTC_3aefc.dir/build.make:84: recipe for target 'CMakeFiles/cmTC_3aefc.dir/main.cu.o' failed
make[1]: *** [CMakeFiles/cmTC_3aefc.dir/main.cu.o] Error 255
make[1]: Leaving directory '/home/soheil/OpenPCDet/spconv_8da6f96/build/temp.linux-x86_64-3.8/CMakeFiles/CMakeTmp'
Makefile:140: recipe for target 'cmTC_3aefc/fast' failed
make: *** [cmTC_3aefc/fast] Error 2

source: gharchive/issue

repo: open-mmlab/OpenPCDet


text:
TypeError: argument of type 'method' is not iterable on install of mmdetection

Thanks for your error report and we appreciate it a lot.
Checklist

I have searched related issues but cannot get the expected help. - done
I have read the FAQ documentation but cannot get the expected help.
-- there is no FAQ page at this URL
The bug has not been fixed in the latest version. - not as far as I can tell

Describe the bug
I am following the installation instructions for mmyolo on: https://github.com/open-mmlab/mmyolo/blob/main/docs/en/tutorials/custom_installation.md
mim throws an error: TypeError: argument of type 'method' is not iterable
I had previously installled the following components successfully:
pip3 install openmim
mim install "mmengine>=0.6.0"
mim install "mmcv>=2.0.0rc4,<2.1.0"

Reproduction

What command or script did you run?

mim install "mmdet>=3.0.0rc6,<3.1.0"

Did you make any modifications on the code or config? Did you understand what you have modified?
What dataset did you use?

Environment

Please run python mmdet/utils/collect_env.py to collect necessary environment information and paste it here.
-- can't run this as mmdet fails to install

mim --version
mim, version 0.3.6

mmyolo git:(main) ✗ pip freeze
addict==2.4.0
certifi==2022.12.7
charset-normalizer==3.1.0
click==8.1.3
colorama==0.4.6
contourpy==1.0.7
cycler==0.11.0
filelock==3.10.0
fonttools==4.39.0
idna==3.4
Jinja2==3.1.2
kiwisolver==1.4.4
Markdown==3.4.1
markdown-it-py==2.2.0
MarkupSafe==2.1.2
matplotlib==3.7.1
mdurl==0.1.2
mmcv==2.0.0rc4
mmengine==0.6.0
model-index==0.1.11
mpmath==1.3.0
networkx==3.0
numpy==1.24.2
opencv-python==4.7.0.72
openmim==0.3.6
ordered-set==4.1.0
packaging==23.0
pandas==1.5.3
Pillow==9.4.0
Pygments==2.14.0
pyparsing==3.0.9
python-dateutil==2.8.2
pytz==2022.7.1
PyYAML==6.0
requests==2.28.2
rich==13.3.2
six==1.16.0
sympy==1.11.1
tabulate==0.9.0
termcolor==2.2.0
torch==2.0.0
torchvision==0.15.1
typing_extensions==4.5.0
urllib3==1.26.15
yapf==0.32.0

 mmyolo git:(main) ✗ conda list
# packages in environment at /Users/pmctaggart/opt/miniconda3:
#
# Name                    Version                   Build  Channel
blas                      1.0                    openblas
brotlipy                  0.7.0           py39h1a28f6b_1002
bzip2                     1.0.8                h620ffc9_4
ca-certificates           2023.01.10           hca03da5_0
certifi                   2022.12.7        py39hca03da5_0
cffi                      1.15.1           py39h80987f9_3
charset-normalizer        2.0.4              pyhd3eb1b0_0
conda                     23.1.0           py39hca03da5_0
conda-package-handling    1.9.0            py39h1a28f6b_1
cryptography              38.0.1           py39h834c97f_0
ffmpeg                    4.2.2                h04105a8_0
filelock                  3.9.0            py39hca03da5_0
flit-core                 3.6.0              pyhd3eb1b0_0
freetype                  2.12.1               h1192e45_0
gettext                   0.21.0               h826f4ad_0
giflib                    5.2.1                h80987f9_3
gmp                       6.2.1                hc377ac9_3
gmpy2                     2.1.2            py39h8c48613_0
gnutls                    3.6.15               h887c41c_0
icu                       68.1                 hc377ac9_0
idna                      3.4              py39hca03da5_0
jinja2                    3.1.2            py39hca03da5_0
jpeg                      9e                   h80987f9_1
lame                      3.100                h1a28f6b_0
lcms2                     2.12                 hba8e193_0
lerc                      3.0                  hc377ac9_0
libcxx                    14.0.6               h848a8c0_0
libdeflate                1.8                  h1a28f6b_5
libffi                    3.4.2                hca03da5_6
libgfortran               5.0.0           11_3_0_hca03da5_28
libgfortran5              11.3.0              h009349e_28
libiconv                  1.16                 h1a28f6b_2
libidn2                   2.3.1                h1a28f6b_0
libopenblas               0.3.21               h269037a_0
libopus                   1.3                  h1a28f6b_1
libpng                    1.6.39               h80987f9_0
libtasn1                  4.16.0               h1a28f6b_0
libtiff                   4.5.0                h2fd578a_0
libunistring              0.9.10               h1a28f6b_0
libvpx                    1.10.0               hc377ac9_0
libwebp                   1.2.4                ha3663a8_1
libwebp-base              1.2.4                h80987f9_1
libxml2                   2.9.14               h8c5e841_0
llvm-openmp               14.0.6               hc6e5704_0
lz4-c                     1.9.4                h313beb8_0
markupsafe                2.1.1            py39h1a28f6b_0
mpc                       1.1.0                h8c48613_1
mpfr                      4.0.2                h695f6f0_1
mpmath                    1.2.1            py39hca03da5_0
ncurses                   6.3                  h1a28f6b_3
nettle                    3.7.3                h84b5d62_1
networkx                  2.8.4            py39hca03da5_0
numpy                     1.23.5           py39h1398885_0
numpy-base                1.23.5           py39h90707a3_0
openh264                  1.8.0                h98b2900_0
openssl                   1.1.1t               h1a28f6b_0
pillow                    9.4.0            py39h313beb8_0
pluggy                    1.0.0            py39hca03da5_1
pycosat                   0.6.4            py39h1a28f6b_0
pycparser                 2.21               pyhd3eb1b0_0
pyopenssl                 22.0.0             pyhd3eb1b0_0
pysocks                   1.7.1            py39hca03da5_0
python                    3.9.12               hbdb9e5c_0
python.app                3                py39h1a28f6b_0
pytorch                   2.0.0                   py3.9_0    pytorch
readline                  8.2                  h1a28f6b_0
requests                  2.28.1           py39hca03da5_0
ruamel.yaml               0.17.21          py39h1a28f6b_0
ruamel.yaml.clib          0.2.6            py39h1a28f6b_1
setuptools                65.5.0           py39hca03da5_0
sqlite                    3.40.0               h7a7dc30_0
sympy                     1.11.1           py39hca03da5_0
tk                        8.6.12               hb8d0fd4_0
toolz                     0.12.0           py39hca03da5_0
torchvision               0.15.0                 py39_cpu    pytorch
tqdm                      4.64.1           py39hca03da5_0
typing_extensions         4.4.0            py39hca03da5_0
tzdata                    2022g                h04d1e81_0
urllib3                   1.26.13          py39hca03da5_0
x264                      1!152.20180806       h1a28f6b_0
xz                        5.2.8                h80987f9_0
zlib                      1.2.13               h5a0b063_0
zstd                      1.5.2                h8574219_0

You may add addition that may be helpful for locating the problem, such as

How you installed PyTorch : conda
Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)

Error traceback
If applicable, paste the error trackback here.
mmyolo git:(main) ✗ mim install "mmdet>=3.0.0rc6,<3.1.0"

Looking in links: https://download.openmmlab.com/mmcv/dist/cpu/torch2.0.0/index.html
Collecting mmdet<3.1.0,>=3.0.0rc6
  Using cached mmdet-3.0.0rc6-py3-none-any.whl (1.7 MB)
ERROR: Exception:
Traceback (most recent call last):
  File "/Users/pdmct/.local/share/virtualenvs/mmyolo-dGEsbyu_/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper
    status = run_func(*args)
             ^^^^^^^^^^^^^^^
  File "/Users/pdmct/.local/share/virtualenvs/mmyolo-dGEsbyu_/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
    return func(self, options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/pdmct/.local/share/virtualenvs/mmyolo-dGEsbyu_/lib/python3.11/site-packages/pip/_internal/commands/install.py", line 419, in run
    requirement_set = resolver.resolve(
                      ^^^^^^^^^^^^^^^^^
  File "/Users/pdmct/.local/share/virtualenvs/mmyolo-dGEsbyu_/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve
    result = self._result = resolver.resolve(
                            ^^^^^^^^^^^^^^^^^
  File "/Users/pdmct/.local/share/virtualenvs/mmyolo-dGEsbyu_/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/pdmct/.local/share/virtualenvs/mmyolo-dGEsbyu_/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 373, in resolve
    failure_causes = self._attempt_to_pin_criterion(name)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/pdmct/.local/share/virtualenvs/mmyolo-dGEsbyu_/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 213, in _attempt_to_pin_criterion
    criteria = self._get_updated_criteria(candidate)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/pdmct/.local/share/virtualenvs/mmyolo-dGEsbyu_/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers.py", line 203, in _get_updated_criteria
    for requirement in self._p.get_dependencies(candidate=candidate):
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/pdmct/.local/share/virtualenvs/mmyolo-dGEsbyu_/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/provider.py", line 237, in get_dependencies
    return [r for r in candidate.iter_dependencies(with_requires) if r is not None]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/pdmct/.local/share/virtualenvs/mmyolo-dGEsbyu_/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/provider.py", line 237, in <listcomp>
    return [r for r in candidate.iter_dependencies(with_requires) if r is not None]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/pdmct/.local/share/virtualenvs/mmyolo-dGEsbyu_/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 247, in iter_dependencies
    requires = self.dist.iter_dependencies() if with_requires else ()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/pdmct/.local/share/virtualenvs/mmyolo-dGEsbyu_/lib/python3.11/site-packages/mim/commands/install.py", line 247, in patched_iter_dependencies
    if 'mim' in self.iter_provided_extras:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'method' is not iterable

Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!

It was an issue with mismatched python versions.

repo: open-mmlab/mim


text:
Error using YOLOX: test_cfg specified in both outer field and model field

Hello, I am trying to run the YOLOX detector and I'm getting this error. I can run ByteTrack from MMTracking (which to my knowledge uses the same YOLOX detector from MMDet) so I'm guessing the problem is in the config. But I'm using the one from this repo and I haven't modified it at all.
Is there a way to fix this? Thank you in advance for any advice.

I'm using MMDetection 2.28.2 (need the older version because I'm using MMPose 0.29.0) and Python 3.10.

@cechantonin  It is possible that the versions of mmpose and mmdet are not compatible. Please check the dependencies and ensure they are compatible with each other.

MMPose requires MMDet >= 2.14.0 so they should be compatible and all methods I needed worked in the same environment.
I noticed, that MMLab has a project specifically for YOLO so I'll try that, but it's strange that MMDet YOLOX used during ByteTrack works, yet the standalone YOLOX from MMDet doesn't.

@cechantonin I also reported the same error. May I ask the landlord if they have resolved it and how they resolved it.

@cechantonin I have also encountered the same error. May I ask if the author has resolved it now and how it was resolved.

authors: cechantonin hhaAndroid jry-student

repo: open-mmlab/mmdetection


text:
1.0版本的权重在哪里

更新后，之前1.0版本的权重在哪里

In the v1.0 branch's model zoo.


text:
DERT device error when run inference_detector in mmdetecion

Hi everyone,
When a run the inference_detector to DERT algorithm, I got this error message:
AssertionError  Traceback (most recent call last)
 in ()
6 cfg.data.test.test_mode = True
7
----> 8 modelx = init_detector(cfg, '/content/drive/MyDrive/Doutorado/tree detction/dert0/epoch_24.pth', device='cuda')
9
10 # test a single image
9 frames
/content/mmdetection/mmdet/models/dense_heads/transformer_head.py in init(self, num_classes, in_channels, num_fcs, transformer, positional_encoding, loss_cls, loss_bbox, loss_iou, train_cfg, test_cfg, **kwargs)
104         class_weight = loss_cls.get('class_weight', None)
105         if class_weight is not None:
--> 106             assert isinstance(class_weight, float), 'Expected '
107                 'class_weight to have type float. Found '
108                 f'{type(class_weight)}.'
AssertionError: Expected class_weight to have type float. Found <class 'torch.Tensor'>.
The device paramenter of init_detector is default ('cuda:0') and distributed=False. Can you help me?

Please @v-qjqs have a check and fix the issue.

Hi, as the error message suggests, 'class_weight' in the config file should be type float, not Tensor. What's your detr config?

Anyone found the solution
?

just add this before infering:
cfg.model.bbox_head.loss_cls.class_weight = float(1.0)
should be good IA.

authors: ZwwWayne pedrozamboni saadyousuf45 v-qjqs


text:
How do I change the name displayed on the masked object?

hello
I inference with coins using mask-rcnn.
here is my code
`img_name = path_dir + '/' + file_list[i]
img_arr= cv2.imread(img_name, cv2.IMREAD_COLOR)
img_arr_rgb = cv2.cvtColor(img_arr, cv2.COLOR_BGR2RGB)
fig= plt.figure(figsize=(12, 12))
plt.imshow(img_arr_rgb)

results = inference_detector(model, img_arr)

##save result
model.show_result(img_arr, results, score_thr=0.8, title=  bbox_color=(0,0,255),thickness=0.5,font_size=7, out_file= f'{save_dir1}{file_list[i]}')

`
What I am curious about is that
I want to change the name of the bounding box
I want to assign random variables instead of class name and confidence score.
How can I do this?
Do I have to change mmdetection/mmdet/apis/inference.py/inference_detector function? or show_result_pyplot function?
I would be very grateful if you could give me example code.
thank you

I want to put the variable value in my code into the title.

The name of the bounding box depends on https://github.com/open-mmlab/mmdetection/blob/d81990802cbd80f6d49fc35cdd255ebc353e4541/mmdet/datasets/coco.py#L25


text:
How to generate visualization results for pix2pix model

Hello!
I used the configs/pix2pix/pix2pix_vanilla_unet_bn_1x1_80k_facades.py config to train and got the expected checkpoints. But when I tried to use the checkpoints to generate visualization results for valid datasets, all scripts under the apps folder and tools/evaluation.py didn't work, May I ask that how to generate visualization results for the pix2pix model？
Thanks in advance.

Hi @yinchimaoliang , if you want to generate visualization results for translation models (now we only support pix2pix and cyclegan ), I may suggest two ways:

Using demo/translation_demo.py for inference, you can follow the instructions here.
Using tools/utils/translation_eval.py script. For example, you can run the following instruction.

python tools/utils/translation_eval.py ./configs/pix2pix/pix2pix_vanilla_unet_bn_1x1_80k_facades.py https://download.openmmlab.com/mmgen/pix2pix/pix2pix_vanilla_unet_bn_1x1_80k_facades.py_20210410_174537-36d956f1.pth --samples-path ./work_dirs/path_to_samples/

Then you can see the generated samples in ./work_dirs/path_to_samples/.
By the way, all scripts under apps folder do not support translation models. In detail, interpolate_sample.py supports all unconditional models. modified_sefa.py and stylegan_projector.py only support Style-Based models.

authors: plyfager yinchimaoliang

repo: open-mmlab/mmgeneration


text:
Fix for ssl unverif context not supported in python < 2.7.9

Signed-off-by: Jason Albert albertj@us.ibm.com

This change is

Fixes #162

Merged as of 189f9336fabd3e71ac72a92e0f5e3d10fc21f3ed
Thanks!

authors: stewart-ibm thejta

repo: open-power/op-test-framework

license_source: bigquery


text:
Always display full 16 digit scom data

There have been several cases of confusion due to the output
from the scom commands being truncated into right-justified
integer representations.  This modifies the output to always
display the complete 64-bit/16-digit register content when
doing scoms.

This change is

No activity on this pull request in quite a while.

Ahh yep, managed to slip past me. The commit is missing a Signed-off-by, but I'll just re-implement and push to master.

authors: dcrowell77 stewart-ibm williamspatrick

repo: open-power/skiboot


text:
Add API to update speed limits for lanes and publish LaneStates message

Requires: https://github.com/open-rmf/rmf_internal_msgs/pull/43
This PR adds two new public APIs to FleetUpdateHandle

void limit_lane_speeds(std::vector<SpeedLimitRequest> requests) : To impose speed limits on lanes where SpeedLimitRequest is a pimpled class. I'm not sure if its better to have this as a class or define it as an unordered_map<std::size_t, double>. Or even just std::vector<rmf_fleet_msgs::msg::SpeedLimitedLane>. Alternatively, would it be better to just accept std::vecotr<rmf_fleet_msgs::msg::SpeedLimitRequest> and have a single API limit and remove lane speeds?

void remove_speed_limits(std::vector<std::size_t> requests): To remove any imposed speed limits

Anytime lanes are open/closed or speed limits are changed, a LaneStates msg is published over /lane_states topic.
I've also updated the implementation in the legacy full_control adapter to include a subscription interface for SpeedLimitRequest. It still publishes the /closed_lanes topic which is technically deprecated by the newer /lane_states that includes speed limited lanes.
TODO: Update python bindings once CPP API passes review.

I'm having a bit of trouble compiling this under Humble, specifically it can't find the header for tf2_geometry_msgs.
luca@luca-jammy:~/rmf_ws$ colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-select rmf_obstacle_ros2
Starting >>> rmf_obstacle_ros2
--- stderr: rmf_obstacle_ros2
/home/luca/rmf_ws/src/rmf/rmf_ros2/rmf_obstacle_ros2/src/lane_blocker/LaneBlocker.cpp:28:10: fatal error: 'tf2_geometry_msgs/tf2_geometry_msgs.h' file not found
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake[2]: *** [CMakeFiles/lane_blocker.dir/build.make:76: CMakeFiles/lane_blocker.dir/src/lane_blocker/LaneBlocker.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:223: CMakeFiles/lane_blocker.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< rmf_obstacle_ros2 [8.20s, exited with code 2]

Upon further probing I noticed that it's due to a change in the installation path, specifically due to this PR:
/opt/ros/galactic/include/tf2_geometry_msgs/tf2_geometry_msgs.h
/opt/ros/humble/include/tf2_geometry_msgs/tf2_geometry_msgs/tf2_geometry_msgs.h

It seems that the target_link_libraries / target_include_directories way of adding the dependency doesn't work anymore, instead because of this PR from Humble onwards you can just add tf2_geometry_msgs::tf2_geometry_msgs to your target_link_libraries and it works just fine.
I'm not quite sure if there is a way to keep both ways to make sure it works in both Galactic and Humble

@mxgrey if the changes here are good I can update the python bindings and try to get this merged for the release

authors: Yadunund luca-della-vedova


text:
fix: pass correct call results to reporter + fix ajv validate

just an example of a validation error:

:tada: This PR is included in version 1.0.5 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: open-rpc/test-coverage


text:
Create LICENSE

Description

This PR adds the best open source license.
What type of PR is this? (check all applicable)

[ ] 🍕 Feature
[X] 🐛 Bug Fix
[X] 📝 Documentation Update
[X] 🎨 Style
[ ] 🧑💻 Code Refactor
[ ] 🔥 Performance Improvements
[ ] ✅ Test
[ ] 🤖 Build
[ ] 🔁 CI
[ ] 📦 Chore (Release)
[ ] ⏩ Revert

Related Tickets & Documents

Fixes #50
Mobile & Desktop Screenshots/Recordings

Not necessary.
Steps to QA

Added to documentation?

[ ] 📜 README.md
[ ] 📓 docs.opensauced.pizza
[ ] 🍕 dev.to/opensauced
[ ] 📕 storybook
[X] 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?

Hi @ArielMAJ - thanks for this: the .github repository in an organization isn't really meant for general consumption or use by anyone except for those within the org. It denotes the metadata for issue templates, defines the org's code of conduct, etc.
But you're right, it'd be good to add a license since the files for this are open source but I'm unsure if MIT is the right license. We've used Apache 2 in the past given there's some OpenSauced branding.
Blocking until we can talk with the rest of the team on this.

Tyvm for considering it. I found this repository on a post when researching PR and issue templates for my own projects. I'd like to use them, but I feel like I'm not allowed because of the absence of an open source license.

cc @bdougie - what license do you think makes sense for this repo?

MIT is fine here

Thanks for starting the conversation @ArielMAJ !! Merged!

authors: ArielMAJ bdougie jpmcb

license: MIT


text:
Bug: data about user are printed in console

Describe the bug
Data about user ar printed after logged in app
Steps to reproduce

Go to https://beta.hot.opensauced.pizza/#
Open console cmd+opt+i
Log in
You will see this things

Affected services
hot.opensauced.pizza
Platforms
Desktop
Browsers
Chrome, Firefox, Safari, Edge, Opera
Environment
Development
Additional context
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Contributing Docs

[X] I agree to follow this project's Contribution Docs

This should be removed https://github.com/open-sauced/hot/blob/beta/src/components/PrimaryNav.tsx#L215

.take

authors: NsdHSO bdougie

repo: open-sauced/hot


text:
Fix bug in OpentelemetryOban.insert_all/4

What does this PR do?
Fixes a bug in OpentelemetryOban.insert_all/4 that causes the request to fail due to OpenTelemetryOban not existing in Oban

I'm ignorant of how this works, what do you mean by OpenTelemetryOban not existing in Oban and how does it relate to this PR?

Sorry @tsloughter, this is an example error:
16:20:13.912 [error] ** (RuntimeError) no config registered for OpentelemetryOban instance, is the supervisor running?
(oban 2.13.1) lib/oban/registry.ex:37: Oban.Registry.config/1
(oban 2.13.1) lib/oban.ex:420: Oban.insert_all/5

The other functions in this module use the Oban instance.

👍 looks good
Though, from README:

Oban also supports inserting jobs using Oban.insert/4, Oban.insert_all/2
and Oban.insert_all/4. These are currently not supported by OpentelemetryOban
and are just proxied through to Oban.

So even though it fixes that API, it won't actually add any tracing.

Ah yep that's very true. I think we use OpentelemetryOban.insert_all/4 for parity with our other usages of it.

authors: tsloughter wizardfrag


text:
feat(instrumentation-document-load): add custom root span to document page load instrumentation

Which problem is this PR solving?
Page load instrumentation creates and ends its own root span. However, for a typical single-page JS app, transaction is not completed after the initial page load is finished. Ideally, single-page app should be able to attach more spans to the root span and have control over when the root span is ended.
Short description of the changes
This PR extends instrumentation with an optional rootSpan config parameter. When rootSpan is passed instrumentation attaches all the child spans/attributes to that rootSpan and doesn't end the span.
Checklist

[N/A] Ran npm run test-all-versions for the edited package(s) on the latest commit if applicable.

@gregolsen, updating changelogs is actually done automatically during the release.
Can someone knowledgeable in RUM look at this? @t2t2, @MSNev, @mhennoch

Thank you @Rauno56 - I got rid of the release update and rebased against the fresh main 🙇🏻

Will take a look tomorrow

@mhennoch, have you had a moment?

Looked OK but wanted to test it but haven't had the time. Maybe also @t2t2 can take a look.

@t2t2, will yoy have a moment to check it out?

Depends on if you want an answer to this PR wise or a big picture answer
Like yes pr does what it says it does, if user wants to manually manage the document load span like this then yes this is the way
But big picture wise, if I wanted a good set of rum instrumentations, I'd probably come up with a way to have documentLoad span be active from start of instrumentations being loaded until page load event happens. This would probably also decouple html resources (img, link, script tags) from document load instrumentation somewhat allowing it to also work for SPA use, making both documentLoad and userInteraction work similarly:

As noted on image this sort of idea wouldn't work for those who would base interaction duration from root span duration (but rather would need post-processing once sure that no more data comes from the trace). For those, quoting PR "Ideally, single-page app should be able to attach more spans to the root span and have control over when the root span is ended.", would be better. So the more automatically possible behavior would probably be better as an alternative choice of instrumentation for those who can use it

A bit more context about our setup that may help here:
In our tracing setup page load is followed by the Ember.js app loading. Only after the Ember.js view is loaded we complete the traces. User clicking on something is considered a separate interaction and would emit a separate trace.

repo: open-telemetry/opentelemetry-js-contrib


text:
Flaky test case 'Node SDK > Basic Registration > should register a tracer provider if a span processor is provided'

What version of Node are you using?
Node v12.
What did you see instead?
Circle CI: https://app.circleci.com/pipelines/github/open-telemetry/opentelemetry-js/4901/workflows/287a9bd4-99fc-43c5-b1ce-1d340c8f7798/jobs/26727
  1) Node SDK
       Basic Registration
         should register a tracer provider if a span processor is provided:
     Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/root/project/packages/opentelemetry-sdk-node/test/sdk.test.ts)

Affected PR

https://github.com/open-telemetry/opentelemetry-js/pull/1366

This test is flaky because the plugin loading is taking too long. Even on my local machine, the test frequently takes longer than 1000ms. In a CI environment with limited resources, the 2000ms limit is exceeded often. This is not a problem in the other tests because the node tracer provider isn't loaded for each test.
I think the plugin system needs a drastic overhaul. Managing a list of plugins to autoload is cumbersome, the fact that a single plugin cannot instrument two modules can be a pain (as is the case with http/https and grpc/grpc-js, and would be similar with mysql/mysql2 if we supported mysql2), and plugin configuration is awkward.

Flaky test fixed in #1398

authors: dyladan legendecas

repo: open-telemetry/opentelemetry-js


text:
Add Flagd-ui to demo docs

Changes
Changes required for the documentation concerning the flagd-ui feature.
As we have a ready PR for the first version of the flagd-ui, we would like to start thinking about how this new feature can be included in the documentation. Below you can find what I've implemented in this PR as my suggestions:

Screenshots -> Add screenshots of the UI
Docker deployment -> Add :8080/feature route
Kubernetes deployment -> Add :8080/feature route
Feature flags page -> Mention the possibility to toggle the flags through the UI
Requirements/architecture -> mention under feature flagging section

As it is not directly a microservice of the astronomy shop app, but it is an instrumented service nonetheless, there a few where it might make sense to include it (the flagd service itself is currently not included in these):

Architecture charts
List of Services

Additionally it might make sense to create a separate docs page for this feature at some point.
Thank you in advance for reviewing! 🚀
Let me know if I missed anything :)

Thank you, I commented with a few change requests

@svrnm Thank you for the review, I've applied the suggested changes in the last commit

thanks!
@open-telemetry/demo-approvers please take a look!

LGTM, just waiting on https://github.com/open-telemetry/opentelemetry-helm-charts/pull/1367

@svrnm this one should be good to go.
I've fixed the failing checks and that added some extra files to the PR (unrelated to the PR itself).
Happy to revert if that is not the way to do it.

authors: julianocosta89 maindotmarcell svrnm


text:
[testing-helpers] "scoped-elements-test-wrapper" is already defined in monorepo

I have a monorepo and every package uses @open-wc/testing (implicitly @open-wc/testing-helpers).
When I run karma on all packages, I get the following error:
HeadlessChrome 81.0.4044 (Mac OS X 10.14.6) ERROR
  Uncaught
  at http://localhost:9876/context.html:0:0

  Error: Failed to execute 'define' on 'CustomElementRegistry': the name "scoped-elements-test-wrapper" has already been used with this registry
      at packages/ui/node_modules/@open-wc/testing-helpers/src/scopedElementsWrapper.js:65:18

The problem is that scopedElementsWrapper.js doesn't check if scoped-elements-test-wrapper is already defined.

You are probably loading multiple instances of the testing package, this can create issues on multiple levels. I recommend looking into making sure there is only one version of the testing package installed, depending on the package manager you may need to configure the symlinks setting to ensure things are loaded just once. Otherwise you can run a separate karma instance per package.

I solved this problem by hoisting the packages.
Is there any problem if there would be a simple condition to check if that custom element is already defined?

There is no way of knowing if the two instances of the library are compatible, so a simple check can create subtle bugs.
@manolakis could we auto generate the name here? or do we need to rely on a static name?

I've tested two options.
First, was to simply check is the custom element exists, but you're right, there could be different versions and that's a problem.
Second, was to register a new custom element if scoped-elements-test-wrapper already exists. I was checking for custom elements with an index at the end, like scoped-elements-test-wrapper-1, until I find an unregistered one.

Yep that would probably work in this case

Yes, I think the best option is auto-generate the name. I'm on it!

Although auto-generating the name to avoid naming collision is possible, hoisting the package or using Yarn should fix the problem of many definitions, and IMHO is a better practice to have one version of testing-helpers instead of many, don't you think?

I wouldn't consider auto-generating the name as a replacement for better practices, but rather as a safe solution in case you want to do something different.
In my case I could solve this problem by hoisting the packages, but if I had some reasons to not hoist the packages (maybe some limitations), I will have this problem. In my setup, I want to be able to run karma in the root of the project through all the packages, but also independently using lerna.

authors: LarsDenBakker MariusVatasoiu manolakis

repo: open-wc/open-wc


text:
Geolocation issues

Geolocation issues
Open-webui suddenly began to ask for geolocation before sending anything to the models (local ollama models and API models alike), and fail
Expected Behavior:

should not require geolocation
should work whether geolocation allowed or not

Actual Behavior:

fail in both case (except on brave, where it works when geolocation is allowed)

steps to reproduce

when i deny the geolocation, i just get an error : Unknown error acquiring position and user denied geolocation, and then i can't use open-webui

In Firefox, when allowing the access to my geolocation, the UI get unresponsive and i can't interact with it anymore

In chromium, when allowing the access to my geolocation, i get Failed to query location from network service. Check the DevTools console for more information.. In the console i get the following errors :

Network location provider at 'https://www.googleapis.com/' : Returned error code 429.

index.ts:386 Error getting user location:
GeolocationPositionError {code: 2, message: 'Failed to query location from network service. Check the DevTools console for more information.'}
code
:
2
message
:
"Failed to query location from network service. Check the DevTools console for more information."
[[Prototype]]
:
GeolocationPositionError
(anonymous)	@	index.ts:386
Promise.catch
re	@	index.ts:385
V	@	index.ts:259
bt	@	Chat.svelte:1518
await in bt
(anonymous)	@	Chat.svelte:1020
await in (anonymous)
pt	@	Chat.svelte:962
await in pt
me	@	Chat.svelte:896
await in me
hl	@	Chat.svelte:2320
await in hl
(anonymous)	@	lifecycle.js:105
(anonymous)	@	lifecycle.js:104
X	@	Placeholder.svelte:212
(anonymous)	@	lifecycle.js:105
(anonymous)	@	lifecycle.js:104
Nt	@	MessageInput.svelte:545
(anonymous)	@	lifecycle.js:105
(anonymous)	@	lifecycle.js:104
Enter	@	RichTextInput.svelte:321
(anonymous)	@	index.js:99
(anonymous)	@	index.js:3132
someProp	@	index.js:5490
ce.keydown	@	index.js:3132
t.dom.addEventListener.t.input.eventHandlers.<computed>	@	index.js:3052

It weirdly seem to work fine (with geolocation on) in Brave (when disabling any "brave shield")

Installation Method
i run open-webui in docker, with docker-compose :
services:
  open-webui:
    image: ghcr.io/open-webui/open-webui:main
    container_name: open-webui
    ports:
      - 3000:8080
    extra_hosts:
      - host.docker.internal:host-gateway
    volumes:
      - ./open-webui:/app/backend/data
    environment:
      - OPENAI_API_BASE_URLS=${OPENAI_API_BASE_URLS}
      - OPENAI_API_KEYS=${OPENAI_API_KEYS}
    restart: unless-stopped

Environment

Open WebUI Version: v0.3.35

Operating System: ubuntu 22.04.5

Browser (if applicable): Firefox 131.0.3, Chromium 130.0.6723.69, Brave v1.71.118

Confirmation:

[x] I have read and followed all the instructions provided in the README.md.
[x] I am on the latest version of both Open WebUI and Ollama.
[x] I have included the browser console logs.
[ ] I have included the Docker container logs (nothing relevant there)
[x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Addendum : only happens if i use a system prompt (any content)

repo: open-webui/open-webui