text:
scenario is not working with ajax validation

this is my controller code
public function actionRequest()
{
    $model1 = \Yii::createObject([
        'class'    => Password::className(),
        'scenario' => 'request',
    ]);
         $this->performAjaxValidation($model1);
 //echo "
"; print_r($model1->scenarios()); var_dump($model1); exit;

if ($model1->load(Yii::$app->request->post()) && $model1->sendRecoveryMessage()) {
return $this->goBack();
} else {
return $this->render('login', [
'model1' => $model1,
]);
}
}
below is model code
public function attributeLabels()
{
return [
'email'    => \Yii::t('app', 'Email'),
'password' => \Yii::t('app', 'Password'),
];
}
/** @inheritdoc */
public function scenarios()
{
    return [
        'request' => ['email'],
        'reset'   => ['password']
    ];
}
/**
 * @inheritdoc
 */
public function rules()
{
    return  [
              [['email'], 'required'],
             ['email', 'email'],
             [['username'], 'string', 'max'=>200],
             [['email'], 'string', 'max'=>200],
             ['password', 'validator'],
             ['confirmPassword', 'compare','compareAttribute'=>'newPassword', 'message'=>'Passwords not matching'],
            ];
}

and this code print_r($model1->scenarios());  giving me this
Array
(
[request] => Array
(
[0] => email
)
[reset] => Array
    (
        [0] => password
    )

)
if i m using ajax validation without scenario it is working if  i m using scenario then it is not working

if i m using ajax validation without scenario it is working if i m using scenario then it is not working

what is not working? what do you expect it to do and what do you see instead?

error is not coming if i m leaving field empty ,required validation is not working,no validation is working,

Please gan, read https://guides.github.com/features/mastering-markdown/ before posting.
What is method performAjaxValidation() do?
Its look like not normal usage.
http://www.yiiframework.com/doc-2.0/yii-widgets-activeform.html#validate()-detail

i m sorry for my post ,i did not markdown
please i said already validation is working ,even it is working with ajax also but if i m defining scenario then it is not working,i read already validate,did u ever try with same this
http://www.yiiframework.com/doc-2.0/yii-widgets-activeform.html#validate()-detail
with scenario

did u ever try with same this
http://www.yiiframework.com/doc-2.0/yii-widgets-activeform.html#validate()-detail
with scenario?

Yes i did. Its work.

can u post your working code
i have two scenario
one is checking email and second is reset password
with ajax

<?php

use yii\base\DynamicModel;
use yii\widgets\ActiveForm;
use yii\helpers\Html;

$model = new DynamicModel(['nama', 'password']);
$model->addRule(['nama', 'password'], 'required')
    ->addRule(['password'], function()use($model) {
        if ($model->password != 'pass') {
            $model->addError('password', 'Invalid');
        }
    },['on'=>'remote']);
$model->setScenario('remote');

if ($model->load(Yii::$app->request->post())) {
    if (Yii::$app->request->isAjax) {
        Yii::$app->response->format = 'raw';
        Yii::$app->response->getHeaders()->add('content-type', 'application/json');
        $this->context->layout = false;
        echo json_encode(ActiveForm::validate($model));
        return;
    }
    if ($model->validate()) {
        echo "Sukses
";
    }
}
?>
<?php
$form = ActiveForm::begin([
        'id' => 'test7',
        'enableAjaxValidation' => true,
    ]);
?>
<?= $form->field($model, 'nama'); ?>

<?= $form->beginField($model, 'password',['options'=>['tag'=>'tr']]); ?>
    Password：
    <?= Html::activePasswordInput($model, 'password', ['class' => 'text160']) ?>
    <?= Html::error($model, 'password',['class'=>'help-block']) ?>
<?= $form->endField() ?>

<?= Html::submitButton(); ?>
<?php
ActiveForm::end();

so what is wrong in my code,i changed plz can you check,same i did,but with other way

may be you need default scenarios
public function scenarios()
    {
        return [
            'default' => ['title', 'views', 'likes', 'comment_count', 'disallow_comment', 'status', 'content', 'thumbnail', 'picture', 'tags', 'published_at', 'flag'],
            'ajax' => ['imageFile', 'imageFiles']
        ];
    }

Closed unless explicit issue description provided.

authors: ajkosh cebe djfly klimov-paul mdmunir


text:
ActiveForm's error summary not displaying neigther with client nor ajax validation

I have the form:
	<?php $form = ActiveForm::begin([
		'id' => 'ordering',
		'enableAjaxValidation' => true,
		'validationUrl' => ['checkout/validate-form'],
		'fieldConfig' => [
			'template' => "{label}\n{input}\n{hint}"
		]
	]) ?>
   ...
   Some controls here
   ...
   <?= $form->errorSummary($model) ?>
   ...
    <?php ActiveForm::end() ?>

After field validation the error summary didn't update. Form has errors, fields are highlighted (input div's has 'has-error' class and populated 'help-block' with error message), but error summary doesn't provide any info about errors. It has style="display: none" and empty error list (ul). It doesn't work neither with ajax validation nor client validation.
Questions are:

Do I understand correctly the purpose of error summary?
I used error summary in beta version of Yii2, it worked then for client validation. How I can make it work in Yii 2.0.4?

Error summary is updated on form submit either by client or ajax validation. However validation triggered by such events like 'ontype' does not affect summary.

I'm closing the issue unless further information provided.

source: gharchive/issue

authors: SilverFire klimov-paul tekord

license_type: permissive

license_source: github-api


text:
Fix for issue #7757 breaks database Expression

The fix that was added for issue #7757 via commit 4f49feee8d2b0f0973ae1d0f29d66dccf9f06605
breaks support for database expressions.
It's actually all about the extra added condition to the last part on line 167:
elseif (!is_object($value) && !is_resource($value))
It should still allow objects of type \yii\db\Expression.

An example:
public function beforeSave($insert)
{
   $this->created = new \yii\db\Expression('NOW()');
   return parent::beforeSave($insert);
}

Results in "0000-00-00 00:00:00" in the database while before this worked perfectly.

Should be already fixed by aa5887f

:thumbsup:

authors: Blizzke klimov-paul


text:
AssetManager can not get the correct published url or path when only partial published

For example, my AssetBundle specified @bower as $sourcePath, after publishing only the realpath of @bower is saved to AssetManager::$_published.
When I try to pass "@bower/admin-lte/dist" as parameter into Yii::$app->assetManager->getPublishedUrl(), it can not return the correct result. The same issue also occurred in AssetManager::getPublishedPath().

there is already and adminlte asset, you can google it

can you show us your composer.json?

Please look at the problem, Admin-LTE is only an example.

Rejected: this is missusage of the AssetBundle publish mechanism.
If there are several bundles which uses files under same root directory, they should specify sourcePath to be this root directory, while particular JS or CSS files should be specified as related path.
This how it is done at yii2-botstrap:
https://github.com/yiisoft/yii2-bootstrap/blob/master/BootstrapAsset.php#L20-L23
https://github.com/yiisoft/yii2-bootstrap/blob/master/BootstrapPluginAsset.php#L20-L23
https://github.com/yiisoft/yii2-bootstrap/blob/master/BootstrapThemeAsset.php#L20-L23
Overcomplicating the code is not justified here.

authors: Faryshta hightman klimov-paul


text:
请问这个是人脸识别的子程序吗？

昨天读了您关于tensorflow关于人脸识别的博文，感觉很有帮助，感谢！最近打算做瞳孔检测方面的工作，由于刚开始进行，所以比较懵圈，有一些简单的问题询问一下，希望能给予帮助。
但cnn-facial-landmark文件里好像只有landmark.py文件，其他的文件是在这个程序里面吗（但我看到了有关于手的文件，一下子这里面好多文件，不知道用哪一个了）？假如我现在想用muct-master数据集去简单复现一下您的工作，数据集中包含了图片信息和特征点的标签值，那我是不是就只需要切出所需的面部区域，并且将他们对应保存成tfrecord文件就可以直接导入卷积神经网络了呀？（由于现在一直对自己建立的数据集如何导入网络这儿比较困惑，所以问的问题比较低级，但确实在这不太懂呀，万分感谢。）

但cnn-facial-landmark文件里好像只有landmark.py文件，其他的文件是在这个程序里面吗（但我看到了有关于手的文件，一下子这里面好多文件，不知道用哪一个了）？

从post看起，一步一步来，需要用到的文件post里会提到。

假如我现在想用muct-master数据集去简单复现一下您的工作，数据集中包含了图片信息和特征点的标签值，那我是不是就只需要切出所需的面部区域，并且将他们对应保存成tfrecord文件就可以直接导入卷积神经网络了呀？

你可以这样尝试，但不见得是最优的做法。可以参考下行业内的论文，找找思路。

close #1.
Feel free to re-open if not resolved.

authors: XHShane yinguobing

license: MIT


text:
The performance benefits of  Efficient Source Generation

Hello, yl4579. In 2.1.1. Efficient Source Generation, you do the We note that the L factor in Equation 6 scales the value by the hop size, as Equation 5 now integrates with 1/L of steps compared to steps in Equation 2.. I want to know what is the performance benefit of this change?

I found  there is little difference in performance in cumsum in O(NL) or in O(L)). When the model generator 6.25 seconds wav,  the cumsum only cost 0.007ms(in O(NL)) .

Which sum do you refer to? Have you tried to use the original source generator with upsampled F0 input and see how the performance changes? The original SineGen module is here: https://github.com/nii-yamagishilab/project-NN-Pytorch-scripts/blob/master/project/01-nsf/hn-nsf/model.py#L303
Note that the original module first upsample F0 to the same size of the target wave and then integrate: https://github.com/nii-yamagishilab/project-NN-Pytorch-scripts/blob/master/project/01-nsf/hn-nsf/model.py#L414
If your waveform is 6.25s with sampling rate 22.5 kHz, there will be 137813 samples, but your mel only has 538 frames with a hop size of 256.
import torch
import time

up = torch.randn(1, 137813)
mel = torch.randn(1, 538)
start = time.time()
for _ in range(100):
    torch.cumsum(up, dim=-1)
print('Cumsum in time took %.4f s' % (time.time() - start))

start = time.time()
for _ in range(100):
    torch.cumsum(mel, dim=-1)
print('Cumsum in mel took %.4f s' % (time.time() - start))

Cumsum in time domain took 0.0356 s
Cumsum in mel domain took 0.0013 s

This seems significant to me.

