text:
Added write topic writer ack

Pull request type

Please check the type of change your PR introduces:

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Other information

Codecov Report
Attention: Patch coverage is 0% with 47 lines in your changes missing coverage. Please review.

Project coverage is 42.61%. Comparing base (d10ca1b) to head (7cc86b9).

Files
Patch %
Lines

...al/grpcwrapper/rawtopic/rawtopicwriter/messages.go
0.00%
30 Missing :warning:

log/topic.go
0.00%
17 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1424      +/-   ##
==========================================
+ Coverage   41.72%   42.61%   +0.88%
==========================================
  Files         349      296      -53
  Lines       36165    26740    -9425
==========================================
- Hits        15090    11394    -3696
+ Misses      20578    14877    -5701
+ Partials      497      469      -28

Flag
Coverage Δ

go-1.21.x
42.61% <0.00%> (-0.58%)
:arrow_down:

go-1.22.x
?

go-1.23.x
?

macOS
42.58% <0.00%> (+1.30%)
:arrow_up:

ubuntu
42.60% <0.00%> (+1.32%)
:arrow_up:

unit
42.61% <0.00%> (+0.88%)
:arrow_up:

windows
?

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

authors: codecov-commenter rekby

repo: ydb-platform/ydb-go-sdk


text:
DateTime只需选择年，月，如何设置

问题描述
我只需要显示年和月份时，该使用怎么样的设置模式呢，尝试过将type设置为data,将dayFormat的style设置为none,解决显示具体日期的问题，但绑定的日期必须是年/月/日都齐全，如何解决

你好，原设计存在缺陷，后期修复。

那问一下，目前有没有什么好的hack技巧，可以在现有的基础上，把最后一栏去掉

你好，问题已修复。

source: gharchive/issue

authors: halfPotatoOutlook weison ydcss

repo: ydcss/vue-ydui

license: MIT

license_type: permissive

license_source: github-api


text:
在cell中使用spinner时，样式会有冲突

在cell-item中使用主要是spinner样式的text-align和height会被覆盖，望修复

你好，问题收到，尽快修复。

你好，问题已修复。

authors: RoseEnd ydcss


text:
Unsigned 0 fixes warning check_valid_size hex2bin

Otherwise bytes.size() is unsigned, and 0 is signed, which causes
warning: comparison of integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
if (current != expected) {
in instantiation of function template specialization 'sodiumpp::check_valid_size<unsigned long, int>' requested here
check_valid_size( bytes.size() % 2 , 0 , "length must be even" , func );

Seems good idea with additional type check - concept ACK to that 👍

@rfree-d  seems good idea to use unsigned 0 with size_t

source: gharchive/pull-request

authors: mikurys rfree-d

repo: yedino/sodiumpp


text:
Latest vim9script deprecated usage of # in function name

I suggest replace such functions with capital first letter and prepend export.
I'm not sure if vim8 vimrc will need to call import to call lsp#setOptions.
It might be a good idea to migrate to global variable based config like the old times, as it is bit awkward to call import during configuration.

A such commit would look like this, though probably it'll need a lot of patching to make it up to the standard of this project.
https://github.com/kohnish/lsp/commit/74f8d32192189ec292b5a37fc6ef2adcf7e28a33

Thanks for the patch. I have committed aeede042a93441f038f6b36448aaf383969bc86b to support the LSP plugin with both the latest Vim and an older version. Some of the changes are similar to what you have done in your branch. Can you try the updated plugin and let me know if you see any issues? Thanks

Thanks for such a fast patch.
This seems to work with the latest master.  (From vim9script vimrc)
source $HOME/.vim/pack/plugins/opt/lsp/plugin/lsp.vim
g:LspAddServer(lsp_servers)

Instead of sourcing the plugin/lsp.vim file, why can't you use "packadd lsp"?

Hey, thanks for the tip. I already do it but didn't work out (function not found) I'll try it later with up-to-date vim.

authors: kohnish yegappan

repo: yegappan/lsp


text:
(#140) SCOM tests

As per #140
SCOM value for OneVoidMethodWithoutParams and OneMethodCreatesLambda cannot be NaN for the same reason as in #207. See SCOM.xsl#L118. The value is NaN when amount of methods is less than 1 or when amount of attributes is 0. OneVoidMethodWithoutParams and OneMethodCreatesLambda have in fact two methods because the Skeleton treats ctor as a method. See this discussion: https://github.com/yegor256/jpeek/pull/207#issuecomment-367281359

Job #210 is now in scope, role is REV

Codecov Report

Merging #210 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #210   +/-   ##
=========================================
  Coverage     74.41%   74.41%
  Complexity      163      163
=========================================
  Files            31       31
  Lines          1020     1020
  Branches         73       73
=========================================
  Hits            759      759
  Misses          231      231
  Partials         30       30

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fc4437f...aff04af. Read the comment docs.

This pull request #210 is assigned to @amihaiemil/z, here is why. The budget is 15 minutes, see §4. Please, read §27 and when you decide to accept the changes, inform @yegor256/z (the architect) right in this ticket. If you decide that this PR should not be accepted ever, also inform the architect.

@amihaiemil done. Please take a look again when you get a chance.

@rultor good to merge

@rultor good to merge

@amihaiemil Thanks for your request. @yegor256 Please confirm this.

@yegor256 can we merge this?

@rultor merge

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@ypshenychka/z please review this job, as in §30; the job will be fully closed and all payments will be made when the quality review is completed

@rultor merge

@yegor256 Done! FYI, the full log is here (took me 12min)

@amihaiemil According to our QA Rules:

The code reviewer found at least three problems in the code.
Comments were mostly about design problems, not cosmetic issues.

No issues were found during code review.
Please confirm that you'll try to find at least three problems while future reviews.

@ypshenychka I confirm. Again, PR is too small for double review :)

@amihaiemil Thanks! I see :) Probably policy will be revised soon.

@0crat quality acceptable

@ypshenychka Can you comment again the verdict? 0crat missed it apparently.

QA review completed: +8 points just awarded to @ypshenychka/z, total is +797

Order was finished, quality was "acceptable": +15 points just awarded to @amihaiemil/z, total is +1085

@0crat quality acceptable (here)

@ypshenychka The job #210 is now out of scope

Payment to ARC for a closed pull request, as in §28: +10 points just awarded to @yegor256/z, total is +10964

authors: 0crat amihaiemil codecov-io rexim rultor yegor256 ypshenychka


text:
feat(#64): fill CacheTojo

Tojos.KEY -> Tojos.ID_KEY
Add toMap method to Tojo
Init CacheTojo cache

Closes: #64

@yegor256 Could you have a look, please?

@rultor merge

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@yegor256 Could you release a new version, please?

@rultor release, tag is 0.18.1

@rultor release, tag is 0.18.1

@yegor256 OK, I will release it now. Please check the progress here

@rultor release, tag is 0.18.1

@yegor256 Done! FYI, the full log is here (took me 6min)

authors: rultor volodya-lombrozo yegor256


text:
Unable to run yo under "yarn dlx" due to ghost dependency issue

Yarn (berry) reported that @yeoman/conflicter tried to access slash, but it isn't declared in its dependencies, as shown below:
yarn dlx -p yo -p generator-code -- yo code

➤ YN0000: · Yarn 4.3.1
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + generator-code@npm:1.11.1, yo@npm:5.0.0, @babel/code-frame@npm:7.24.7, @babel/helper-validator-identifier@npm:7.24.7, @babel/highlight@npm:7.24.7, @babel/runtime@npm:7.25.4, @inquirer/figures@npm:1.0.5, @isaacs/cliui@npm:8.0.2, and 715 more.
➤ YN0000: └ Completed in 12s 82ms
➤ YN0000: ┌ Post-resolution validation
➤ YN0086: │ Some peer dependencies are incorrectly met by dependencies; run yarn explain peer-requirements for details.
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0013: │ 723 packages were added to the project (+ 57.24 MiB).
➤ YN0000: └ Completed in 5s 619ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0007: │ spawn-sync@npm:1.0.15 must be built because it never has been before or the last one failed
➤ YN0007: │ core-js@npm:3.38.1 must be built because it never has been before or the last one failed
➤ YN0007: │ yo@npm:5.0.0 must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 4s 512ms
➤ YN0000: · Done with warnings in 22s 380ms

Error: @yeoman/conflicter tried to access slash, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: slash (via "slash/package.json")
Required by: @yeoman/conflicter@virtual:706c434fa0d273ff58c2c71c28af552aaa6a42026db7b1545266a45448b78a3bf21a36ca31f567270c1dc0b0158be52540288360d87407484ef76beb5750f618#npm:2.0.0 (via /data/data/com.termux/files/usr/tmp/xfs-7efc17ae/dlx-28030/.yarn/__virtual__/@yeoman-conflicter-virtual-a20303c9a5/0/cache/@yeoman-conflicter-npm-2.0.0-72ba9e773c-2197e5e98b.zip/node_modules/@yeoman/conflicter/dist/yo-resolve.js)

    at makeError (/data/data/com.termux/files/usr/tmp/xfs-7efc17ae/dlx-28030/.pnp.cjs:12873:34)
    at resolveToUnqualified (/data/data/com.termux/files/usr/tmp/xfs-7efc17ae/dlx-28030/.pnp.cjs:14521:21)
    at Object.resolveToUnqualified (/data/data/com.termux/files/usr/tmp/xfs-7efc17ae/dlx-28030/.pnp.cjs:14701:26)
    at resolve$1 (file:///data/data/com.termux/files/usr/tmp/xfs-7efc17ae/dlx-28030/.pnp.loader.mjs:2033:31)
    at nextResolve (node:internal/modules/esm/hooks:746:28)
    at Hooks.resolve (node:internal/modules/esm/hooks:238:30)
    at handleMessage (node:internal/modules/esm/worker:199:24)
    at Immediate.checkForMessages (node:internal/modules/esm/worker:141:28)
    at process.processImmediate (node:internal/timers:483:21)

I can confirm that this specific error has been gone now. Thank you for quickly handling it and for publishing the fix, @mshima!

Output
yarn dlx -p yo -p generator-code -- yo code

➤ YN0000: · Yarn 4.3.1
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + generator-code@npm:1.11.1, yo@npm:5.0.0, @babel/code-frame@npm:7.24.7, @babel/helper-validator-identifier@npm:7.24.7, and 726 more.
➤ YN0000: └ Completed in 7s 27ms
➤ YN0000: ┌ Post-resolution validation
➤ YN0086: │ Some peer dependencies are incorrectly met by dependencies; run yarn explain peer-requirements for details.
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0013: │ 730 packages were added to the project (+ 57.22 MiB).
➤ YN0000: └ Completed in 0s 486ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0007: │ spawn-sync@npm:1.0.15 must be built because it never has been before or the last one failed
➤ YN0007: │ core-js@npm:3.38.1 must be built because it never has been before or the last one failed
➤ YN0007: │ yo@npm:5.0.0 must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 6s 81ms
➤ YN0000: · Done with warnings in 13s 820ms

Error code

You don't seem to have a generator with the name “generator-code” installed.
But help is on the way:

You can see available generators via npm search yeoman-generator or via http://yeoman.io/generators/.
Install them with npm install generator-code.

To see all your installed generators run yo --generators. Adding the --help option will also show subgenerators.

If yo cannot find the generator, run yo doctor to troubleshoot your system.

It seems doesn't work due to Yarn PnP, which isn't yet supported, I guess. However, nodeLinker: node-modules option works:
yarn run yo code

(node:18386) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

     _-----_     ╭──────────────────────╮
    |       |    │   Welcome to the Visual  │
    |--(o)--|    │   Studio Code Extension  │
   `---------´   │        generator!        │
    ( _´U`_ )    ╰──────────────────────╯
    /___A___\   /
     |  ~  |
   __'.___.'__
 ´   `  |° ´ Y `

? What type of extension do you want to create? (Use arrow keys)
❯ New Extension (TypeScript)
  New Extension (JavaScript)
  New Color Theme
  New Language Support
  New Code Snippets
  New Keymap
  New Extension Pack
  New Language Pack (Localization)
  New Web Extension (TypeScript)
  New Notebook Renderer (TypeScript)

repo: yeoman/yeoman-api


text:
microsoft/sharepoint generator

Hey,
I try run yo @microsoft/sharepoint
I get "Error
Current environment doesn't provides some necessary feature this generator needs."
yesterday before your update the version its work
My environment
v16.13.0 node

Try to reinstall the @microsoft/sharepoint generator

I get the same error when trying to use it with @microsoft/sharepoint.
OS: macOS 14.0
Node: 18.18.2 (v16 and v18 are supported by Sharepoint Framework v1.18.*)
Here is the debug output:
yo @microsoft/sharepoint --debug
Error @microsoft/sharepoint --debug

Error: Current environment doesn't provides some necessary feature this generator needs.
    at new Generator (/usr/local/lib/node_modules/@microsoft/generator-sharepoint/node_modules/yeoman-generator/lib/index.js:259:13)
    at new BaseGenerator (/usr/local/lib/node_modules/@microsoft/generator-sharepoint/lib/common/BaseGenerator.js:44:9)
    at new AppGenerator (/usr/local/lib/node_modules/@microsoft/generator-sharepoint/lib/generators/app/index.js:61:9)
    at FullEnvironment.instantiate (file:///usr/local/lib/node_modules/yo/node_modules/yeoman-environment/dist/environment-base.js:252:27)
    at FullEnvironment.create (file:///usr/local/lib/node_modules/yo/node_modules/yeoman-environment/dist/environment-base.js:246:21)
    at async FullEnvironment.run (file:///usr/local/lib/node_modules/yo/node_modules/yeoman-environment/dist/environment-full.js:307:27)
    at async init (/usr/local/lib/node_modules/yo/lib/cli.js:168:5)
    at async pre (/usr/local/lib/node_modules/yo/lib/cli.js:83:3)
    at async /usr/local/lib/node_modules/yo/lib/cli.js:193:3

As workaround install v4 npm install yo@4.

authors: MoriaNuri baender mshima

repo: yeoman/yo

license_source: bigquery


text:
IndexError: index 13400 is out of bounds for dimension 0 with size 13000

我用人物胸部以上的视频来训练，结果在步骤4. 训练头部RAD-NeRF渲染器时报错，麻烦大佬帮忙看看，谢谢
执行脚本如下
python tasks/run.py \
--config=egs/datasets/videos/${VIDEO_ID}/lm3d_radnerf.yaml \
--exp_name=${VIDEO_ID}/lm3d_radnerf

报错信息如下
Loading model from: /opt/anaconda3/envs/geneface/lib/python3.9/site-packages/lpips/weights/v0.1/alex.pth
| Copied codes to checkpoints/Teacher01-face/lm3d_radnerf/codes/20230915194830.
| cond_prenet Trainable Parameters: 0.050M
| cond_att_net Trainable Parameters: 0.004M
| position_embedder Trainable Parameters: 1.807M
| ambient_net Trainable Parameters: 0.029M
| ambient_embedder Trainable Parameters: 1.111M
| sigma_net Trainable Parameters: 0.041M
| direction_embedder Trainable Parameters: 0.000M
| color_net Trainable Parameters: 0.019M
Sanity Val: 100%|████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00,  4.16step/s]
| Validation results@0: {'total_loss': 0.2622, 'mse_loss': 0.0085, 'lpips_loss': 0.2537}
46step [00:04,  9.92step/s, ambient_loss=0.0914, head_psnr=27, lr_0=0.0005, mse_loss=0.00198, weights_entropy_loss=0.116]
Traceback (most recent call last):
File "/home/tailangjun/Documents/AIGenHuman/2DHuman/GeneFace/tasks/run.py", line 19, in
run_task()
File "/home/tailangjun/Documents/AIGenHuman/2DHuman/GeneFace/tasks/run.py", line 14, in run_task
task_cls.start()
File "/home/tailangjun/Documents/AIGenHuman/2DHuman/GeneFace/utils/commons/base_task.py", line 251, in start
trainer.fit(cls)
File "/home/tailangjun/Documents/AIGenHuman/2DHuman/GeneFace/utils/commons/trainer.py", line 122, in fit
self.run_single_process(self.task)
File "/home/tailangjun/Documents/AIGenHuman/2DHuman/GeneFace/utils/commons/trainer.py", line 186, in run_single_process
self.train()
File "/home/tailangjun/Documents/AIGenHuman/2DHuman/GeneFace/utils/commons/trainer.py", line 286, in train
pbar_metrics, tb_metrics = self.run_training_batch(batch_idx, batch)
File "/home/tailangjun/Documents/AIGenHuman/2DHuman/GeneFace/utils/commons/trainer.py", line 333, in run_training_batch
output = task_ref.training_step(*args)
File "/home/tailangjun/Documents/AIGenHuman/2DHuman/GeneFace/utils/commons/base_task.py", line 109, in training_step
loss_ret = self._training_step(sample, batch_idx, optimizer_idx)
File "/home/tailangjun/Documents/AIGenHuman/2DHuman/GeneFace/tasks/radnerfs/radnerf.py", line 194, in _training_step
loss_output, model_out = self.run_model(sample)
File "/home/tailangjun/Documents/AIGenHuman/2DHuman/GeneFace/tasks/radnerfs/radnerf.py", line 133, in run_model
model_out = self.model.render(rays_o, rays_d, cond_inp, bg_coords, poses, index=idx, staged=False, bg_color=bg_color, perturb=True, force_all_rays=False, **hparams)
File "/home/tailangjun/Documents/AIGenHuman/2DHuman/GeneFace/modules/radnerfs/renderer.py", line 289, in render
ind_code = self.individual_embeddings[index]
IndexError: index 13400 is out of bounds for dimension 0 with size 13000

搞清楚了，训练的视频中有个地方有扭头，把这段截断就好了

搞清楚了，训练的视频中有个地方有扭头，把这段截断就好了

请问原视频中不能有扭头的，只能是正视前方的视频对吗？我现在处理的视频中有很多扭头的地方，处理postnet的时候也报这个错误了

authors: muximuxi tailangjun

repo: yerfor/GeneFace


text:
Issues of DaisyUI styles

Here is list of components that doesn't have styles

[x] Navbar
[x] Dropdown
[x] Offcanvas
[x] Pagination
[x] Popover
[x] Slider
[x] Tooltip
[x] Toast

and here is components which have some problems

[x] #336
[x] ~El -> Colors of text inside darker backgrounds should be white~
[x] Autocomplete -> in custom Options example Flag should be left side of country name
[x] #342
[x] #337
[x] #343
[x] #344
[x] #345
[x] #338
[x] #346
[x] #347
[x] #348
[x] CheckboxGroup -> Same problems of Checkbox
[x] InputGroup -> Left corners should be rounded
[x] Icon -> Icons should be side by side (display should be inline-block)
[x] Input -> States example is not working
[x] Input -> borderRounded and borderFlush styles are missing
[x] InputGroup (examples) ->  Checkboxes and Radios example is using tabler's classes
[x] Label -> required should show red dot next to text
[x] Radio -> some colors are not working (green, red, blue, ...)
[x] Radio -> inline and reverse doesn't have effect,
[ ] Sidebar (example) -> styles are mixed with tabler's styles
[x] Steps -> color have some problem
[x] Steps -> Vertical example is not working correctly
[x] Spinner -> size doesn't have effect
[x] Switch -> inline and reverse is not working
[x] Table -> in borderless mode, remove horizontal borders
[x] Table -> hover prop is not working (should change row's color when hovered)
[x] Tab -> Icons inside tabItem is not showing correctly
[x] Tab -> styles for Vertical tabs doesn't exists
[x] Textarea -> size, borderFlush and borderRounded props doesn't have styles
[ ] #349
[x] FormCheckbox -> label and description should be in 2 rows (now it is in 2 columns)
[x] #350
[ ] FormField -> Validation messages color should be based on state
[ ] Demo pages (examples) -> Signup, Login, ... pages are not looking good
[x] #339

Background color is only working for one page (height: 100vh)

dark mode styles are not available yet (I think).

missing styles for .y-alert-close

FormField -> Validation messages color should be based on state

@TheHadiAhmadi which page?

Sidebar (example) -> styles are mixed with tabler's styles

@TheHadiAhmadi You mean the sidebar of the document site itself? or somewhere else? (becuase I don't see a "Examples" under "examples" menu)

Sidebar (example) -> styles are mixed with tabler's styles

@TheHadiAhmadi You mean the sidebar of the document site itself? or somewhere else? (becuase I don't see a "Sidebar" under "examples" menu)

I think this problem is resolved now, previously in /docs/sidebar page both styles (tabler & daisyui) were loaded. you can mark it as done

Don't rely on the example shown in above screenshot (pink background): we should change that.

authors: TheHadiAhmadi pournasserian saadeghi

repo: yesvelte/yesvelte


text:
refactor(config): allow prompt overriding in opts

Motivation
Given that the README clearly states “avante.nvim only recommends using the claude-3.5-sonnet model” and “We do not accept changes to the code or prompts to accommodate other models”, is it possible to provide an option allowing users to override the default prompts with those suitable for their specific models?
Modification

Add llm config section to Avante setup
Introduce planning_mode_user_prompt_tpl, editing_mode_user_prompt_tpl and system_prompt fields
Update LLM prompt logic to use custom config options if available

Sorry, I have a major refactor regarding prompts here, and your PR will need to be refactor accordingly: https://github.com/yetone/avante.nvim/pull/382

Now the code in this pull request has been aligned with the latest commit.

I'm very sorry, I just made some changes.

Now the code in this pull request has been aligned with the latest commit again.

authors: corenel yetone


text:
Add link to the rust-yew vscode plugin to the yew docs

Description
This PR added links to the Rust Yew extension, providing some html! macro feature support,  on VSCode marketplace and github repository; Per @WorldSEnder 's request.
Closes https://github.com/TechTheAwesome/code-yew-server/issues/13
Checklist

[x] I have reviewed my own code
[ ] I have added tests

Thanks for the PR! There's one thing I will ask: please mention that it is a community maintained extension
How about now? :open_mouth:

repo: yewstack/yew


text:
Ubuntu-20.04失效了 无法进行修改源

希望您有时间修复一下 辛苦了

已更新

authors: namezzy yhangf

repo: yhangf/PyQuickInstall


text:
Exceptions

Is it expected that I should get the ff. exception messages while running the train script?
Exception: need more than 3 values to unpack
Exception: a must be non-empty
Setup
Python = 2.7.13
TF version = 1.2.1

It seems like the Exception: need more than 3 values to unpack is caused by line

X2, Y1, Y2, IouS = roi_helpers.calc_iou(R, img_data, C, class_mapping)

of the training script. Is the IouS variable needed? I seems it's not use anywhere in the script.

I deleted the IouS, since it appear it was for debugging purposes. I trained and everything seems to be working fine. So my advice is to delete it.

ok, everything seems after removing the IouS. Thank you.

authors: jahdiel leifsyliongka

repo: yhenon/keras-frcnn


text:
hasMany via two relations fails when using through ActiveRecord::find with

I have these relations:
public function getTabInstances()
{
return $this->hasMany(\commonFiles\models\TabInstance::className(), ['related_id'=>'id'])
->with(['tab'])
->where(['related_table'=>static::tableName()]);
}

public function getComponentInstances()
{
return $this->hasMany(\commonFiles\models\ComponentInstance::className(), ['tab_instance_id' => 'id'])
->via('tabInstances')
->with(['component']);
}

public function getItemInstances()
{
return $this->hasMany(\commonFiles\models\ItemInstance::className(), ['tab_instance_id' => 'id'])
->via('tabInstances')
->with(['item'])
->orderBy(['index_number' => SORT_ASC, 'item_count' => SORT_ASC]);
}

Then when trying to acces them via the script below:
$models = \app\models\FilmShoot::find(['is_active' => true])
->with('filmProduction.itemInstances', 'place.translation')
->all();

the count of 'itemInstances' is 0.
When changing the script to lazy loading (removing itemInstances from with and load them in foreach loop) the result is what I expect, not 0.

how do the relations you use in the query relate to the relations you define above? please give more information about the schema and which models relate in which way.

The table tab_instance is linked to film_production through the fields related_table and related_id.
So what I'm trying to get is:
FilmShoot models, with the itemInstances linked to the filmProduction model

authors: cebe jurgendejonge


text:
Bug: incorrect  formatter output with explicit thousandSeparator

var_dump(
                \Yii::$app->language,
                \Yii::$app->formatter->thousandSeparator,
                \Yii::$app->formatter->asCurrency(2000)
            ); exit;
/*OUTPUT
  string 'en-US' (length=5)
  string ' ' (length=1)
  string '$2,000' (length=6)
*/

Fixed, thanks for reporting!

@cebe //similar error with MIN_FRACTION_DIGITS!
'numberFormatterOptions'=>[
                NumberFormatter::MIN_FRACTION_DIGITS => 0,
                NumberFormatter::MAX_FRACTION_DIGITS => 0,
 ]

\Yii::$app->formatter->asCurrency($model->formatedPrice, 'EUR');

//output 129 517,00 €

@exru could you create a separate issue?

authors: SilverFire cebe exru


text:
Exception SAVEPOINT LEVEL1 does not exist instead of deadlock exception

What steps will reproduce the problem?
\Yii::$app->db->transaction(function () {
    \Yii::$app->db->transaction(function () {
        // here comes queries to cause unexpected deadlock
    });
});

What is the expected result?
See an exception about deadlock.
What do you get instead?
Exception SAVEPOINT LEVEL1 does not exist from https://github.com/yiisoft/yii2/blob/2.0.9/framework/db/Connection.php#L690
Additional info

Q
A

Yii version
2.0.9

PHP version
7.0.8

MySQL
5.7

OS
Ubuntu 16.04.2

Which DBMS do you use?

MySQL 5.7

I did hope but it's not. When deadlock occuring, PDO::inTransaction() is still true.
What about such patch? It keep throwing original exception from transaction body, ignoring (logging) exception from rollback().
 } catch (\Exception $e) {
     if ($transaction->isActive && $transaction->level === $level) {
+        try {
             $transaction->rollBack();
+        } catch (\Exception $e_rollback) {
+            \Yii::error($e_rollback, __METHOD__);
+            // continue to throw original exception $e
+        }
     }
     throw $e;
 }

Both exception has previous exception, so it cannot be attached to each other without separate exception class.
Is PR acceptable? Is test case required (can second connection be opened just with DatabaseTestCase::prepareDatabase() keeping other tests work?)?

Unit test is required and, I think, it's better to start with PR which contains failing test without a fix first.

I need to do pcntl_fork() to run into deadlock in the test case. Is it allowed for tests ever?

No idea if it would work with travis.

@Vovan-VE if it helps to create a test case that is reliable and produces the error it is fine. @samdark travis is running plain ubuntu instances so if it works locally it should be fine on travis.

Currently I made deadlock situation.
I currently playing with MySQL only at first. I do the following steps (both transactions are SERIALIZABLE):

process A
process B

START TRANSACTION
wait

SELECT ... WHERE id = 42 (shared lock)
wait

kick process B to resume
START TRANSACTION

sleep(1)
UPDATE ... WHERE id = 42 (wait for exclusive lock)

UPDATE ... WHERE id = 42

I'm not sure if it will work for other DBMS or not. With MySQL if switch isolation to REPEATABLE READ, then SELECT ... LOCK IN SHARE MODE is required to hit deadlock, but it's MySQL specific AFAIK.
I fork one child. There are currently following problems:

I want parent process to hit deadlock, so I do bad transaction in parent (process A). It seemed logically for me: bad logic - bad result. But MySQL (unexpectedly for me) dooms harmless child process B which does correct transaction. I'm not sure is it consistent result or not. I will try to spawn two children and will do transactions there. Here I need to lift up info about expected and/or unexpected exception. I don't know how better to do this. Child exit status is not enough. I will use at first just temp files.

In case of accident PHP's fatal error in child process phpunit continues to run all other tests there, while parent has some relax nearby inside pcntl_waitpid(). After that parent continues to run all the same rest tests. The output in terminal is a mess. I'm not so familar with phpunit. I'm catching \Exception in child process and do exit anyway. I don't know how to deal with this.

Just as a note. https://www.percona.com/blog/2012/08/17/percona-xtradb-cluster-multi-node-writing-and-unexpected-deadlocks/
Cross-node transactions may cause deadlock more easily, but only at COMMIT, not at safepoints.

authors: SilverFire Vovan-VE cebe samdark


text:
Migration Generator - incorrect foreign key field

What steps will reproduce the problem?
yii migrate/create create_products_combine_with_table  --fields="combine_with_id:bigPrimaryKey:unsigned,product_id:bigInteger:unsigned:notNull:foreignKey(products)"
Some clarification - primary key of products table is product_id
It is generating id but should generate product_id
What is the expected result?
public function up()
{
    ...

    // add foreign key for table `products`
    $this->addForeignKey(
        'fk-products_combine_with-product_id',
        'products_combine_with',
        'product_id',
        'products',
        'product_id',
        'CASCADE'
    );
}

What do you get instead?
public function up()
{
    ...

    // add foreign key for table `products`
    $this->addForeignKey(
        'fk-products_combine_with-product_id',
        'products_combine_with',
        'product_id',
        'products',
        'id',
        'CASCADE'
    );
}

Additional info

Q
A

Yii version
2.0.10-dev

PHP version
5.6.9

@mdmunir

@tsanchev everything works as described in the documentation, migration mechanism is unknown about what field in the products table is the primary key.
Всё работает как и описано в документации, механизму миграции неизвестно о том, какое поле в таблице products является первичным ключом.
@SilverFire предлагаю поставить label:type:enhancement и в качестве решения могу предложить когда foreignKey прописывается с параметрами, вторым параметром передавать название поля, т.е. вот так: foreignKey(products, product_id)
Если решение устраивает, то готов приступить к реализации.

@MKiselev i think it would be better if the migration mechanism gets the primary key field directly from the database of the given table instead of an extra parameter to foreignKey

@tsanchev the mechanism of creating migration nowhere use the database component, so I think members unlikely to support the idea.

There are 2 ways of solving the problem:

Specify FK column as parameter.
Get FK column from DB (that would require querying existing schema).

These two could be combined. If key isn't specified, get it from DB.

@samdark Ok.
I resolve this issue.

I was made this logic:

FK field may set like this: foreignKey(products product_id)
Please make code review.
If all good, i will update docs.

@samdark thanks for code review.
Add this logic for create junction too?

Yes.

authors: MKiselev SilverFire samdark tsanchev


text:
Неверно работает разбор построителя запросов

Делаем простой запрос с джоином 2х таблиц.
Pair::find()->joinWith('source')
            ->select("CONCAT(pair.name, source.name) name, pair.id ")
            ->indexBy('id')
            ->column())

При разборе получаем вот это
SELECT CONCAT(pair.name, source.name)AS name, pair.id FROM pair LEFT JOIN source ON pair.source_id = source.id

апостораф, который должен закрывать  source.`name выносится за скобки и я получаю ошибку синтаксиса SQL
Решается путем ручного вписывания апострафов
Pair::find()->joinWith('source')
            ->select("CONCAT(pair.name, `source`.`name`) name, pair.id ")
            ->indexBy('id')
            ->column())

Additional info

Q
A

Yii version
2.0.15.1?

PHP version
7.0.8

Operating system
win7

https://www.yiiframework.com/doc/api/2.0/yii-db-expression

при замене на такую конструкцию
$expr = new \yii\db\Expression('CONCAT_WS(" ",pair.name, source.name) name, pair.id');

        $form->field($model,'PairID')->dropDownList(Pair::find()->joinWith('source')
        ->select($expr)
        ->indexBy('id')
        ->column()

на выходе получаю не результат запроса, а  само выражение
CONCAT_WS(" ",pair.name, source.name) name, pair.id

Can you provide the plain query? Hint : "explain" is your best friend.

`        $expr = new \yii\db\Expression('CONCAT_WS(" ",pair.name, source.name) as name, pair.id');
    $form->field($model,'PairID')->dropDownList(Pair::find()->joinWith('source')
        ->select($expr)
        ->indexBy('id')
        ->column()`

authors: gaginsgagins samdark schmasterz


text:
How to update bootstrap to 3.3.5?

How to update bootstrap to 3.3.5? When will it be available as yii package

https://github.com/yiisoft/yii2-bootstrap/issues/62

authors: klimov-paul tsvetann


text:
Add limit 1 to improve performance of BaseActiveRecord::findOne()

I have noticed manual annotation, but in BaseActiveRecord::findOne() there is no chance to add limit (1) unless override this method.
Lots of time we can not construct an unqiue condition (such as just get the first record after sorting), it cause performance problem when granted call findOne().
There is no reason to refuse such modifications.
    public static function findOne($condition)
    {
        return static::findByCondition($condition)->limit(1)->one();
    }

Further, we can optimize Query::one() as following.
    public function one($db = null)
    {
        $oldLimit = $this->limit;
        $result = $this->limit(1)->createCommand($db)->queryOne();
        $this->limit = $oldLimit;
        return $result;
    }

Duplicates #4348

Hello, my main point is to add limit(1) within BaseActiveRecord::findOne(), rather than the Query::one().
Could you look into my content, completely unable to add a limit (1) to findOne(), it is a static method, unless overridden method.  This is entirely a trick.
@qiangxue @klimov-paul

findOne() is a shortcut for the very simple case. If you need anything more, you should use ::find()->limit(1)->one()

@cebe I certainly know that we can do so, I accept the implementation of Query::one() implementation, but it is difficult to accept not add limit(1) to ActiveRecord::findOne().

And, I really do not know what harm with limit(1) in findOne(), internal Query object will not be reused forever.

authors: cebe hightman klimov-paul


text:
Improve SQL LIKE condition handling and testing (fixes #13745)

Q
A

Is bugfix?
yes

New feature?
no

Breaks BC?
no

Tests pass?
yes

Fixed issues
#13745

This PR adds real db tests of QueryBuilder’s LIKE handling and fixes all bugs I found for now:

Cubrid doesn’t like \, it’s okay with !
Oracle doesn’t have a quote char by default at all, moreover later pro_oci versions (in PHP 7.x) handle quoting so they won’t quote \ while in PHP 5.x Yii will do it by itself (which leads to another bug, that inserts \\ instead of \ but it’s another issue…)
sqlsrv driver doesn’t like preparing (it keeps telling about placeholders/params count mismatch) when using ESCAPE

Confirmed: https://github.com/yiisoft/yii2/issues/13745#issuecomment-285888783

Merged. Thanks!

authors: samdark sergeymakinen


text:
Add statement for solving error in php 8.1

When use php 8.1 to run program an error has been occurred to passing parameter because this structure was deprecated

Q
A

Is bugfix?
✔

New feature?
❌

Fixed issues
#19684

Casting $value to string should be enough.

Casting $value to string should be enough.
Since you cast $value to string ,when this variable is null the value was set to string with no length. that is a extra process to run in the next line when you should bind this string by params.

I proposed another fix: https://github.com/yiisoft/yii2/pull/19828

authors: bizley metroo uaoleg


text:
[Question] How to use component level props/methods inside upload method for image?

Hi, love your package! I want to use component props (or methods) inside the custom upload function, but I can't figure out how to do that. Either would be fine, because I have component props that determine the image url.
I'm using Nuxt 2, Vue 2.7 and vuetify-pro-tiptap 1.4.3

// use upload props
const VuetifyProTipTap = createVuetifyProTipTap({
  vuetify,
  config: {
    image: {
      async upload(file: File) {
        // You can use your upload method here
        // Must be a Promise
        const body = new FormData()
        body.append('file', file)
        const res = await fetch('https://test.com/upload', {
          method: 'POST',
          body,
          headers: {
            'Content-Type': 'multipart/form-data'
          }
        })

        if (!res.ok) {
          throw new Error('Upload error!')
        }

        const result = await res.json()

        return result.url
      }
    }
  }
})

// or if you want to customize the style
import UploadImage from './components/UploadImage.vue'

const VuetifyProTipTap = createVuetifyProTipTap({
  vuetify,
  config: {
    image: {
      imageTabs: [{ name: 'UPLOAD', component: UploadImage }],
      hiddenTabs: ['upload'],
      upload(file: File) {
        // You can use your upload method here
        const url = URL.createObjectURL(file)
        console.log('mock upload api :>> ', url)
        return Promise.resolve(url)
      }
    }
  }
})

I'm afraid you misunderstood. I'm trying to do the following:
<template>
  <div>
    <ClientOnly>
      <vuetify-tiptap v-model="content" :config="config" :toolbar="toolbar" />
    </ClientOnly>
  </div>
</template>
<script lang="ts">
import Vue from 'vue'
import {
  VuetifyTiptap,
  ToolbarType,
  StarterKitOptions,
} from 'vuetify-pro-tiptap'

export default Vue.extend({
  components: {
    VuetifyTiptap,
  },
  props: {
    linkType: {
      type: String,
      required: true,
    },
  },
  data() {
    return {
      content: '',
      config: {
        image: {
          upload(file: File) {
            // Either use propType
            // Upload image to backend
            // Get src as result
            // Return src
            return Promise.resolve(`https://backend/${this.linkType}/id`)

            // Or call method
            return this.uploadImage()
          },
        },
      } as Partial<StarterKitOptions>,
      toolbar: [
        /* list of items */
      ] as ToolbarType[],
    }
  },
  methods: {
    async uploadImage() {
      // Upload image to backend
      // Get src as result
      // Return src
      return Promise.resolve(`https://backend/${this.linkType}/id`)
    },
  },
})
</script>