Try it yourself if you replace the SineGen with the original implementation:
class SineGen(torch.nn.Module):
    """ Definition of sine generator
    SineGen(samp_rate, harmonic_num = 0,
            sine_amp = 0.1, noise_std = 0.003,
            voiced_threshold = 0,
            flag_for_pulse=False)
    samp_rate: sampling rate in Hz
    harmonic_num: number of harmonic overtones (default 0)
    sine_amp: amplitude of sine-wavefrom (default 0.1)
    noise_std: std of Gaussian noise (default 0.003)
    voiced_thoreshold: F0 threshold for U/V classification (default 0)
    flag_for_pulse: this SinGen is used inside PulseGen (default False)
    Note: when flag_for_pulse is True, the first time step of a voiced
        segment is always sin(np.pi) or cos(0)
    """

    def __init__(self, samp_rate, upsample_scale, harmonic_num=0,
                 sine_amp=0.1, noise_std=0.003,
                 voiced_threshold=0,
                 flag_for_pulse=False):
        super(SineGen, self).__init__()
        self.sine_amp = sine_amp
        self.noise_std = noise_std
        self.harmonic_num = harmonic_num
        self.dim = self.harmonic_num + 1
        self.sampling_rate = samp_rate
        self.voiced_threshold = voiced_threshold
        self.flag_for_pulse = flag_for_pulse
        self.upsample_scale = upsample_scale

    def _f02uv(self, f0):
        # generate uv signal
        uv = (f0 > self.voiced_threshold).type(torch.float32)
        return uv

    def _f02sine(self, f0_values):
        """ f0_values: (batchsize, length, dim)
            where dim indicates fundamental tone and overtones
        """
        # convert to F0 in rad. The interger part n can be ignored
        # because 2 * np.pi * n doesn't affect phase
        rad_values = (f0_values / self.sampling_rate) % 1

        # initial phase noise (no noise for fundamental component)
        rand_ini = torch.rand(f0_values.shape[0], f0_values.shape[2],\
                              device = f0_values.device)
        rand_ini[:, 0] = 0
        rad_values[:, 0, :] = rad_values[:, 0, :] + rand_ini

        # instantanouse phase sine[t] = sin(2*pi \sum_i=1 ^{t} rad)
        if not self.flag_for_pulse:
            # for normal case

            # To prevent torch.cumsum numerical overflow,
            # it is necessary to add -1 whenever \sum_k=1^n rad_value_k > 1.
            # Buffer tmp_over_one_idx indicates the time step to add -1.
            # This will not change F0 of sine because (x-1) * 2*pi = x *2*pi
            tmp_over_one = torch.cumsum(rad_values, 1) % 1
            tmp_over_one_idx = (tmp_over_one[:, 1:, :] -
                                tmp_over_one[:, :-1, :]) < 0
            cumsum_shift = torch.zeros_like(rad_values)
            cumsum_shift[:, 1:, :] = tmp_over_one_idx * -1.0

            sines = torch.sin(torch.cumsum(rad_values + cumsum_shift, dim=1) \
                              * 2 * np.pi)
        else:
            # If necessary, make sure that the first time step of every
            # voiced segments is sin(pi) or cos(0)
            # This is used for pulse-train generation

            # identify the last time step in unvoiced segments
            uv = self._f02uv(f0_values)
            uv_1 = torch.roll(uv, shifts=-1, dims=1)
            uv_1[:, -1, :] = 1
            u_loc = (uv < 1) * (uv_1 > 0)

            # get the instantanouse phase
            tmp_cumsum = torch.cumsum(rad_values, dim=1)
            # different batch needs to be processed differently
            for idx in range(f0_values.shape[0]):
                temp_sum = tmp_cumsum[idx, u_loc[idx, :, 0], :]
                temp_sum[1:, :] = temp_sum[1:, :] - temp_sum[0:-1, :]
                # stores the accumulation of i.phase within
                # each voiced segments
                tmp_cumsum[idx, :, :] = 0
                tmp_cumsum[idx, u_loc[idx, :, 0], :] = temp_sum

            # rad_values - tmp_cumsum: remove the accumulation of i.phase
            # within the previous voiced segment.
            i_phase = torch.cumsum(rad_values - tmp_cumsum, dim=1)

            # get the sines
            sines = torch.cos(i_phase * 2 * np.pi)
        return  sines

    def forward(self, f0):
        """ sine_tensor, uv = forward(f0)
        input F0: tensor(batchsize=1, length, dim=1)
                  f0 for unvoiced steps should be 0
        output sine_tensor: tensor(batchsize=1, length, dim)
        output uv: tensor(batchsize=1, length, 1)
        """
        f0_buf = torch.zeros(f0.shape[0], f0.shape[1], self.dim,
                             device=f0.device)
        # fundamental component
        fn = torch.multiply(f0, torch.FloatTensor([[range(1, self.harmonic_num + 2)]]).to(f0.device))

        # generate sine waveforms
        sine_waves = self._f02sine(fn) * self.sine_amp

        # generate uv signal
        # uv = torch.ones(f0.shape)
        # uv = uv * (f0 > self.voiced_threshold)
        uv = self._f02uv(f0)

        # noise: for unvoiced should be similar to sine_amp
        #        std = self.sine_amp/3 -> max value ~ self.sine_amp
        # .       for voiced regions is self.noise_std
        noise_amp = uv * self.noise_std + (1 - uv) * self.sine_amp / 3
        noise = noise_amp * torch.randn_like(sine_waves)

        # first: set the unvoiced part to 0 by uv
        # then: additive noise
        sine_waves = sine_waves * uv + noise
        return sine_waves, uv, noise

and time the results:
device = 'cuda'
F0_model = JDCNet(num_class=1, seq_len=192)
generator = Generator(h, F0_model).to(device)
stft = TorchSTFT(filter_length=h.gen_istft_n_fft, hop_length=h.gen_istft_hop_size, win_length=h.gen_istft_n_fft).to(device)

dummy = torch.randn(1, 80, 538).to('cuda')
start = time.time()
for _ in range(100):
    with torch.no_grad():
        spec, phase = generator(dummy)
print(time.time() - start)

I got 3.7535805225372314 on Nvidia RTX 3090 Ti. Using the improved SineGen, I got 2.605872869491577, about 45% improvement in speed.


text:
iSTFTNet and LibriTTS

I'm curious if you can share any observations about using iSTFTNet with LibriTTS. The paper implies that the performance of iSTFTNet was insufficient for LibriTTS and so HiFiGAN was adopted, but I was wondering if you did any experiments with iSTFTNet and LibriTTS and what you saw.

We did this in our most recent work on vocoder: https://github.com/yl4579/HiFTNet
Basically, we could achieve close-to-ground truth performance with HiFiGAN architecture on LibriTTS but not with iSTFTNet.

Awesome, thanks for the pointer! Any particular reason for the switch from the C8C8 architecture in the paper to the C10C6 setup in this repo?

Because this repo is 24 kHz while the original one is 22.5 kHz.


text:
Nuke: small tweeks for Ayon

Changelog Description

renaming OpenPype menu items to Ayon
removing instance node if removed via publisher
removing info knob since it is not needed any more (was there only for the transition phase)

Testing notes:

nuke should create instance nodes without info message
Nuke should remove node once is bin icon used in Publisher on particular instance
Menu OpenPype Tools is now showing as Ayon Tools

implemented with https://github.com/ynput/OpenPype/pull/5083

source: gharchive/pull-request

repo: ynput/OpenPype


text:
Fix default project creation without anatomy preset name

When creating a project through the API the primary preset wasn't being applied. Changing the conditional to not just check for None seems to fix it.
How to test

Create a primary anatomy preset different from default _
Call ayon_api to create project without passing preset name (i.e., ayon_api.create_project("dev_004", "dev_004", False))

This was already fixed with https://github.com/ynput/ayon-python-api/pull/131 .

authors: fabiaserra iLLiCiTiT

repo: ynput/ayon-python-api


text:
create_project and sync_from_shotgrid handlers

This commit implements two handlers, which are interconected.
Firstly there's the create_project, triggered when a shotgrid.event
with the action payload of create-project is dispatched, which
creates a Shotgrid project in Ayon, it will also replicate the Shotgrid
entities and tasks in Ayon, by creating folders and tasks that match
these in the project anatomy.
It also sets up the Shotgrid project creating custom fields (all
prepended by sg_ayon_) in Shotgrid and trigger a full Sync once
everything is in place.
Secondly, there's the sync_from_shotgrid, triggered when a
shotgrid.event with the action payload of sync-from-shotgrid
is dispatched, which will perform a full import of a Shotgrid project
into Ayon, it will fail if there are missing attributes in Shotgrid,
which should be present unless tampered manually, it won't go through
otherwise.
In both instances the actual syncronization is performed by the class
SyncFromShotgrid found in the lib/sync_from_shotgrid.py module, this
class performs the checks, and traverses the Shotgrid project in the look
for entities to be created or updated in Ayon.
A set of constants and utils are defined in the lib directory,
the former contains Shotgrid field codes, Ayon attributes names and
mappings between the two, and the latter includes helper functions to
query and marshall data from Shotgrid, as well as creating entities in
Ayon.

No worries @fabiaserra , it's still evolving :D

repo: ynput/ayon-shotgrid


text:
Add .mm file as a source type

While working on a project, I discovered that .mm files were being added to the project but not to the build sources phase.

+1

Good catch, thanks @enmiller!

authors: enmiller keith yonaskolb

repo: yonaskolb/XcodeGen

license: mit

license_source: bigquery


text:
Improving variable expansion runtime

The current implementation of variable expansion is O(n x m) with n being the
number of strings in the project spec and m being the number of project variables.
This implementation is now O(n).
Also, this effectively deprecates the support for $legacy_variables in favor of the
${new_variables} making this whole patch possible.
A large project we use saw generation time divided by two after applying this patch.
@yonaskolb

Awesome. Can you do a couple more things?

Add a CHANGELOG entry
Try to add a performance unit test (with measure())

@brentleyjones updated as per your requirements!

With our project I'm getting a crash:
Fatal error: UnsafeMutablePointer.moveInitialize with negative count
2019-11-05 13:38:29.405866-0600 xcodegen[86932:41959151] Fatal error: UnsafeMutablePointer.moveInitialize with negative count

Could you expand the locations array ?

@rcari

This update should fix your issue @brentleyjones

@yonaskolb Care to review? I'll merge it tomorrow if no response (heading out for the day right now).

Updated, however CI looks broken 🤷🏽♂

I'm re-running them. I'll merge after they are green.

Seems like it can't find anything lower than Xcode 11 anymore. These were passing before and your changes wouldn't affect CI, so merging.

authors: brentleyjones rcari


text:
Decimal значение в amount.value не соответствует спецификации API

Здравствуйте!
При создании платежа посредством Payment.create(...) или PaymentRequestBuilder с Amount:
"amount": {
    "value": '750000.10',
    "currency": "RUB"
}

Или же если amount.value = Decimal('750000.10')
SDK преобразовывает значение в amount.value = Decimal('750000.1'), т.е. убирает постфиксный ноль после запятой.
И, соответственно, в ответ от ЮКассы приходит 400-ый статус код с описанием ошибки: Error in the payment amount. Specify the amount in correct format. For example, 100.00
Странное преобразование происходит, как выяснилось при отладке, тут:
https://github.com/yoomoney/yookassa-sdk-python/blob/16c9a2c319e2983871ce5ed0d56434c3542120e4/src/yookassa/domain/models/amount.py#L24
Возможное решение:
self.__value = Decimal(value).quantize(Decimal('1.11'), rounding = ROUND_HALF_UP)

Добрый день!
Отправка суммы платежа без второго значения после разделителя не должна вызывать ошибку.
Пришлите, пожалуйста, подробности Вашей попытки (shopid, id платежа или время отправки запроса) на почту cms@yoomoney.ru, чтобы мы могли посмотреть подробности ошибки в логах.

Спасибо!
Вводит в заблуждение ответ от API (обращения к которому происходили по тестовому ключу).
В действительности же ошибка была в превышении лимитов, а не в формате значения.

authors: ostulov plaguedo

repo: yoomoney/yookassa-sdk-python


text:
Make compatible with prowlarr

          It now runs without issues.

Is there any chance you can make it work with Prowlarr?

Originally posted by @Ed3n18 in https://github.com/yoori/flare-bypasser/issues/12#issuecomment-2466921626

Please try version after this fix

With the Newest Source Code:

Prowlarr Logs:

If you need anything else let me know

Will check at near time, need to review flaresolverr proxy passing format

Please, try version with this fix

Latest Source Code:

Please, try version after this fix

It works! Awesome, thank you!

repo: yoori/flare-bypasser


text:
Fixed readRecords throwing RangeErrors for VFP9 files

Resolves #65 . Code by @darac-10 .

Thanks for the fix @TheArchitect4855 and @darac-10. Will publish shortly as v1.8.1.

repo: yortus/DBFFile


text:
don't open directories

Currently vmd completely freaks out when trying to open a directory.

vmd@1.7.4 is on npm. thanks!

authors: alexanderGugel maxkueng

repo: yoshuawuyts/vmd


text:
ValueError: a must be non-empty

823/1000 [=======================>......] - ETA: 3:08 - rpn_cls: 2.9711 - rpn_regr: 0.0832 - detector_cls: 0.3042 - detector_regr: 0.1486Traceback (most recent call last):
File "train_frcnn.py", line 261, in
selected_neg_samples = np.random.choice(neg_samples, C.num_rois - len(selected_pos_samples), replace=False).tolist()
File "mtrand.pyx", line 1126, in mtrand.RandomState.choice
ValueError: a must be non-empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "train_frcnn.py", line 263, in
selected_neg_samples = np.random.choice(neg_samples, C.num_rois - len(selected_pos_samples), replace=True).tolist()
File "mtrand.pyx", line 1126, in mtrand.RandomState.choice
ValueError: a must be non-empty

did you found a solution for that ?

any one solved this error please???

if len(neg_samples) != 0:
try:
selected_neg_samples = np.random.choice(neg_samples, C.num_rois - len(selected_pos_samples), replace=False).tolist()
except:
selected_neg_samples = np.random.choice(neg_samples, C.num_rois - len(selected_pos_samples), replace=True).tolist()
Just put a test before selecting negative samples.

if len(neg_samples) != 0:
try:
selected_neg_samples = np.random.choice(neg_samples, C.num_rois - len(selected_pos_samples), replace=False).tolist()
except:
selected_neg_samples = np.random.choice(neg_samples, C.num_rois - len(selected_pos_samples), replace=True).tolist()
Just put a test before selecting negative samples.

after that i meet another question
File "train_frcnn.py", line 275, in
loss_class = model_classifier.train_on_batch([X, X2[:, sel_samples, :]], [Y1[:, sel_samples, :], Y2[:, sel_samples, :]])
IndexError: index 4 is out of bounds for axis 1 with size 1

(any one solved this error please???)

(any one solved this error please???)

This is a version issue，you need numpy==1.11.0

    if C.num_rois > 1:
        if len(pos_samples) < C.num_rois//2:
            selected_pos_samples = pos_samples.tolist()
        else:
            if len(pos_samples) > 0:
                selected_pos_samples = np.random.choice(pos_samples, C.num_rois//2, replace=False).tolist()
            else:
                selected_pos_samples = []
        try:
            if len(neg_samples) > 0:
                selected_neg_samples = np.random.choice(neg_samples, C.num_rois - len(selected_pos_samples), replace=False).tolist()
            else:
                selected_neg_samples = []
        except:
            if len(neg_samples) > 0:
                selected_neg_samples = np.random.choice(neg_samples, C.num_rois - len(selected_pos_samples), replace=True).tolist()
            else:
                selected_neg_samples = []

        sel_samples = selected_pos_samples + selected_neg_samples
    else:

that seems to solve this issue

I also met this problem. Anyone solve that? Help...

authors: AdamJochna WindyXiang attilab97 bzburr gdut3118007086 hodaatef huogy kkawtar


text:
KAKU devices types

Hello, I have found some types of kaku devices, so maybe you can add it in future releases:
deviceType=13 Kaku doorbell
deviceType=6 doorbell button
deviceType=4 PIR outdoor sensor
deviceType=14 ambient light sensor

Thank you for the information! Anyone with other device types, please leave them in the comments. A link to the product would help!
I will make a list of all the device with the device types and capabilities. In a future release, I will put this device types on a blacklist.

deviceType=36, is a zigbee (ledvance) dimmable and cool to warm white adjustable spot
deviceType=41 & 33, is a zigbee (ledvance) smart plug

DeviceType 43 = smoke detector: https://klikaanklikuit.nl/product/slimme-draadloze-rookmelder/

Als dit helpt heb ik hier trouwens de volledige lijst van types die in de app staan:
"SWITCH", 1
"DIMMER", 2
"ACTUATOR", 3
"MOTION_SENSOR", 4
"CONTACT_SENSOR", 5
"DOORBELL_ACDB_7000A", 6
"WALL_CONTROL_1_CHANNEL", 7
"WALL_CONTROL_2_CHANNEL", 8
"REMOTE_CONTROL_1_CHANNEL", 9
"REMOTE_CONTROL_2_CHANNEL", 10
"REMOTE_CONTROL_3_CHANNEL", 11
"REMOTE_CONTROL_16_CHANNEL", 12
"REMOTE_CONTROL_AYCT_202", 13
"CHIME", 14
"DUSK_SENSOR", 15
"ARC_REMOTE", 16
"ARC_CONTACT_SENSOR", 17
"ARC_MOTION_SENSOR", 18
"ARC_SMOKE_SENSOR", 19
"ARC_SIREN", 20
"DOORBELL_ACDB_7000B", 21
"AWMT", 22
"SOMFY_ACTUATOR", 23
"LIGHT", 24
"WALL_SWITCH_AGST_8800", 25
"WALL_SWITCH_AGST_8802", 26
"BREL_ACTUATOR", 27
"CONTACT_SENSOR_2", 28
"ARC_KEYCHAIN_REMOTE", 29
"ARC_ACTION_BUTTON", 30
"ARC_ROTARY_DIMMER", 31
"ZIGBEE_UNKNOWN_DEVICE", 32
"ZIGBEE_SWITCH", 33
"ZIGBEE_DIMMER", 34
"ZIGBEE_RGB", 35
"ZIGBEE_TUNABLE", 36
"ZIGBEE_MULTI_PURPOSE_SENSOR", 37
"ZIGBEE_LOCK", 38
"ZIGBEE_LIGHT_LINK_REMOTE", 39
"ZIGBEE_LIGHT", 40
"ZIGBEE_SOCKET", 41
"ZIGBEE_LEAKAGE_SENSOR", 42
"ZIGBEE_SMOKE_SENSOR", 43
"ZIGBEE_CARBON_MONOXIDE_SENSOR", 44
"ZIGBEE_TEMPERATURE_AND_HUMIDITY_SENSOR", 45
"ZIGBEE_LIGHT_GROUP", 46
"ZIGBEE_FIREANGEL_SENSOR", 47

DeviceType 43 = smoke detector: https://klikaanklikuit.nl/product/slimme-draadloze-rookmelder/

i like to have this one.

@thephantom What do mean?

Thanks all for the device types. I will make a markdown file containing all this info a well with product urls. Thanks @Stijn-Jacobs for all the info, I will add this info to the device configs file

@thephantom What do mean?

i like to have the smokedetector in the system. i can make an automation then: "if there is an fire then turn on the light" for example.

@thephantom since I don't have a smoke detector, I can't make it working. When I ever own one or something similar, I will try to add it, but can't make any promises. Beside, this plugin doesn't work 100% perfect so I wouldn't trust it. But you can make this possible in the official KAKU app using rules (can be found in the 'more' tab).

I like to have the Zigbee temperature and humidity sensor; ID 45.
https://klikaanklikuit.nl/product/temperatuur-en-luchtvochtigheidssensor/ or https://www.expert4house.com/en/smart-home/sensors-and-detectors/tuya-zigbee-temperature-and-humidity-sensor. Both devices work with the KAKU app.

Don’t have either of the devices, nor any other sensor, so can’t really make it work unfortunately.

I also would like to request the asun-650 to be added only the one that I got looks different.
https://www.gebruikershandleiding.com/KlikaanKlikuit-ASUN-650/preview-handleiding-639966.html
This is just a Manuel I found online but it seems to be correct. Also I would love to help do anything but all I can do is  print('hello world'). So if you can think of anything tell me.

I am new here, thaks for the plug in. Works great except for 1 issue:  the KAKU dimmers. In Apple HomeKit I can switch them off and on but cannot set the value higher than 4 -9%. The real value is different however(between 0-100%). In the KAKU app it works OK. I have a ICS2000 and homebridge working on a Raspberry Pi4

I would like to have the ASUN-650 as well.

Hi Youri, Thank you for your great plug-in. I am looking for a way to control the KAKU Asun-650. No idea what device number this is (how to find out?), but it’s a control unit for sun screens. Here hou can find it: https://klikaanklikuit.nl/product/inbouwschakelaar-voor-zonwering/

I would also really appreciate if the Asun-650 would be supported. So far really love the work you’ve down for this plugin :))