https://backend/${this.linkType}/id
Is this an image link or upload API ？
If he is uploading the API you should do this
async function uploadImage(file: File) {
  const body = new FormData()
  body.append('file', file)

  const res = await fetch(`https://backend/${this.linkType}/id`, {
    method: 'POST',
    body,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })

  return await res.json()
}

authors: mtdvlpr yikoyu

repo: yikoyu/vuetify-pro-tiptap


text:
optimize reconciler.commit method

optimize: in reconciler/commit method, we should declare fiberHooks just one time for performance reason, you know, every dot operation is a hash get process for js engine

Thanks!

Your editor changed the line-breaks in that file.
We just lost the source history of that file.
Take care when diffing/merging - you probably have "ignore whitespace" enabled in your editor/diffing tool? Always good to take a look at the File changed tab, where you would have seen that every line in that file shows up as changed...

authors: fantasticsoul mindplay-dk yisar

repo: yisar/fre


text:
Design and add banner to link to the github repo

I don't have mockups, feel free to use your creative mind for this design.
It can be as simple as a button or more elaborate.

It should be located at the top right corner
When you click on it it opens to https://github.com/yisselda/SlackableThemes in another tab

Hi 👋  @yisselda , Can I work on this ?

repo: yisselda/SlackableThemes


text:
如何加载自己训练的权重文件