Hey,
I don't know if this helps and if you guys have already seen this topic but I have found the following code on a Tweakers topic from 2020 with a lot of "DeviceTypeClasses"
I thought that maybe this helps adding more devices to the plugin.
  SWITCH = new DeviceType("SWITCH", 1, 1, 2131165480);     DIMMER = new DeviceType("DIMMER", 2, 2, 2131165440);     ACTUATOR = new DeviceType("ACTUATOR", 3, 3, 2131165426);     MOTION_SENSOR = new DeviceType("MOTION_SENSOR", 4, 4, 2131165466);     CONTACT_SENSOR = new DeviceType("CONTACT_SENSOR", 5, 5, 2131165439);     DOORBELL_ACDB_7000A = new DeviceType("DOORBELL_ACDB_7000A", 6, 6, 2131165443);     WALL_CONTROL_1_CHANNEL = new DeviceType("WALL_CONTROL_1_CHANNEL", 7, 7, 2131165486);     WALL_CONTROL_2_CHANNEL = new DeviceType("WALL_CONTROL_2_CHANNEL", 8, 8, 2131165485);     REMOTE_CONTROL_1_CHANNEL = new DeviceType("REMOTE_CONTROL_1_CHANNEL", 9, 9, 2131165472);     REMOTE_CONTROL_2_CHANNEL = new DeviceType("REMOTE_CONTROL_2_CHANNEL", 10, 10, 2131165472);     REMOTE_CONTROL_3_CHANNEL = new DeviceType("REMOTE_CONTROL_3_CHANNEL", 11, 11, 2131165472);     REMOTE_CONTROL_16_CHANNEL = new DeviceType("REMOTE_CONTROL_16_CHANNEL", 12, 12, 2131165472);     REMOTE_CONTROL_AYCT_202 = new DeviceType("REMOTE_CONTROL_AYCT_202", 13, 15, 2131165472);     CHIME = new DeviceType("CHIME", 14, 13, 2131165435);     DUSK_SENSOR = new DeviceType("DUSK_SENSOR", 15, 14, 2131165445);     ARC_REMOTE = new DeviceType("ARC_REMOTE", 16, 16, 2131165472);     ARC_CONTACT_SENSOR = new DeviceType("ARC_CONTACT_SENSOR", 17, 17, 2131165439);     ARC_MOTION_SENSOR = new DeviceType("ARC_MOTION_SENSOR", 18, 18, 2131165466);     ARC_SMOKE_SENSOR = new DeviceType("ARC_SMOKE_SENSOR", 19, 19, 2131165466);     ARC_SIREN = new DeviceType("ARC_SIREN", 20, 20, 2131165478);     DOORBELL_ACDB_7000B = new DeviceType("DOORBELL_ACDB_7000B", 21, 21, 2131165429);     AWMT = new DeviceType("AWMT", 22, 22, 2131165429);     SOMFY_ACTUATOR = new DeviceType("SOMFY_ACTUATOR", 23, 23, 2131165426);     LIGHT = new DeviceType("LIGHT", 24, 24, 2131165432);     WALL_SWITCH_AGST_8800 = new DeviceType("WALL_SWITCH_AGST_8800", 25, 25, 2131165486);     WALL_SWITCH_AGST_8802 = new DeviceType("WALL_SWITCH_AGST_8802", 26, 26, 2131165485);     BREL_ACTUATOR = new DeviceType("BREL_ACTUATOR", 27, 27, 2131165426);     CONTACT_SENSOR_2 = new DeviceType("CONTACT_SENSOR_2", 28, 28, 2131165439);     ARC_KEYCHAIN_REMOTE = new DeviceType("ARC_KEYCHAIN_REMOTE", 29, 29, 2131165472);     ARC_ACTION_BUTTON = new DeviceType("ARC_ACTION_BUTTON", 30, 30, 2131165425);     ARC_ROTARY_DIMMER = new DeviceType("ARC_ROTARY_DIMMER", 31, 31, 2131165473);     ZIGBEE_UNKNOWN_DEVICE = new DeviceType("ZIGBEE_UNKNOWN_DEVICE", 32, 32, 2131165484);     ZIGBEE_SWITCH = new DeviceType("ZIGBEE_SWITCH", 33, 33, 2131165432);     ZIGBEE_DIMMER = new DeviceType("ZIGBEE_DIMMER", 34, 34, 2131165432);     ZIGBEE_RGB = new DeviceType("ZIGBEE_RGB", 35, 35, 2131165432);     ZIGBEE_TUNABLE = new DeviceType("ZIGBEE_TUNABLE", 36, 36, 2131165432);     ZIGBEE_MULTI_PURPOSE_SENSOR = new DeviceType("ZIGBEE_MULTI_PURPOSE_SENSOR", 37, 37, 2131165484);     ZIGBEE_LOCK = new DeviceType("ZIGBEE_LOCK", 38, 38, 2131165439);     ZIGBEE_LIGHT_LINK_REMOTE = new DeviceType("ZIGBEE_LIGHT_LINK_REMOTE", 39, 39, 2131165472);     ZIGBEE_LIGHT = new DeviceType("ZIGBEE_LIGHT", 40, 40, 2131165432);     ZIGBEE_SOCKET = new DeviceType("ZIGBEE_SOCKET", 41, 41, 2131165490);     ZIGBEE_LEAKAGE_SENSOR = new DeviceType("ZIGBEE_LEAKAGE_SENSOR", 42, 42, 2131165459);     ZIGBEE_SMOKE_SENSOR = new DeviceType("ZIGBEE_SMOKE_SENSOR", 43, 43, 2131165479);     ZIGBEE_CARBON_MONOXIDE_SENSOR = new DeviceType("ZIGBEE_CARBON_MONOXIDE_SENSOR", 44, 47, 2131165434);     ZIGBEE_TEMPERATURE_AND_HUMIDITY_SENSOR = new DeviceType("ZIGBEE_TEMPERATURE_AND_HUMIDITY_SENSOR", 45, 46, 2131165479);     ZIGBEE_LIGHT_GROUP = new DeviceType("ZIGBEE_LIGHT_GROUP", 46, 48, 2131165433);     ZIGBEE_FIREANGEL_SENSOR = new DeviceType("ZIGBEE_FIREANGEL_SENSOR", 47, 49, 2131165425);     CAMERA_MODULE = new DeviceType("CAMERA_MODULE", 48, 241, 2131165478);     LOCATION_MODULE = new DeviceType("LOCATION_MODULE", 49, 242, 2131165478);     SYSTEM_MODULE = new DeviceType("SYSTEM_MODULE", 50, 243, 2131165478);     ENERGY_MODULE = new DeviceType("ENERGY_MODULE", 51, 238, 2131165620);     WEATHER_MODULE = new DeviceType("WEATHER_MODULE", 52, 244, 2131165648);     DeviceType deviceType = new DeviceType("SECURITY_MODULE", 53, 240, 2131165478);
Here is also a link to the topic https://gathering.tweakers.net/forum/list_messages/1698039

I also would like to request the asun-650 to be added only the one that I got looks different.
https://www.gebruikershandleiding.com/KlikaanKlikuit-ASUN-650/preview-handleiding-639966.html
This is just a Manuel I found online but it seems to be correct. Also I would love to help do anything but all I can do is print('hello world'). So if you can think of anything tell me.