你好，请问怎么加载自己训练的模型的权重文件啊，我在输入自己的网络和权重文件路径之后，总是会出现以下错误，其中第二行很长我省略了后面的部分。
RuntimeError: Error(s) in loading state_dict for DenseNet:
Missing key(s) in state_dict: "features.conv0.weight",
Unexpected key(s) in state_dict: "state_dict".

@zhang0391 保持预测模型与训练模型一致。

https://discuss.pytorch.org/t/unexpected-key-in-state-dict-bn1-num-batches-tracked/29454/5

请问你是如何设置自己的网络和权重路径的，我加载模型总是出问题，非常感谢

@Dtappledoghuati 把代码和问题都贴出来把


text:
Cannot Display Checkgroup Properly

Hi, there. Thanks for helping me last time.
Recently when I was trying to write codes about Checkgroup in pyqt, as follow:
# importing libraries
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from qt_sass_theme.qtSassTheme import QtSassTheme

class Window(QMainWindow):
    def __init__(self):
        super().__init__()
         # setting title
        self.setWindowTitle("PyQt CheckGroup")
         # setting geometry
        self.setGeometry(100, 100, 500, 400)
         # calling method
        self.UiComponents()
         # setting theme
        t = QtSassTheme()
        t.getThemeFiles(theme='light_gray', font_size=10)
        t.setThemeFiles(main_window=self)
         # showing all the widgets
        self.show()
     # method for components
    def UiComponents(self):
         # creating a menu bar
        menubar = self.menuBar()
         # creating a selection menu
        selMenu = menubar.addMenu('Selection')
         # creating QAction Instances
        action1 = QAction("One", self)
        action2 = QAction("Two", self)
        action3 = QAction("Three", self)
        action4 = QAction("Four", self)
         # making actions checkable
        action1.setCheckable(True)
        action1.setChecked(True)
        action2.setCheckable(True)
        action3.setCheckable(True)
        action4.setCheckable(True)
         # adding these actions to the selection menu
        selMenu.addAction(action1)
        selMenu.addAction(action2)
        selMenu.addAction(action3)
        selMenu.addAction(action4)
         # creating a action group
        action_group = QActionGroup(self)
         # adding these action to the action group
        action_group.addAction(action1)
        action_group.addAction(action2)
        action_group.addAction(action3)
        action_group.addAction(action4)
         # creating a label
        label = QLabel("GeeksforGeeks", self)
         # setting geometry to the label
        label.setGeometry(100, 150, 200, 50)
         # adding triggered action to the first action
        action1.triggered.connect(lambda: label.setText("Action 1 is Checked"))
         # adding triggered action to the second action
        action2.triggered.connect(lambda: label.setText("Action 2 is Checked"))
         # adding triggered action to the third action
        action3.triggered.connect(lambda: label.setText("Action 3 is Checked"))
         # adding triggered action to the fourth action
        action4.triggered.connect(lambda: label.setText("Action 4 is Checked"))