I think the asun650 has the following class line. So the device type is 23, I don't really know what the other numbers mean.
SOMFY_ACTUATOR = new DeviceType("SOMFY_ACTUATOR", 23, 23, 2131165426);`

authors: DnWillis RonaldR StanMar-bit Stijn-Jacobs childledj corvankruchten jocstone kalis3 martienvd thephantom youridijk


text:
TaggitSelect2: insure there's a comma when there's only one tag, or tag "Multi word" would end up as "Multi" and "word"

When we enter only one multiple words tag and it will become multiple tags. Adding a comma in this case is harmless and will fix the problem.
For example, Taggit will save "Multi Word" as "Multi" and "Word"
"Multi Word, " will be treated correctly as "Multi Word"

Just to clarify - the behaviour that is previewed before the tag is saved (i.e. the coloured block around the tag) indicates that the behaviour after save is going to be 'create a single tag'.
However after the tag is saved you end up with two tags. So an alternate fix might be to alter the way tags are displayed before saving?

Current coverage is 96.98% (diff: 100%)

Merging #737 into master will decrease coverage by 0.05%

@@             master       #737   diff @@
==========================================
  Files           105        105
  Lines          1618       1623     +5
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           1570       1574     +4
- Misses           48         49     +1
  Partials          0          0

Powered by Codecov. Last update 19cc14b...fa6b5c3

I like this, could you implement a simple test case ?
Thanks !!
:guitar:

I've added a test case.

Nice one @fruitschen !
@andybak

Just to clarify - the behaviour that is previewed before the tag is saved (i.e. the coloured block around the tag) indicates that the behaviour after save is going to be 'create a single tag'.

Currently it seems broken: it shows one tag to be created for foo bar but after saving we get two tags.

However after the tag is saved you end up with two tags. So an alternate fix might be to alter the way tags are displayed before saving?

Doesn't this patch fixes exactly the server-side behaviour to match the client-side behaviour ?
If I'm not missing anything @andybak shares about then I'm all for releasing this !

I was actually agreeing with @fruitschen  but pointing out that there are two fixes - fix the preview or fix what gets saved. I'm happy with this.

authors: andybak codecov-io fruitschen jpic

repo: yourlabs/django-autocomplete-light


text:
Regenerate php protobuf files.

@michael-berlin @alainjobart
Apparently these files were not generated for quite some time.

This change is

This looks like a gRPC generator change?
How did you generate them? Using the docker image which Alain created?

I actually re-generated them a couple days ago... the change you have seems to imply a library has changed (like the proto generation library). That seems weird, as we pin them to a specific version... @enisoc would know more.

I just ran "make php_proto", that's it.

Just ran it too, and it didn't produce any diff... Maybe your docker images are more recent than mine...

I agree it looks like a generator change, either the PHP part or the base protoc. It could be that we updated the pinned version of one of those, but didn't regenerate the PHP protos.
In any case, I ran make php_proto myself and it generated the same diffs as this PR, so .

Reviewed 9 of 9 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

authors: alainjobart enisoc michael-berlin pivanof

repo: youtube/vitess


text:
Workers will now retry (but not re-resolve) on some ExecuteFetch failures

@enisoc @alainjobart
First pass at retrying for errors.  Wanted to get your thoughts on this approach - still need to add re-resolving, but I think it should be straight-forward with this approach.
Existing tests pass, but nothing is explicitly testing tablets temporarily going away. I'd like to add something to our test suite along those lines (maybe vtctl Pause/Resume commands, or maybe just easy ways for disabling and enabling queryservice).

Coverage increased (+0.01%) when pulling 8db47cdcf46e3b18aac09e83bd122dad6042f926 on aaijazi_workers_retry_on_error into 8083fcacaa29c3a37baa2cbaab179a495faa189d on master.

Coverage increased (+0.02%) when pulling 8db47cdcf46e3b18aac09e83bd122dad6042f926 on aaijazi_workers_retry_on_error into 8083fcacaa29c3a37baa2cbaab179a495faa189d on master.

Coverage increased (+0.02%) when pulling e10510f6db4e55c94bdfea70b0320bd931dda727 on aaijazi_workers_retry_on_error into 54c2da34fdcd2ab0ffad4330efca5d8082dab1b7 on master.

As discussed in person, going to hold off on adding unit tests at the time. I'm going to submit as-is, and come back to this later to add re-resolving.

authors: aaijazi coveralls


text:
Vue3 为什么只有js的而没有ts的demo？

Vue3 为什么只有js的而没有ts的demo？
建议官方做一个ts的demo

暂无计划提供呢

authors: chenjiahan kyour-cn

repo: youzan/vant-demo


text:
EigenFlow should support a feature to terminate a job early

EigenFlow should have a feature that allows a job to terminate early.  This feature would allow a job to determine that it has no need to continue through the later phases (for example in a double load scenario).  In this case the job should be able to specify that rather than failing we just want to terminate the run early, and then the next run can continue as normal.

cross-posting exchange from slack

shergill [10:47 AM]
i have a few thoughts. but my first thought is the fact that it tried to resume from failed state tells me that we didn’t do appropriate cleanup on encountering the double load failure encountered in the second run yesterday.(edited)

[10:47]
that would be the first step, imo

wade.waldron [10:48 AM]
@shergill: The Double Load scenario occurred because we were testing the deploy of EigenFlow.  I deliberately did the double load expecting that it would encounter this scenario.

shergill [10:49 AM]
wade.waldron: agreed. but that was yesterday. after DL was encountered, the state should have been restored to where it was before DL was encountered

[10:49]
so that if you tried to run the third time yesterday you’d run into DL again, but if you tried to run job today, it would go ahead

[10:50]
now we could do it by “resetting” state. or by tweaking the interpreter which interprets the state information regd job runs etc

wade.waldron [10:52 AM]
@shergill: I think I follow.  You are saying that after a Double Load is encountered, something (person or machine) needs to basically reset the state to say that the double load run should be disregarded.  Or something to that effect.

[10:53]
Right now I am working on clearing that state manually.  However that's not a good long term solution (hence the discussion).

shergill [10:54 AM]
wade.waldron: yes. one way to do so would be to update the log/state journal we have with a “disregard uptil” message. and then the interpreter which parses and interprets this would do the right thing (obey the directive)

Example:
val download = Downloading {
} onFailure {
case NetworkIssue => Retry (3.seconds, 10)
case DoubleLoad => SkipRun
}

How do we define a double load? Is it when we see that a job is running today and we know that the next processing date is tomorrow? In that case, shouldn't we automatically exit because we know that we're running before the next processing date?

@yawaramin that is correct, but the system maybe forced to re-run starting from a specific day/time.
In this case it will ignore the fact that it already ran that period. When a process has a double load protection the process may fail and the problem is that it will stuck there until forced to process another day manually.

authors: WadeWaldron dmitri-carpov suhailshergill yawaramin

repo: ypg-data/eigenflow


text:
Tiktok profile download not getting video lists, individual files work

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I'm running yt-dlp version 2022.01.21. (update instructions)
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Description
Tiktok profile download not getting video lists, individual files work though.
Verbose log
ytdlp --verbose https://www.tiktok.com/@josekuthy
[debug] Command-line config: ['--verbose', 'https://www.tiktok.com/@josekuthy']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, err utf-8, pref cp1252
[debug] yt-dlp version 2022.01.21 [f20d607] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19043-SP0
[debug] exe versions: ffmpeg 2021-12-17-git-b780b6db64-full_build-www.gyan.dev (setts)
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
[debug] [tiktok:user] Extracting URL: https://www.tiktok.com/@josekuthy
[tiktok:user] josekuthy: Downloading webpage
[tiktok:user] josekuthy: Downloading user video list page 1
WARNING: [tiktok:user] Expecting value: line 1 column 1 (char 0). Retrying...
[tiktok:user] josekuthy: Downloading user video list page 1 (attempt 1)
WARNING: [tiktok:user] Expecting value: line 1 column 1 (char 0). Retrying...
[tiktok:user] josekuthy: Downloading user video list page 1 (attempt 2)
WARNING: [tiktok:user] Expecting value: line 1 column 1 (char 0). Retrying...
[tiktok:user] josekuthy: Downloading user video list page 1 (attempt 3)
ERROR: [tiktok:user] josekuthy: josekuthy: Failed to parse JSON  (caused by JSONDecodeError('Expecting value: line 1 column 1 (char 0)')); please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output. (caused by JSONDecodeError('Expecting value: line 1 column 1 (char 0)')); please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.
  File "yt_dlp\extractor\common.py", line 612, in extract
  File "yt_dlp\extractor\tiktok.py", line 561, in _real_extract
  File "yt_dlp\utils.py", line 5135, in traverse_obj
  File "yt_dlp\utils.py", line 5121, in _traverse_obj
  File "yt_dlp\utils.py", line 2736, in __getitem__
  File "yt_dlp\extractor\tiktok.py", line 530, in _video_entries_api
  File "yt_dlp\extractor\tiktok.py", line 80, in _call_api
  File "yt_dlp\extractor\common.py", line 992, in _download_json
  File "yt_dlp\extractor\common.py", line 978, in _download_json_handle
  File "yt_dlp\extractor\common.py", line 1007, in _parse_json

Duplicate of #2534

repo: yt-dlp/yt-dlp

license: Unlicense


text:
[youtube] weird language codes for some subtitles

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting that a supported site is broken
[X] I've verified that I'm running yt-dlp version 2023.03.04 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
No response
Provide a description that is worded well enough to be understood
I get weird language codes for this youtube video:
https://www.youtube.com/watch?v=gk1BViilFFk
SpaceX Starship explodes on first launch attempt [youtube.gk1BViilFFk] {597+599}.en.ttml
SpaceX Starship explodes on first launch attempt [youtube.gk1BViilFFk] {597+599}.en-JkeT_87f4cc.ttml
SpaceX Starship explodes on first launch attempt [youtube.gk1BViilFFk] {597+599}.en-uYU-mmqFLq8.ttml

The codes don't correspond to the screenshot:

From the log below, this is apparently how the language codes are provided by youtube, but maybe this could be improved by taking the name from the (more meaningful) "name" column ?
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[info] Available subtitles for gk1BViilFFk:
Language       Name             Formats
en             English          vtt, ttml, srv3, srv2, srv1, json3
en-uYU-mmqFLq8 English - CC1    vtt, ttml, srv3, srv2, srv1, json3
en-JkeT_87f4cc English - DTVCC1 vtt, ttml, srv3, srv2, srv1, json3

No. code is for unique identification, name is for human readability.

authors: chrizilla pukkandan


text:
[ie/Piapro] Fix extractor

IMPORTANT: PRs without the template will be CLOSED
Description of your pull request and other information
Piapro had a design overhaul and all extractors broke. I mostly just updated the relevant regexes.
ADD DESCRIPTION HERE
Fixes #

Fixed the piapro extractor

Template

Before submitting a pull request make sure you have:

[x] At least skimmed through contributing guidelines including yt-dlp coding conventions
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8 and ran relevant tests

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[x] Fix or improvement to an extractor (Make sure to add/update tests)
[ ] New extractor (Piracy websites will not be accepted)
[ ] Core bug fix/improvement
[ ] New feature (It is strongly recommended to open an issue first)

I went ahead and pushed a slightly reworked version

authors: FinnRG seproDev


text:
download private youtube playlists/videos with access_token

Checklist

[x] I'm reporting a feature request
[x] I've verified that I'm running youtube-dl version 2019.09.01
[x] I've searched the bugtracker for similar feature requests including closed ones

Description
It would be great if you could download videos from youtube via access_token. It's more secure than username and password and the authentication with username and password isn't even working.

@dstftw why is this incomplete?

repo: ytdl-org/youtube-dl


text:
Downloads from ARD Mediathek no longer work

Video Downloads from ARD Mediathek no longer work since today.
youtube-dl  --verbose -F https://www.ardmediathek.de/video/serien/die-bergpolizei-wo-ist-pietro/hr-fernsehen/Y3JpZDovL2hyLW9ubGluZS8xMzU0NDU/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '-F', 'https://www.ardmediathek.de/video/serien/die-bergpolizei-wo-ist-pietro/hr-fernsehen/Y3JpZDovL2hyLW9ubGluZS8xMzU0NDU/']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2021.04.26
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg 4.2.3, ffprobe 4.2.3
[debug] Proxy map: {}
[debug] Using fake IP 53.181.126.96 (DE) as X-Forwarded-For.
[ARDBetaMediathek] Y3JpZDovL2hyLW9ubGluZS8xMzU0NDU: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 412: Precondition Failed (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpeav8wi2f\build\youtube_dl\extractor\common.py", line 634, in _request_webpage
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpeav8wi2f\build\youtube_dl\YoutubeDL.py", line 2279, in urlopen
File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default
youtube-dl --version
2021.04.26

ACK - same on linux. (until 17:20 GMT+2)
BUT that error stopped as i was typing this message. So for me now everything seems okay again.

okay - seems like a "flapping bug" as its happening again:
youtube-dl -F https://www.ardmediathek.de/video/agatha-christie-moerderische-spiele/folge-16-albert-major-redete-zu-viel-s02-e16/one/Y3JpZDovL3dkci5kZS9CZWl0cmFnLTZkNTE3MjRiLTNhZjUtNDBlOC1hMDIzLWZjNmQwMDE4MDcwMA/ [ARDBetaMediathek] Y3JpZDovL3dkci5kZS9CZWl0cmFnLTZkNTE3MjRiLTNhZjUtNDBlOC1hMDIzLWZjNmQwMDE4MDcwMA: Downloading JSON metadata ERROR: Unable to download JSON metadata: HTTP Error 412: Precondition Failed (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. burk@M4800:~/Downloads$ youtube-dl -F --verbose https://www.ardmediathek.de/video/agatha-christie-moerderische-spiele/folge-16-albert-major-redete-zu-viel-s02-e16/one/Y3JpZDovL3dkci5kZS9CZWl0cmFnLTZkNTE3MjRiLTNhZjUtNDBlOC1hMDIzLWZjNmQwMDE4MDcwMA/ [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'-F', u'--verbose', u'https://www.ardmediathek.de/video/agatha-christie-moerderische-spiele/folge-16-albert-major-redete-zu-viel-s02-e16/one/Y3JpZDovL3dkci5kZS9CZWl0cmFnLTZkNTE3MjRiLTNhZjUtNDBlOC1hMDIzLWZjNmQwMDE4MDcwMA/'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2021.04.26 [debug] Python version 2.7.18 (CPython) - Linux-5.4.0-72-generic-x86_64-with-Ubuntu-20.04-focal [debug] exe versions: ffmpeg 4.2.4, ffprobe 4.2.4, rtmpdump 2.4 [debug] Proxy map: {} [debug] Using fake IP 53.10.59.151 (DE) as X-Forwarded-For. [ARDBetaMediathek] Y3JpZDovL3dkci5kZS9CZWl0cmFnLTZkNTE3MjRiLTNhZjUtNDBlOC1hMDIzLWZjNmQwMDE4MDcwMA: Downloading JSON metadata ERROR: Unable to download JSON metadata: HTTP Error 412: Precondition Failed (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.   File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 634, in _request_webpage     return self._downloader.urlopen(url_or_request)   File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2279, in urlopen     return self._opener.open(req, timeout=self._socket_timeout)   File "/usr/lib/python2.7/urllib2.py", line 435, in open     response = meth(req, response)   File "/usr/lib/python2.7/urllib2.py", line 548, in http_response     'http', request, response, code, msg, hdrs)   File "/usr/lib/python2.7/urllib2.py", line 473, in error     return self._call_chain(*args)   File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain     result = func(*args)   File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default     raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Similar problem still

this link - https://www.ardmediathek.de/video/serien/die-bergpolizei-wo-ist-pietro/hr-fernsehen/Y3JpZDovL2hyLW9ubGluZS8xMzU0NDU/ works ok here on my end.

@october262 - that link works for me as well. Seems they are restructuring the "mediathek" and moving to another kind of pre-download system. As i wrote in my comment - seems to be a "flapping" bug. The link i posted still gives me an error, right now, while the other one is working fine. The video i wanted to download can be found by navigating through the series entry page: https://www.ardmediathek.de/sendung/agatha-christie-moerderische-spiele/staffel-2/Y3JpZDovL3dkci5kZS9vbmUvYWdhdGhhY2hyaXN0aWUtbW9lcmRlcmlzY2hlc3BpZWxl/2/

I'm pretty certain it's not related to your IP address. The episode I was trying to download last week worked yesterday, although my (fixed) IP hasn't changed since.

Issue should be closed, URL is dead

Close old issue. ARD Mediathek is working correctly.

Fails for me with and without --no-geo-bypass. Using my own IP or through a german VPN. Doesnt matter. Error is different though. Gateway timeout:
$ youtube-dl --no-geo-bypass --verbose https://www.ardmediathek.de/video/dokus-im-ersten/die-story-im-ersten-kampf-ums-klima-hoerfassung/das-erste/Y3JpZDovL2Rhc2Vyc3RlLmRlL3JlcG9ydGFnZSBfIGRva3VtZW50YXRpb24gaW0gZXJzdGVuL2U0NGMyZDdmLTM4MDEtNGNiMy1iZDU3LWU0NWYxZDFiNTBlYy9hdWRpb2Rlc2tyaXB0aW9u
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--no-geo-bypass', '--verbose', 'https://www.ardmediathek.de/video/dokus-im-ersten/die-story-im-ersten-kampf-ums-klima-hoerfassung/das-erste/Y3JpZDovL2Rhc2Vyc3RlLmRlL3JlcG9ydGFnZSBfIGRva3VtZW50YXRpb24gaW0gZXJzdGVuL2U0NGMyZDdmLTM4MDEtNGNiMy1iZDU3LWU0NWYxZDFiNTBlYy9hdWRpb2Rlc2tyaXB0aW9u']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.10.8 (CPython) - macOS-12.6-x86_64-i386-64bit
[debug] exe versions: rtmpdump 2.4
[debug] Proxy map: {}
[ARDBetaMediathek] Y3JpZDovL2Rhc2Vyc3RlLmRlL3JlcG9ydGFnZSBfIGRva3VtZW50YXRpb24gaW0gZXJzdGVuL2U0NGMyZDdmLTM4MDEtNGNiMy1iZDU3LWU0NWYxZDFiNTBlYy9hdWRpb2Rlc2tyaXB0aW9u: Downloading JSON metadata
[ARDBetaMediathek] 12059517: Downloading JSON metadata
WARNING: Unable to download JSON metadata: HTTP Error 504: Gateway Time-out
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/YoutubeDL.py", line 815, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/YoutubeDL.py", line 836, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/local/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/extractor/common.py", line 534, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/extractor/ard.py", line 434, in _real_extract
    info = self._parse_media_info(
  File "/usr/local/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/extractor/ard.py", line 46, in _parse_media_info
    self._sort_formats(formats)
  File "/usr/local/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/extractor/common.py", line 1374, in _sort_formats
    raise ExtractorError('No video formats found')
youtube_dl.utils.ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

authors: 89z SalocinHB Velofil burk-castlehard nFec october262 ranzeyer


text:
GEM

Found a package that implements a few graph and node embedding methods:
https://github.com/palash1992/GEM

The old model R implementation used many deprecated tensorflow modules so I did a rewrite. The new implementation has better performance in forum data set:

However, the performance gain is not significant enough to make a point like "Model R outperforms node2vec in all scenarios".

True. But looks like Model R should be preferred to node2vec. Model R probably significantly outperforms node2vec in Collaboration graph. And Model R does not worse than node2vec on all domains.

I adopted LLE from all GEM approaches.

authors: lbholder yuchenhou

repo: yuchenhou/elephant


text:
Online web demo

Work in progress and suggestions are welcome!

Could u share some TODO feature for web demo ?
I'm very interested in this project and have had an idea for a long time, but no time to realize it because of busy work

Could u share some TODO feature for web demo ?
I'm very interested in this project and have had an idea for a long time, but no time to realize it because of busy work

https://colab.research.google.com/drive/12oQcLs25CFjI4evsFlWfKD1DfTEiqyCN?usp=sharing

https://colab.research.google.com/drive/12oQcLs25CFjI4evsFlWfKD1DfTEiqyCN?usp=sharing

Our web demo is online here: http://rebiber.herokuapp.com/

authors: huybery yuchenlin

repo: yuchenlin/rebiber


text:
Add SkiaSharp.NativeAssets.Linux

Fix ubuntu tests

Codecov Report

Merging #31 (8785af9) into main (31d5ea6) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #31   +/-   ##
=======================================
  Coverage   77.95%   77.95%
=======================================
  Files          10       10
  Lines         617      617
=======================================
  Hits          481      481
  Misses        136      136

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 31d5ea6...8785af9. Read the comment docs.

repo: yufeih/isles


text:
error occurred when running npm install

fsevents@1.2.9 install /Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/fsevents
node install

node-pre-gyp WARN Using request for node-pre-gyp https download
[fsevents] Success: "/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node" is installed via remote

bcrypt@1.0.3 install /Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v67-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for bcrypt@1.0.3 and node@11.10.0 (node-v67 ABI) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download(undefined): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v67-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for bcrypt@1.0.3 and node@11.10.0 (node-v67 ABI) (falling back to source compile with node-gyp)
CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
sed: ./Release/.deps/Release/obj.target/bcrypt_lib/src/blowfish.o.d.raw: No such file or directory
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
rm: ./Release/.deps/Release/obj.target/bcrypt_lib/src/blowfish.o.d.raw: No such file or directory
make: *** [Release/obj.target/bcrypt_lib/src/blowfish.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:197:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/usr/local/Cellar/node/11.10.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt/lib/binding"
gyp ERR! cwd /Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt
gyp ERR! node -v v11.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/11.10.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt/lib/binding' (1)
node-pre-gyp ERR! stack     at ChildProcess. (/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:197:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:984:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
node-pre-gyp ERR! System Darwin 18.6.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/11.10.0/bin/node" "/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt
node-pre-gyp ERR! node -v v11.10.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.36
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/Cellar/node/11.10.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt/lib/binding' (1)
touch: ./Release/.deps/Release/obj.target/bcrypt_lib/src/bcrypt.o.d.raw: No such file or directory
make: *** [Release/obj.target/bcrypt_lib/src/bcrypt.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:197:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/usr/local/Cellar/node/11.10.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt/lib/binding"
gyp ERR! cwd /Users/admin/projects/react/bambiniinternational/backend/node-mysql/node_modules/bcrypt
gyp ERR! node -v v11.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN node-mysql-boilerplate@1.0.7 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bcrypt@1.0.3 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@1.0.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/admin/.npm/_logs/2019-06-12T02_10_34_076Z-debug.log

Did you find a solution ?

does not help

Delete some dependencies below, and try to install again these dependencies. It worked for me.
"ajv": "^6.12.3",
"artillery": "^1.6.1",
"bcrypt": "^5.0.0",
"express": "^4.17.1",
"jsonwebtoken": "^8.5.1",
"mysql": "^2.18.1",
"node-schedule": "^1.3.0",
"nodemailer": "^6.4.10",
"nodemon": "^2.0.4",
"pm2": "^4.4.0"

authors: jajapabatao miukki omurbilgili razvan-soare


text:
Wireguard Filter

It would be great in addition to openvpn, to make a filter for wireguard, as it is 100 times better performing than openvpn

Thank you for the answer!


text:
Problem with Docker and language change

When trying to execute the commands:
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker $USER
I manage to create the symbolic link and also add the $USER, however the first command which would be the initialization of docker gets my terminal stuck and I don't get any more feedback.
Also a problem with changing the Arch Linux language

I've already spent a few days looking for and trying various things and to no avail for both problems.

Same problem on systemctl start ollama.

try typing wsl --update in CMD/PowerShell with administrator rights

@PixelWandererZhou
I've already updated WSL, checked for possible windows updates with windows update and winget update, and as a last resort I've formatted my machine around 10 times. I think it might be a configuration problem that I missed or even a problem with WSL itself.

try edit /etc/wsl.conf
［boot］
systemd=true

@PixelWandererZhou
the /etc/wsl.conf file is:
``
[boot]
systemd=true
[automount]
enabled = true
options = "metadata"
mountFsTab = true
``
and I just did a clean install of ArchWsl with the latest available version and just ran the basics of Docs configuration and just tried to change the language
sudo pacman-key --init
sudo pacman-key --populate
sudo pacman -Syy archlinux-keyring
sudo pacman -Syyuu
``terminal response
sudo localectl set-locale LANG=en_BR.UTF-8
Failed to connect to bus: No such file or directory
``
agora por hora ignorar a alteração da linguagem e vou seguir para apenas fazer a instalação do necessario para usar o yay e instalar todo o restante.
script that I save for installations on work machines:
passdw

echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/wheel

useradd -m -G wheel -s /bin/bash {usuário}

passwd {usuário}

config --default-user {usuário}

sudo pacman-key --init

sudo pacman-key --populate

sudo pacman -Syy archlinux-keyring

sudo pacman -Syyuu --noconfirm

sudo localectl set-locale LANG=pt_BR.UTF-8

sudo pacman -S --noconfirm neovim git yarn npm rust base-devel neofetch openssh go zsh docker docker-compose chromium

cargo install exa bat

cd /opt
sudo git clone https://aur.archlinux.org/yay-git.git
sudo chown -R cauaarch:cauaarch ./yay-git
cd yay-git
makepkg -si

yay -S --noconfirm zsh zsh-theme-powerlevel10k-git asdf-vm ddev-bin ttf-meslo-nerd-font-powerlevel10k powerline-fonts awesome-terminal-fonts neovim git yarn npm rust base-devel neofetch openssh go zsh docker docker-compose chromium unzip libyaml re2c gd postgresql-libs oniguruma libzip zip

echo 'source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting/

chsh -s /usr/bin/zsh

<.zshrc>
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /opt/asdf-vm/asdf.sh

export PATH=$HOME/.local/bin:$HOME/.cargo/bin:$PATH

alias ls="exa --icons"
alias bat="bat --style=auto"
alias nf="neofetch"
<.zshrc>

asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
asdf plugin-add php https://github.com/asdf-community/asdf-php.git
asdf plugin-add python
asdf plugin add golang https://github.com/asdf-community/asdf-golang.git
asdf plugin-add rust https://github.com/code-lever/asdf-rust.git
asdf plugin-add lua https://github.com/Stratus3D/asdf-lua.git

sudo systemctl start docker
sudo systemctl enable docker

sudo usermod -aG docker $USER

@PixelWandererZhou

just like I said, the terminal crashes and /etc/wsl-conf

@PixelWandererZhou

just like I said, the terminal crashes and /etc/wsl-conf

What is your windows and wsl version

@PixelWandererZhou

just like I said, the terminal crashes and /etc/wsl-conf

What is your windows and wsl version

@PixelWandererZhou

just like I said, the terminal crashes and /etc/wsl-conf

What is your windows and wsl version

you can try to make a rootfs.tar yourself

@PixelWandererZhou

assim como eu disse, o terminal trava e /etc/wsl-conf

Qual é a sua versão do Windows e do WSL

você pode tentar fazer um rootfs.tar sozinho

thanks for the idea, I'll study it and give it a try

@PixelWandererZhou

just like I said, the terminal crashes and /etc/wsl-conf

What is your windows and wsl version

I had same problem

@PixelWandererZhou

assim como eu disse, o terminal trava e /etc/wsl-conf

Qual é a sua versão do Windows e do WSL

você pode tentar fazer um rootfs.tar sozinho

thanks for the idea, I'll study it and give it a try

Any progress?

i haven't had time to look at it yet, and i just did a quick migration to ubuntu because i needed it for commercial projects

@PixelWandererZhou

assim como eu disse, o terminal trava e /etc/wsl-conf

Qual é a sua versão do Windows e do WSL

você pode tentar fazer um rootfs.tar sozinho

thanks for the idea, I'll study it and give it a try

Any progress?

i haven't had time to look at it yet, and i just did a quick migration to ubuntu because i needed it for commercial projects

you can just
cd ~
mkdir rootfs
pacstrap rootfs base base-devel
cd rootfs
tar -cvf ~/rootfs.tar *

@PixelWandererZhou

assim como eu disse, o terminal trava e /etc/wsl-conf

Qual é a sua versão do Windows e do WSL

você pode tentar fazer um rootfs.tar sozinho

thanks for the idea, I'll study it and give it a try

Any progress?

i haven't had time to look at it yet, and i just did a quick migration to ubuntu because i needed it for commercial projects

you can just
cd ~
mkdir rootfs
pacstrap rootfs base base-devel
cd rootfs
tar -cvf ~/rootfs.tar *

I tried to do what you said, but it gives me a fakeroot dependency error, I tried reinstalling it, both through yay and pacman and it still gives me the same error

@PixelWandererZhou

assim como eu disse, o terminal trava e /etc/wsl-conf

Qual é a sua versão do Windows e do WSL

você pode tentar fazer um rootfs.tar sozinho

thanks for the idea, I'll study it and give it a try

Any progress?

i haven't had time to look at it yet, and i just did a quick migration to ubuntu because i needed it for commercial projects

you can just
cd ~
mkdir rootfs
pacstrap rootfs base base-devel
cd rootfs
tar -cvf ~/rootfs.tar *

I tried to do what you said, but it gives me a fakeroot dependency error, I tried reinstalling it, both through yay and pacman and it still gives me the same error

trypacman -S base-devel first？

@PixelWandererZhou

assim como eu disse, o terminal trava e /etc/wsl-conf

Qual é a sua versão do Windows e do WSL

você pode tentar fazer um rootfs.tar sozinho

thanks for the idea, I'll study it and give it a try

Any progress?

i haven't had time to look at it yet, and i just did a quick migration to ubuntu because i needed it for commercial projects

you can just
cd ~
mkdir rootfs
pacstrap rootfs base base-devel
cd rootfs
tar -cvf ~/rootfs.tar *

I tried to do what you said, but it gives me a fakeroot dependency error, I tried reinstalling it, both through yay and pacman and it still gives me the same error

trypacman -S base-devel first？

yes, and I even installed it from scratch with the latest version of archlinuxwsl less than an hour ago

Somehow the error has been resolved, I downloaded the latest version available today (2024-05-21), did everything the documentation recommends and added just one thing, which was to remove the multilib package comment from /etc/pacman.conf, so I'm closing the issue as resolved.

authors: PixelWandererZhou TD-Sky c-rocha7 claudiocp


text:
🛑 API Server is down

In 312eba9, API Server ($API_SITE) was down:

HTTP code: 503
Response time: 964 ms

Resolved: API Server is back up in 9403706.

repo: yukbid/upptime


text:
dropdown-menu caret positioning calculations are off

When using this plugin in my app, the menu with suggestions end up in random places on the screen, so it seems like the caret calculations are off. I was able to do it on the demo page too.

Maybe Caret.js could help? (http://ichord.github.io/Caret.js/)

Got the same error on my pages.. But when i go to the Demo page, the problem seems to not be present on the demo page.. Can you explain us why ?

@p4d It strongly depends on your project, I cannot explain why it happens.

Ok, it seems you are right.. I did not found any common point between your demo and my code on my example.. I'm gonna try to integrate caretjs and then use it inside your plugin in order to make it find size clean wether the conditions are different or not. I'll try to update it if it works.

@p4d I'm writing v2. The version uses external core module: yuku-t/textcomplete [demo]. It already using caretjs.
If you don't care lack of IE8 support, you can use it.

Now v1.2.2 is released, which uses textarea-caret npm package. please use the new version.

authors: chandrewz p4d yuku-t

repo: yuku-t/jquery-textcomplete


text:
[求助/Help] 执行此命令出错VERSION=dev-test REGISTRY=registry.cn-beijing.aliyuncs.com/zexi make image region

支持产生镜像时，包以下错误，如何解决
make[1]: 离开目录“/root/goproject/src/yunion.io/x/cloudpods”
[+] Building 162.3s (1/1) FINISHED
=> ERROR [internal] booting buildkit                                                                                162.3s
=> => pulling image moby/buildkit:buildx-stable-1                                                                                162.3s
=> => creating container buildx_buildkit_build                                                                                0.0s

[internal] booting buildkit:

ERROR: Error response from daemon: No such image: moby/buildkit:buildx-stable-1
make: *** [image] 错误 1

@szz1113-1119 是否按照这个文档配置了 docker ? https://www.cloudpods.org/zh/docs/development/dev-env/#配置-docker

repo: yunionio/cloudpods


text:
Automated cherry pick of #2079: fix: cloudaccount and cloudprovider not in same domain

Cherry pick of #2079 on release/2.11.
#2079: fix: cloudaccount and cloudprovider not in same domain

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.11@79ea74c). Click here to learn what that means.
The diff coverage is 0%.

@@              Coverage Diff               @@
##             release/2.11   #2080   +/-   ##
==============================================
  Coverage                ?   7.18%
==============================================
  Files                   ?     445
  Lines                   ?   69379
  Branches                ?       0
==============================================
  Hits                    ?    4985
  Misses                  ?   63982
  Partials                ?     412

Flag
Coverage Δ

#aFlag
7.18% <0%> (?)

Impacted Files
Coverage Δ

pkg/compute/models/cloudproviders.go
1.08% <0%> (ø)

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 79ea74c...4b29e0a. Read the comment docs.

/lgtm

/approve

authors: codecov-io ioito swordqiu

repo: yunionio/onecloud


text:
fix: create baremetal server with iso, baremetal register support redfishApi

这个 PR 实现什么功能/修复什么问题:
修正：若干2.12 baremetal问题：1. 新建裸金属从iso启动失败 2. 托管物理机支持redfishAPI
是否需要 backport 到之前的 release 分支:

release/2.12
release/2.13

/area baremetal
/cc @zexi @wanyaoqi

Codecov Report

Merging #3603 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master   #3603      +/-   ##
=========================================
- Coverage    6.96%   6.95%   -0.02%
=========================================
  Files         497     497
  Lines       83439   83460      +21
=========================================
- Hits         5813    5802      -11
- Misses      77130   77163      +33
+ Partials      496     495       -1

Flag
Coverage Δ

#aFlag
6.95% <0%> (-0.02%)
:arrow_down:

Impacted Files
Coverage Δ

pkg/compute/models/guestdrivers.go
20% <ø> (ø)
:arrow_up:

pkg/compute/guestdrivers/esxi.go
4.62% <0%> (ø)
:arrow_up:

pkg/compute/guestdrivers/virtualization.go
0% <0%> (ø)
:arrow_up:

pkg/baremetal/manager.go
0.52% <0%> (ø)
:arrow_up:

pkg/compute/models/guest_actions.go
0% <0%> (ø)
:arrow_up:

pkg/baremetal/tasks/bm_register.go
0% <0%> (ø)
:arrow_up:

pkg/compute/guestdrivers/base.go
0% <0%> (ø)
:arrow_up:

pkg/compute/guestdrivers/kvm.go
3.42% <0%> (-0.03%)
:arrow_down:

pkg/util/influxdb/metrics.go
0% <0%> (ø)
:arrow_up:

pkg/compute/guestdrivers/baremetals.go
1.58% <0%> (-0.01%)
:arrow_down:

... and 2 more

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 c06537e...17d9931. Read the comment docs.

/lgtm
/approve

/lgtm

authors: codecov-io swordqiu wanyaoqi zexi


text:
Automated cherry pick of #3940: 修复不支持redis的公有云账号会频繁读取oss数据的问题

Cherry pick of #3940 on release/2.13.
#3940: 修复不支持redis的公有云账号会频繁读取oss数据的问题

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.13@831c1b7). Click here to learn what that means.
The diff coverage is 0%.

@@              Coverage Diff               @@
##             release/2.13   #3941   +/-   ##
==============================================
  Coverage                ?   6.96%
==============================================
  Files                   ?     503
  Lines                   ?   84829
  Branches                ?       0
==============================================
  Hits                    ?    5905
  Misses                  ?   78423
  Partials                ?     501

Flag
Coverage Δ

#aFlag
6.96% <0%> (?)

Impacted Files
Coverage Δ

pkg/compute/models/regiondrivers.go
20% <ø> (ø)

pkg/compute/models/elasticcache_instances.go
1.22% <0%> (ø)

pkg/compute/models/elasticcache_accounts.go
3.81% <0%> (ø)

pkg/compute/models/elasticcache_backups.go
4.63% <0%> (ø)

pkg/compute/models/cloudsync.go
0% <0%> (ø)

pkg/compute/models/elasticcache_acls.go
4.97% <0%> (ø)

pkg/compute/models/elasticcache_parameters.go
7.31% <0%> (ø)

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 831c1b7...b7a950c. Read the comment docs.

/lgtm

/approve

/approve

authors: codecov-io swordqiu tb365


text:
Automated cherry pick of #5178: fix(esxi): No distinction between ordinary scsi and pvscsi when creating disks

Cherry pick of #5178 on release/3.0.
#5178: fix(esxi): No distinction between ordinary scsi and pvscsi when creating disks

/lgtm

/approve

authors: rainzm swordqiu


text:
Automated cherry pick of #5490: fix: class action 统一使用keywords包裹

Cherry pick of #5490 on release/3.0.
#5490: fix: class action 没有被keyword包裹

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/3.0@4538ee2). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             release/3.0   #5492   +/-   ##
=============================================
  Coverage               ?   6.87%
=============================================
  Files                  ?     535
  Lines                  ?   91143
  Branches               ?       0
=============================================
  Hits                   ?    6262
  Misses                 ?   84360
  Partials               ?     521

Flag
Coverage Δ

#aFlag
6.87% <0.00%> (?)

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 4538ee2...366242b. Read the comment docs.

/lgtm

/approve


text:
Models for Cityscapes

Nice work!
Could you also release Source-domain(Cityscapes) fine-tuned weights (in Table 2) please?

We will soon release the generated source-domain related experiments. Please stay tuned for updates.

repo: yurujaja/DGInStyle


text:
报错

我按照步骤来了一遍，报错了，错误如下：
D:\work\workDet\packr\packr>packr  -c=${2} -l=${1} -r=${https://DESKTOP-D1SM9OQ/svn/testProj/}
D:\work\workDet\packr\packr>node D:\work\workDet\packr\packr\packr.js -c ${2} -l ${1} -r ${https://DESKTOP-D1SM9OQ/svn/testProj/}
module.js:340
throw err;
^
Error: Cannot find module './misc'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:289:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (D:\work\workDet\packr\packr\lib\cp.js:7:12)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (D:\work\workDet\packr\packr\packr.js:13:10)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
我看了下 lib下没有misc 这样的模块，请问这个怎么解决啊？

抱歉这个项目平时不在这个repo管理，导致上传出现了错误，我会更新一下。

已经更新

authors: CanNotFlyFish yusangeng

repo: yusangeng/packr


text:
Update README.md

Thank you for your pull request!
I add the item your repo.

thank you!!

authors: ton-na yuta-fujimoto-naist


text:
Error in DBSCAN

Hello there. I was running dbscan on Sysu dataset and some of the results I got from manipulating Sysu. I am encountering some error. watch -d -n 0.5 nvidia-smi
Full call back is as such
sh scripts/train_mmt_dbscan.sh Sysu Sysuresults resnet50
Args:Namespace(alpha=0.999, arch='resnet50', batch_size=64, data_dir='/home/sagar18174/Thesis/person_RE-identification/MMT/examples/data', dataset_source='Sysu', dataset_target='Sysuresults', dropout=0.0, epochs=40, eval_step=1, features=0, height=256, init_1='logs/SysuTOSysuresults/resnet50-pretrain-1/model_best.pth.tar', init_2='logs/SysuTOSysuresults/resnet50-pretrain-2/model_best.pth.tar', iters=400, lambda_value=0.0, logs_dir='logs/SysuTOSysuresults/resnet50-MMT-DBSCAN', lr=0.00035, momentum=0.9, num_instances=4, print_freq=1, rr_gpu=False, seed=1, soft_ce_weight=0.5, soft_tri_weight=0.8, weight_decay=0.0005, width=128, workers=4)
=> Market1501 loaded
Dataset statistics:
subset   | # ids | # images | # cameras
train    |   500 |    14870 |         2
query    |   500 |      745 |         2
gallery  |   486 |      486 |         1
=> Market1501 loaded
Dataset statistics:
subset   | # ids | # images | # cameras
train    |   259 |    11801 |         2
query    |   259 |      518 |         2
gallery  |   259 |      259 |         1
/home/sagar18174/.local/lib/python2.7/site-packages/torch/nn/parallel/data_parallel.py:26: UserWarning:
There is an imbalance between your GPUs. You may want to exclude GPU 0 which
has less than 75% of the memory or cores of GPU 1. You can do so by setting
the device_ids argument to DataParallel, or by setting the CUDA_VISIBLE_DEVICES
environment variable.
warnings.warn(imbalance_warn.format(device_ids[min_pos], device_ids[max_pos]))
=> Loaded checkpoint 'logs/SysuTOSysuresults/resnet50-pretrain-1/model_best.pth.tar'
mismatch: module.classifier.weight torch.Size([500, 2048]) torch.Size([11801, 2048])
missing keys in state_dict: set(['module.classifier.weight'])
mismatch: module.classifier.weight torch.Size([500, 2048]) torch.Size([11801, 2048])
missing keys in state_dict: set(['module.classifier.weight'])
=> Loaded checkpoint 'logs/SysuTOSysuresults/resnet50-pretrain-2/model_best.pth.tar'
mismatch: module.classifier.weight torch.Size([500, 2048]) torch.Size([11801, 2048])
missing keys in state_dict: set(['module.classifier.weight'])
mismatch: module.classifier.weight torch.Size([500, 2048]) torch.Size([11801, 2048])
missing keys in state_dict: set(['module.classifier.weight'])
Extract Features: [50/185] Time 0.105 (0.196) Data 0.000 (0.011)
Extract Features: [100/185] Time 0.106 (0.148) Data 0.000 (0.006)
Extract Features: [150/185] Time 0.106 (0.133) Data 0.000 (0.004)
Extract Features: [50/185] Time 0.102 (0.115) Data 0.000 (0.011)
Extract Features: [100/185] Time 0.123 (0.111) Data 0.015 (0.006)
Extract Features: [150/185] Time 0.106 (0.109) Data 0.000 (0.005)
Computing original distance...
Computing Jaccard distance...
Time cost: 154.446565151
examples/mmt_train_dbscan.py:182: RuntimeWarning: Mean of empty slice.
eps = tri_mat[:top_num].mean()
/home/sagar18174/.local/lib/python2.7/site-packages/numpy/core/methods.py:85: RuntimeWarning: invalid value encountered in true_divide
ret = ret.dtype.type(ret / rcount)
eps for cluster: nan
Clustering and labeling...
Traceback (most recent call last):
File "examples/mmt_train_dbscan.py", line 304, in
main()
File "examples/mmt_train_dbscan.py", line 130, in main
main_worker(args)
File "examples/mmt_train_dbscan.py", line 187, in main_worker
labels = cluster.fit_predict(rerank_dist)
File "/home/sagar18174/.local/lib/python2.7/site-packages/sklearn/cluster/dbscan.py", line 354, in fit_predict
self.fit(X, sample_weight=sample_weight)
File "/home/sagar18174/.local/lib/python2.7/site-packages/sklearn/cluster/dbscan_.py", line 322, in fit
**self.get_params())
File "/home/sagar18174/.local/lib/python2.7/site-packages/sklearn/cluster/dbscan_.py", line 127, in dbscan
raise ValueError("eps must be positive.")
ValueError: eps must be positive.
Any help is highly appreciated.
Sagar

It seems that the values in rerank_dist are all zeros.
Please double-check it, especially in the function https://github.com/yxgeee/MMT/blob/aeb547079c65d9aa2b8ce08d587970412d362b07/mmt/utils/rerank.py#L106

Hi, have you solved it? If not, it is recommended to provide more details about your modifications to the new dataset, which is helpful for more suggestions. I have added the "help" label to your issue so that more people may notice your problem and help you.

Hello there. Thank you for adding the label.
So the dataset that I made is using the results of cyclegan when applied on Sysu-RGB-IR dataset. I am trying to run the dbscan on the actual sysu dataset and the generated images that I have as the results of the cyclegan. I am able to run the train_mmt_kmeans.sh without any problem but while running dbscan on the same Sysu dataset and its result I am facing such error.

Generally, the values in rerank_dist cannot be all zeros. There may exist some bugs if such a situation appears. Did you check the values in rerank_dist? Are they all zeros?
Plus, your logs said examples/mmt_train_dbscan.py:182: RuntimeWarning: Mean of empty slice. eps = tri_mat[:top_num].mean(), have you checked the value of top_num?

authors: absagargupta yxgeee

repo: yxgeee/MMT


text:
trouble installing PySide in pyenv virtualenv using pip

Hi, thanks for a great tool!
As my title suggests, I am having trouble installing PySide in a pyenv virtualenv using pip. Part of the errors I get are
Linking CXX shared library libshiboken-python2.7.so
/usr/bin/ld: /home/demba/.pyenv/versions/2.7.8/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/home/demba/.pyenv/versions/2.7.8/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [libshiboken/libshiboken-python2.7.so.1.2.4] Error 1
make[1]: *** [libshiboken/CMakeFiles/libshiboken.dir/all] Error 2
make: *** [all] Error 2
error: Error compiling shiboken
I am on Ubuntu 14.04.3, 64 bit.
I am able to install PySide fine outside of a virtualenv using pip. Any help would be appreciated. I tried compiling shiboken from source but that did not help.
Thanks,
Demba.

/usr/bin/ld: /home/demba/.pyenv/versions/2.7.8/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/home/demba/.pyenv/versions/2.7.8/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status

read the error message.

Thanks for the prompt response. Can you be more precise?

It is saying that your binary isn't built with required compiler options. Read some document and rebuild CPython with those options like this; 'env PYTHON_CFLAGS=-fPIC pyenv install -v 2.7.8'

authors: demba yyuu

repo: yyuu/pyenv


text:
Add CPython 3.6.0a4; remove 3.6.0a1 and 3.6.0a3

https://www.python.org/downloads/release/python-360a4/.

:+1:

authors: yyuu zmwangx


text:
About the ratio between Lori and Lsoft

Hi, thanks for sharing the great work.
I am trying to train SwinTransformerTiny based on tf_NKD. I wonder if you could share the ratio between Lori and Lsoft during your SwinTransformerTiny trainning procedure on ImageNet, is it fixed 1:1 or is it varies during trainning ?

Fixed. Just follow the code is fine.

authors: sparksparkspark yzd-v


text:
Cmake Error

I just clone your repository and compile it, and got the following error :
The Caffe2 is build with the last pytorch github commit.
> make -j8
Scanning dependencies of target caffe2_cpp_test
[ 50%] Building CXX object CMakeFiles/caffe2_cpp_test.dir/src/main.cpp.o
/home/cgilab/Desktop/Caffe2_Demo/03_cpp_forward/build/caffe2_Cpp_example/src/main.cpp: In function ‘void caffe2::caffe2_pretrained_run()’:
/home/cgilab/Desktop/Caffe2_Demo/03_cpp_forward/build/caffe2_Cpp_example/src/main.cpp:121:50: error: use of deleted function ‘caffe2::Tensor::Tensor(const caffe2::Tensor&)’
             auto output = TensorCPU(output_device);
                                                  ^
In file included from /usr/local/include/caffe2/core/blob.h:13:0,
                 from /usr/local/include/caffe2/core/operator.h:12,
                 from /home/cgilab/Desktop/Caffe2_Demo/03_cpp_forward/build/caffe2_Cpp_example/inc/utils.h:10,
                 from /home/cgilab/Desktop/Caffe2_Demo/03_cpp_forward/build/caffe2_Cpp_example/src/main.cpp:1:
/usr/local/include/caffe2/core/tensor.h:763:3: note: declared here
   Tensor(const Tensor& src) = delete;
   ^
In file included from /usr/local/include/caffe2/core/operator.h:12:0,
                 from /home/cgilab/Desktop/Caffe2_Demo/03_cpp_forward/build/caffe2_Cpp_example/inc/utils.h:10,
                 from /home/cgilab/Desktop/Caffe2_Demo/03_cpp_forward/build/caffe2_Cpp_example/src/main.cpp:1:
/usr/local/include/caffe2/core/blob.h: In instantiation of ‘T* caffe2::Blob::GetMutable() [with T = caffe2::Tensor]’:
/home/cgilab/Desktop/Caffe2_Demo/03_cpp_forward/build/caffe2_Cpp_example/src/main.cpp:77:75:   required from here
/usr/local/include/caffe2/core/blob.h:127:5: error: static assertion failed: GetMutable can't be called with non-default-constructible types. Try using specialized methods
     static_assert(
     ^
/usr/local/include/caffe2/core/blob.h:135:22: error: use of deleted function ‘caffe2::Tensor::Tensor()’
       return Reset<T>(new T());
                      ^
In file included from /usr/local/include/caffe2/core/blob.h:13:0,
                 from /usr/local/include/caffe2/core/operator.h:12,
                 from /home/cgilab/Desktop/Caffe2_Demo/03_cpp_forward/build/caffe2_Cpp_example/inc/utils.h:10,
                 from /home/cgilab/Desktop/Caffe2_Demo/03_cpp_forward/build/caffe2_Cpp_example/src/main.cpp:1:
/usr/local/include/caffe2/core/tensor.h:94:3: note: declared here
   Tensor() = delete;
   ^
CMakeFiles/caffe2_cpp_test.dir/build.make:62: recipe for target 'CMakeFiles/caffe2_cpp_test.dir/src/main.cpp.o' failed
make[2]: *** [CMakeFiles/caffe2_cpp_test.dir/src/main.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/caffe2_cpp_test.dir/all' failed
make[1]: *** [CMakeFiles/caffe2_cpp_test.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

@zacario-li thanks for your reply.
and I just find there are lots of problems and bugs in caffe2. both tag 0.4v and 0.4.1v.
look forward to version 1.0.


text:
Hungarian translate

Hi,
I completed the Hungarian translation on the Crowdin site, quite some time ago.
Can I count on the release in Hungarian recently?
Regards,
gidano

I did the translation almost 4 months ago, but I don't see the Hungarian language in the new 1.12 release.
Is there a practical reason for this?

The 1.13.0 version released yesterday does not include the Hungarian translation on Crowdin, which was introduced a few months ago. May I know why! :/

The 1.13.0 version released yesterday does not include the Hungarian translation on Crowdin, which was introduced a few months ago. May I know why! :/

I'm still waiting for the localization libraries to mature enough for translations to work properly. They have some issues that make them difficult to use.

authors: gidano zacharee

repo: zacharee/SamloaderKotlin