if __name__ == "__main__":
    import sys
     # create pyqt5 app
    App = QApplication(sys.argv)
     # create the instance of our Window
    window = Window()
     # start the app
    sys.exit(App.exec())

The output is shown in pic(a), where an issue should be pointed out: your library qtsasstheme cannot display Checkgroup properly like pic(b).
(a)

(b)

I wish you could have a look at it and find out what's going on.
Looking forward to your reply^^

Hello, it's been a while.
Customizing the style of the menu item and icon with pure stylesheet is one of the most grueling experience i have ever had.
Well, enough of the complaint, i've done it. Can you test it? I spend for hours to complete this task.
If it works, please tell me ASAP, if you can :)

I’ve just tested your code and I felt so delighted to tell you that it works well for me.
Thanks for keeping helping me with qt-sass-theme and I sincerely appreciate it.
Btw, 2023 has come, may the Year of Rabbit brings a fortunate stroke of serendipity and rich blessings to you and all those you love!

Great! I hope you well too 🙂


text:
feature: update homepage and title (#83)

🛠 Fixes Issue #83
👨💻 Changes proposed
Updated homepage and app title
📷 Screenshots

Another thing, you need to add a link (a tag) within the next.js Link components. Please, refer to the documentation.

authors: rohitdasu subhoghoshX

repo: ykdojo/defaang


text:
fog simulation

Hello,I need  the fog simulation on the VoD lidar point cloud, can  you send it to my email wuyl@mails.qust.edu.cn ?Thanks!

email

Okay, but it may require some time, I need to upload it because it's too large to send by email. I expect to complete it within two days.

Hello,I need the fog simulation on the VoD lidar point cloud, can you send it to my email wuyl@mails.qust.edu.cn ?Thanks!

Okay, but it may require some time, I need to upload it because it's too large to send by email. I expect to complete it within two days.

Thanks very much. I also need the pretrained models.

Thanks very much. I also need the pretrained models.

This is the link to the pre-trained model (valid for 7 days).
https://pan.baidu.com/s/1j_JW8zNRvuGc0UNi1lnHmw?pwd=s0tr (code = s0tr)
Please note: There may be some differences in the AP performance between this .pth and paper, as I accidentally couldn't find the checkpoint that was reported in the paper. But the checkpoint accuracy of this version is also similar. However, due to too many evaluation settings in our experiment (different classes, different fog levels, and different difficulties), this may lead to differences in some specific results (good or bad), but the total performance is similar. You can first refer to the accuracy of this model or try retraining it yourself.
The dataset is still being uploaded and is expected to be completed tomorrow.

我按照您的项目首先复现了一下InterFusion，在单个A100GPU上训练了80轮，batch_size=8，得出的结果是{'entire_area': {'Car_3d_all': '50.9', 'Pedestrian_3d_all': '46.62', 'Cyclist_3d_all': '72.94', '3d_all': '56.82'}, 'roi': {'Car_3d_all': '79.49', 'Pedestrian_3d_all': '55.48', 'Cyclist_3d_all': '88.66', '3d_all': '74.55'}}，其中Car和Pedestrian类别与论文出入比较大，请问大概是什么原因呢

我按照您的项目首先复现了一下InterFusion，在单个A100GPU上训练了80轮，batch_size=8，得出的结果是{'entire_area': {'Car_3d_all': '50.9', 'Pedestrian_3d_all': '46.62', 'Cyclist_3d_all': '72.94', '3d_all': '56.82'}, 'roi': {'Car_3d_all': '79.49', 'Pedestrian_3d_all': '55.48', 'Cyclist_3d_all': '88.66', '3d_all': '74.55'}}，其中Car和Pedestrian类别与论文出入比较大，请问大概是什么原因呢

我可能也没办法直接定位问题，我提供一下InterFusion的模型与训练日志供你排查，建议可以尝试运行InterFusion模型是否能得到对应的结果来检查能否正常测试。
通过百度网盘分享的文件：InterFusion
链接：https://pan.baidu.com/s/1TBfMmd4aYc8ShGsOQ5tS_g?pwd=nx1u
提取码：nx1u

我按照您的项目首先复现了一下InterFusion，在单个A100GPU上训练了80轮，batch_size=8，得出的结果是{'entire_area': {'Car_3d_all': '50.9', 'Pedestrian_3d_all': '46.62', 'Cyclist_3d_all': '72.94', '3d_all': '56.82'}, 'roi': {'Car_3d_all': '79.49', 'Pedestrian_3d_all': '55.48', 'Cyclist_3d_all': '88.66', '3d_all': '74.55'}}，其中Car和Pedestrian类别与论文出入比较大，请问大概是什么原因呢

另外，InterFusion本质就是PointPillar加上一点模块。
建议从最简单的LiDAR-based PointPillar复现

您的：
2024-03-19 00:46:21,325   INFO  Database filter by min points Car: 15608 => 8604
2024-03-19 00:46:21,329   INFO  Database filter by min points Pedestrian: 16143 => 8557
2024-03-19 00:46:21,330   INFO  Database filter by min points Cyclist: 6685 => 4964
我的：
2024-12-18 21:40:30,982   INFO  Database filter by min points Car: 15608 => 7360
2024-12-18 21:40:30,984   INFO  Database filter by min points Pedestrian: 16143 => 908
2024-12-18 21:40:30,985   INFO  Database filter by min points Cyclist: 6685 => 221
应该是这里出现了问题，但是我的数据集的处理是完全按照您的配置文件进行的
PREPARE: {
filter_by_min_points: ['Car:5', 'Pedestrian:5', 'Cyclist:5'],
filter_by_difficulty: [-1],
}

您的： 2024-03-19 00:46:21,325 INFO Database filter by min points Car: 15608 => 8604 2024-03-19 00:46:21,329 INFO Database filter by min points Pedestrian: 16143 => 8557 2024-03-19 00:46:21,330 INFO Database filter by min points Cyclist: 6685 => 4964 我的： 2024-12-18 21:40:30,982 INFO Database filter by min points Car: 15608 => 7360 2024-12-18 21:40:30,984 INFO Database filter by min points Pedestrian: 16143 => 908 2024-12-18 21:40:30,985 INFO Database filter by min points Cyclist: 6685 => 221 应该是这里出现了问题，但是我的数据集的处理是完全按照您的配置文件进行的 PREPARE: { filter_by_min_points: ['Car:5', 'Pedestrian:5', 'Cyclist:5'], filter_by_difficulty: [-1], }

很细致的检查，可能是数据处理的代码出现了一点问题，我check一下

您的： 2024-03-19 00:46:21,325 INFO Database filter by min points Car: 15608 => 8604 2024-03-19 00:46:21,329 INFO Database filter by min points Pedestrian: 16143 => 8557 2024-03-19 00:46:21,330 INFO Database filter by min points Cyclist: 6685 => 4964 我的： 2024-12-18 21:40:30,982 INFO Database filter by min points Car: 15608 => 7360 2024-12-18 21:40:30,984 INFO Database filter by min points Pedestrian: 16143 => 908 2024-12-18 21:40:30,985 INFO Database filter by min points Cyclist: 6685 => 221 应该是这里出现了问题，但是我的数据集的处理是完全按照您的配置文件进行的 PREPARE: { filter_by_min_points: ['Car:5', 'Pedestrian:5', 'Cyclist:5'], filter_by_difficulty: [-1], }

我又尝试使用clone的代码重新生成了一次，还是得到了跟之前一致的结果。
这个问题主要是由于生成gt_base的时候lidar_num_points_in_gt和radar_num_points_in_gt（dataset 中的create_groundtruth_database方法）不对，导致大量gt点数过少被过滤掉影响到了数据增强。
因为我重新生成了一遍，基本上确保了代码没问题，大概率数据组织可能存在一定问题，建议重新检查一下组织rlfusion_5f文件夹是否存在错误。
你也可以在执行python -m pcdet.datasets.vod.vod_dataset create_vod_infos tools/cfgs/dataset_configs/Vod_fusion.yaml的过程输出一下print(db_info['lidar_num_points_in_gt'],db_info['radar_num_points_in_gt'])，查看他们的点数是否出现问题，进而往前定位到问题出在哪。

谢谢，我更新一下数据集试试

谢谢，我更新一下数据集试试

Hello,I need the fog simulation on the VoD lidar point cloud, can you send it to my email wuyl@mails.qust.edu.cn ?Thanks!

这是雾模拟的VoD lidar点云，权限因素仅开放7天尽快下载

authors: fightingand ylwhxht


text:
llama3

刚好出了llama3，是不是用新的模型训练会更好一些

确实，值得一试。

authors: insogao ymaoj