Custom Marker Training - Downloaded Pattern not working

https://jeromeetienne.github.io/AR.js/three.js/examples/marker-training/examples/generator.html
Used the default AR.js image, downloaded the pattern.
Code:

</a-scene>

Marker not detected. Does anyone get the same problem?

@markleeyw I think the best option is to train that and include its path in the source code. I did that manually and its working.

@MrRaam  Any sample on what you did?

I'm getting the same error
I tried to create a customer marker with the website and get:
"Pattern Data read error!!
aframe-ar.js:2843 loadMarker(): Error loading pattern file /marker_0.
aframe-ar.js:2843 ARToolKitJS(): Unable to set up AR marker.
aframe-ar.js:2843 Out of memory!!"
I'm also stuck on what to try as I already tried a smaller marker its now less than 400x400 px

Where are you storing the pattern ? & are you changing the path files in
the ar.js ?
On Jul 13, 2017 12:07 AM, "Dinkelborg"<EMAIL_ADDRESS>wrote:

I'm getting the same error
I tried to create a customer marker with the website and get:
"Pattern Data read error!!
aframe-ar.js:2843 loadMarker(): Error loading pattern file /marker_0.
aframe-ar.js:2843 ARToolKitJS(): Unable to set up AR marker.
aframe-ar.js:2843 Out of memory!!"
I'm also stuck on what to try as I already tried a smaller marker its now
less than 400x400 px
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jeromeetienne/AR.js/issues/127#issuecomment-314858853,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ab0zlFzuJNIqxT9lRwVwk0QbMttEu1NLks5sNRJdgaJpZM4OShOm
.

@MrRaam could you hare how to did yours. It would be helpful

I generated the pattern here where the pdf generation doesn't work btw... but whatever
I then stored that as "pattern-marker.patt" in the root folder of my site (next to index.html) and then changed the example maker from

to

I also tried

Both cause the above mentioned errors - the patt-file looks normal to me - exact same amount of lines as the hiro example pattern and I can clearly see my marker logo in the numbers.
I followed these steps but it's just not working

@Dinkelborg yup .. i think the code  does not work somehow. .. i used their default marker too.

@Dinkelborg Found this but not time to try ... if you get it to work do let me know https://github.com/jeromeetienne/AR.js/issues/61
Thank you!

@markleeyw
Awesome man! Thanks a lot, it took quite a while to dig into the aframe-ar.js file, but if you create your own preset, as descried in the post you linked, it does work!
Now I still hope that they fix the regular  tag implementation using the "type='pattern'" and "patternUrl" parameters since that wouldn't require changing the source of the library every time you want to use a custom marker.

You don't have to create your own data folder btw I kept everything as it is, created a custom variable (line 865)
THREEx.ArToolkitContext.hostURL = './'
directly under (line 864) THREEx.ArToolkitContext.baseURL = 'https://jeromeetienne.github.io/AR.js/three.js/'
then I changed the Reset paragraph (line 1195 to 1217) to:
//////////////////////////////////////////////////////////////////////////////
//		Code Separator
//////////////////////////////////////////////////////////////////////////////

/**
 * reset all parameters
 */
THREEx.ArToolkitProfile.prototype.reset = function () {
	this.sourceParameters = {
		// to read from the webcam
		sourceType : 'webcam',
	}

	this.contextParameters = {
		cameraParametersUrl: THREEx.ArToolkitContext.baseURL + '../data/data/camera_para.dat',
		detectionMode: 'mono',
	}
	this.defaultMarkerParameters = {
		type : 'pattern',
		patternUrl : THREEx.ArToolkitContext.hostURL + 'pattern-marker.patt'
	}
	return this
};

(basically only change is under "this.defaultMarkerParameters" where you change the patternUrl)
and then I created a new Marker under (line 1255 to 1280):
//////////////////////////////////////////////////////////////////////////////
//		Marker
//////////////////////////////////////////////////////////////////////////////
THREEx.ArToolkitProfile.prototype.kanjiMarker = function () {
	this.contextParameters.detectionMode = 'mono'

	this.defaultMarkerParameters.type = 'pattern'
	this.defaultMarkerParameters.patternUrl = THREEx.ArToolkitContext.baseURL + '../data/data/patt.kanji'
	return this
}

THREEx.ArToolkitProfile.prototype.hiroMarker = function () {
	this.contextParameters.detectionMode = 'mono'

	this.defaultMarkerParameters.type = 'pattern'
	this.defaultMarkerParameters.patternUrl = THREEx.ArToolkitContext.baseURL + '../data/data/patt.hiro'
	return this
}

THREEx.ArToolkitProfile.prototype.myCustomMarker= function () {
  this.contextParameters.detectionMode = 'mono'

  this.defaultMarkerParameters.type = 'pattern'
  this.defaultMarkerParameters.patternUrl = THREEx.ArToolKitContext.hostURL+ 'pattern-marker.patt'
  return this
}

(see the last marker was added the rest is default)
and the last step is to add your marker preset to the init function (line 2729) preset check (line 2737 to 2752):
		// honor this.data.preset
		if( this.data.preset === 'hiro' ){
			this.data.type = 'pattern'
			this.data.patternUrl = THREEx.ArToolkitContext.baseURL+'examples/marker-training/examples/pattern-files/pattern-hiro.patt'
		}else if( this.data.preset === 'kanji' ){
			this.data.type = 'pattern'
			this.data.patternUrl = THREEx.ArToolkitContext.baseURL+'examples/marker-training/examples/pattern-files/pattern-kanji.patt'
		}else if( this.data.preset === 'area' ){
			this.data.type = 'area'
			// fall through
		}else if( this.data.preset === 'myCustomMarker'){
      this.data.type = 'pattern'
      this.data.patternUrl = THREEx.ArToolkitContext.hostURL+'pattern-marker.patt'
    } else {
			console.assert( this.data.preset === '', 'illegal preset value '+this.data.preset)
		}

(see the pre-last statement if(this.data.preset === 'myCustomMarker')... )
After all of that you can just use your custom preset like the hiro preset so in the html, in the  just swap the  'preset' value from 'hiro' to 'myCustomMarker' (or whatever you called yours
When you try, make sure to clear cache if it doesn't work instantly - but that was all works like a charm for me now

Sorry couldn't get back on time,
for people who are not able link the pattern url properly, try uploading
the pattern file in Github and then use that file link in the ar.js file.
On Jul 13, 2017 6:22 PM, "Dinkelborg"<EMAIL_ADDRESS>wrote:

You don't have to create your own data folder btw I kept everything as it
is, created a custom variable (line 865)
THREEx.ArToolkitContext.hostURL = './'
directly under (line 864) THREEx.ArToolkitContext.baseURL = '
https://jeromeetienne.github.io/AR.js/three.js/'
then I changed the Reset paragraph (line 1195 to 1217) to:
//////////////////////////////////////////////////////////////////////////////
//		Code Separator
//////////////////////////////////////////////////////////////////////////////
/**

reset all parameters
*/
THREEx.ArToolkitProfile.prototype.reset = function () {
this.sourceParameters = {
// to read from the webcam
sourceType : 'webcam',
}

this.contextParameters = {
cameraParametersUrl: THREEx.ArToolkitContext.baseURL + '../data/data/camera_para.dat',
detectionMode: 'mono',
}
this.defaultMarkerParameters = {
type : 'pattern',
patternUrl : THREEx.ArToolkitContext.hostURL + 'pattern-marker.patt'
}
return this
};
(basically only change is under "this.defaultMarkerParameters" where you
change the patternUrl)
and then I created a new Marker under (line 1255 to 1280):
//////////////////////////////////////////////////////////////////////////////
//		Marker
//////////////////////////////////////////////////////////////////////////////
THREEx.ArToolkitProfile.prototype.kanjiMarker = function () {
this.contextParameters.detectionMode = 'mono'
this.defaultMarkerParameters.type = 'pattern'
this.defaultMarkerParameters.patternUrl = THREEx.ArToolkitContext.baseURL + '../data/data/patt.kanji'
return this
}
THREEx.ArToolkitProfile.prototype.hiroMarker = function () {
this.contextParameters.detectionMode = 'mono'
this.defaultMarkerParameters.type = 'pattern'
this.defaultMarkerParameters.patternUrl = THREEx.ArToolkitContext.baseURL + '../data/data/patt.hiro'
return this
}
THREEx.ArToolkitProfile.prototype.myCustomMarker= function () {
this.contextParameters.detectionMode = 'mono'
this.defaultMarkerParameters.type = 'pattern'
this.defaultMarkerParameters.patternUrl = THREEx.ArToolKitContext.hostURL+ 'pattern-marker.patt'
return this
}
(see the last marker was added the rest is default)
and the last step is to add your marker preset to the init function (line
2729) preset check (line 2737 to 2752):
  // honor this.data.preset
  if( this.data.preset === 'hiro' ){
  	this.data.type = 'pattern'
  	this.data.patternUrl = THREEx.ArToolkitContext.baseURL+'examples/marker-training/examples/pattern-files/pattern-hiro.patt'
  }else if( this.data.preset === 'kanji' ){
  	this.data.type = 'pattern'
  	this.data.patternUrl = THREEx.ArToolkitContext.baseURL+'examples/marker-training/examples/pattern-files/pattern-kanji.patt'
  }else if( this.data.preset === 'area' ){
  	this.data.type = 'area'
  	// fall through
  }else if( this.data.preset === 'myCustomMarker'){
  this.data.type = 'pattern'
  this.data.patternUrl = THREEx.ArToolkitContext.hostURL+'pattern-marker.patt'
} else {
  	console.assert( this.data.preset === '', 'illegal preset value '+this.data.preset)
  }

(see the pre-last statement if(this.data.preset === 'myCustomMarker')... )
After all of that you can just use your custom preset like the hiro preset
so in the html, in the just swap the 'preset' value from 'hiro' to
'myCustomMarker' (or whatever you called yours
When you try, make sure to clear cache if it doesn't work instantly - but
that was all works like a charm for me now
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jeromeetienne/AR.js/issues/127#issuecomment-315068635,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ab0zlKU92sN5FTAjMjHA1CpJ02xCM-Q3ks5sNhMkgaJpZM4OShOm
.

@MrRaam were you able to just upload the patt file and add this
<a-marker-camera type='pattern' patternUrl='https://raw.github.com/username/project/master/pattern-marker.patt'></a-marker-camera>
to your code and have it recognize it?  As of now, I am just trying to get it to work with the provided new Ar.js marker and I get the console output:
"Pattern Data read error!!
aframe-ar.js:2843 loadMarker(): Error loading pattern file /marker_0.
aframe-ar.js:2843 ARToolKitJS(): Unable to set up AR marker.
aframe-ar.js:2843 Out of memory!!"

@imehrotra
You are experiencing the same problem I had.
The steps I describe above should work for you, can you explain what went wrong when you tried changing the code?
I was going to try and find out where the  tag recognition is broken in the aframe-ar.js file, but for once it's kinda huge and I didn't make it, besides that I didn't have the time yet.
I think that they expect the custom maker pattern files in a specific folder, but that isn't really stated clearly - it might as well be that it's just broken

When I change the code, I don't get any errors, but it just doesn't detect the marker.  I think there might be something wrong with my script urls in the html ar.js file.  What did you change the scripts too?  Right now, mine are set as
  <script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script>
  <script src="ar/aframe/build/aframe-ar.js"></script> // this is my local copy of the edited code

I went over the changes I made in the aframe-ar.js file step by step and pointed out what exactly I changed... I don't think I could make that any clearer ...
Your urls look fine these are in the head-section of my index.html:
`
//My changed local copy

`

@imehrotra https://github.com/imehrotra you are almost there, I didn't
use the pattern url like as you did instead i referenced a my own marker
variable by making changes in aframe-ar.js, you have to change in
aframe-ar.js just like @Dinkelborg did, i think it's almost the same which
i did with few variations. Let me know if you are still not able to get
that.
ᐧ
On Tue, Jul 18, 2017 at 1:53 AM, Dinkelborg<EMAIL_ADDRESS>wrote:

I went over the changes I made in the aframe-ar.js file step by step and
pointed out what exactly I changed... I don't think I could make that any
clearer ...
Your urls look fine these are in the head-section of my index.html:
`
//My changed local copy
 `
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jeromeetienne/AR.js/issues/127#issuecomment-315871625,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ab0zlBlnUV4jScIN0-NOh_EvZCf18Rw4ks5sO8KugaJpZM4OShOm
.

I'm not sure what the issue was originally, but I redid the steps and it works now - thanks for your help! @Dinkelborg  @MrRaam

Looks like the syntax for <a-marker-camera> is something like
<a-marker-camera type='pattern' url='your-url-here'></a-marker-camera>

@machenmusik it works for me! thanks!

@machenmusik following code works for me too !
Looks like the syntax for <a-marker-camera> is something like
<a-marker-camera type='pattern' url='your-url-here'></a-marker-camera>
(not patternURL)

Great!  Perhaps this issue can be closed then.

Hi @achatt89 , I believe I worked with version 1.0.0 my files are from the 12th of July.
Yeah at least with my work-around only one marker could be trained, but seeing that several other users like @machenmusik report the a-marker-camera tag to be working I believe my fix should no longer be necessary
I didn't try their solution, does
Work for you? The docs say patternURL but apparently it's just url instead

Hi..
Thanks for the reply mate :)
Nope patternUrl doesn't work.. Haven't tried just URL though...
Following your method, it does work fine for just one custom marker... But
the project I am trying to implement requires multiple custom markers to be
trained. I also noticed that the latest version of aframe-ar.js has Kanji
marker removed for some reason..
Anyways...thank you very much for the original assist with the custom
marker training.. it worked just fine..
Cheers.. :)
P.S. I will keep digging for multiple custom marker training and will keep
you posted if I am successful..
On 18 Aug 2017 19:52, "Dinkelborg"<EMAIL_ADDRESS>wrote:

Hi @achatt89 https://github.com/achatt89 , I believe I worked with
version 1.0.0 my files are from the 12th of July.
Yeah at least with my work-around only one marker could be trained, but
seeing that several other users like @machenmusik
https://github.com/machenmusik report the a-marker-camera tag to be
working I believe my fix should no longer be necessary
I didn't try their solution, does
Work for you? The docs say patternURL but apparently it's just url instead
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jeromeetienne/AR.js/issues/127#issuecomment-323433658,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGK-K_NqInqESz2zLFiDBwT3ODYfPPLuks5sZd2HgaJpZM4OShOm
.

@kumarahir which version of the aframe-ar.js are you using, im following the latest 1.5.0 but using url for the marker is not working for me.

@jeromeetienne / @Dinkelborg / @MrRaam:
the  tag doesn't seem to be working for using custom patterns. I have tried with both patternUrl & url.
I am using version 1.5.1.
@machenmusik : It seems to be working for you. Can you confirm on how you achieved it?
Regards..

@Abhijit can i see the error log if there is any?
On Mon, Aug 21, 2017 at 4:12 PM, Abhijit Chatterjee <
<EMAIL_ADDRESS>wrote:

@jeromeetienne https://github.com/jeromeetienne / @Dinkelborg
https://github.com/dinkelborg / @MrRaam https://github.com/mrraam:
the tag doesn't seem to be working for using custom patterns. I have tried
with both patternUrl & url.
I am using version 1.5.1.
@machenmusik https://github.com/machenmusik : It seems to be working
for you. Can you confirm on how you achieved it?
Regards..
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jeromeetienne/AR.js/issues/127#issuecomment-323711049,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ab0zlL0C8zKZqLrK1IG_nI3LLt8UouO1ks5saV8TgaJpZM4OShOm
.

@MrRaam / @jeromeetienne
Here's the code what I am using:
`

<!--<a-marker-camera preset="greenTriangleMarker"></a-marker-camera>-->
<a-marker-camera type='pattern' url='./patterns/green-triangle-marker.patt'></a-marker-camera>

`
There's no console error.
The pattern doesn't even load nor is recognised while trying to scan.
Its not shown in the network/sources tab.
Regards..

Hi,
Please upload that .patt files in github and place that link in the url. it
should work. Cheers !
On Mon, Aug 21, 2017 at 7:46 PM, Abhijit Chatterjee <
<EMAIL_ADDRESS>wrote:

@MrRaam https://github.com/mrraam / @jeromeetienne
https://github.com/jeromeetienne
Here's the code what I am using:
`
http://./images/building_info.png

`
There's no console error.
The pattern doesn't even load nor is recognised while trying to scan.
Its not shown in the network/sources tab.
Regards..
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jeromeetienne/AR.js/issues/127#issuecomment-323753795,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ab0zlJNc9YJRfvQBCcCDrnZ8KEjFdbHzks5saZFKgaJpZM4OShOm
.

@MrRaam :
Hi..
That doesn't work. I have tried it before..
Here's the link to my patt file:
https://github.com/achatt89/abhijitchatterjee.com/blob/master/green-triangle-marker.patt
Cheers.. :)

Hi guys,
I think I solved the issue in #164 (check the PR).

@sonalranjit using latest 0.6.0 version of aframe and aframe-ar is directly being loaded from https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.js
This is working perfectly
<script src="../lib/0.6.0/aframe.min.js"></script>
<!-- include ar.js for A-Frame -->
<script src="https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.js"></script>
<body style='margin : 0px; overflow: hidden;'>
  <a-scene embedded arjs>
	<a-assets>
		<a-asset-item id='wolf' src='Wolf.obj'></a-asset-item>
	</a-assets>

	<!-- define a camera which will move according to the marker position -->
	<a-marker type='pattern' url='letterk.patt'>
		<a-obj-model src="#wolf" scale="0.01 0.01 0.01"></a-obj-model>
	</a-marker>
	<a-entity camera></a-entity>
  </a-scene>
</body>

@kumarahir i tired your way still only triggering for the default Hiro pattern.
`

Patio AR

<a-scene embedded arjs>
    <a-assets>
        <a-asset-item id="nike-waffle-obj" src="data/models/nike.obj"></a-asset-item>
        <a-asset-item id="nike-waffle-mtl" src="data/models/nike.mtl"></a-asset-item>
    </a-assets>
    <a-marker type='pattern' url='nike-pattern.patt' >
        <a-entity obj-model="obj: #nike-waffle-obj; mtl: #nike-waffle-mtl" scale="0.3 0.3 0.3" rotation="0 0 0" position="0 0 0">
        </a-entity>
    </a-marker>
    <a-entity camera></a-entity>

`
will checkout @wimvdc 's fix

I made it work with these instructions:
https://github.com/jeromeetienne/AR.js/issues/164#issuecomment-332065686

Looking at what @vin-ni used,
It seems as though the common mistake is trying to use a-marker when the correct primitive to use is a-marker-camera - I am pretty sure that I didn't need to change to light grey etc.

After following instructions mentioned in #164, I have created custom marker (dd.patt) but still facing the problem of marker detection.
Code is -
<a-scene embedded arjs>       <a-box position='0 0.5 0' color="blue"></a-box>       <a-marker-camera preset='custom' type='pattern' url='dd.patt'></a-marker-camera>       <a-marker-camera preset='hiro'></a-marker-camera>   </a-scene>
sadigitaldiaries.com
Opened above url in mobile. It is able to detect hiro, but not custom(dd). Kindly assist to resolve the issue.
Markers:

Nothing this work for me =/

You don't have to create your own data folder btw I kept everything as it is, created a custom variable (line 865)
THREEx.ArToolkitContext.hostURL = './'
directly under (line 864) THREEx.ArToolkitContext.baseURL = 'https://jeromeetienne.github.io/AR.js/three.js/'
then I changed the Reset paragraph (line 1195 to 1217) to:
//////////////////////////////////////////////////////////////////////////////
//		Code Separator
//////////////////////////////////////////////////////////////////////////////

/**
 * reset all parameters
 */
THREEx.ArToolkitProfile.prototype.reset = function () {
	this.sourceParameters = {
		// to read from the webcam
		sourceType : 'webcam',
	}

	this.contextParameters = {
		cameraParametersUrl: THREEx.ArToolkitContext.baseURL + '../data/data/camera_para.dat',
		detectionMode: 'mono',
	}
	this.defaultMarkerParameters = {
		type : 'pattern',
		patternUrl : THREEx.ArToolkitContext.hostURL + 'pattern-marker.patt'
	}
	return this
};

(basically only change is under "this.defaultMarkerParameters" where you change the patternUrl)
and then I created a new Marker under (line 1255 to 1280):
//////////////////////////////////////////////////////////////////////////////
//		Marker
//////////////////////////////////////////////////////////////////////////////
THREEx.ArToolkitProfile.prototype.kanjiMarker = function () {
	this.contextParameters.detectionMode = 'mono'

	this.defaultMarkerParameters.type = 'pattern'
	this.defaultMarkerParameters.patternUrl = THREEx.ArToolkitContext.baseURL + '../data/data/patt.kanji'
	return this
}

THREEx.ArToolkitProfile.prototype.hiroMarker = function () {
	this.contextParameters.detectionMode = 'mono'

	this.defaultMarkerParameters.type = 'pattern'
	this.defaultMarkerParameters.patternUrl = THREEx.ArToolkitContext.baseURL + '../data/data/patt.hiro'
	return this
}

THREEx.ArToolkitProfile.prototype.myCustomMarker= function () {
  this.contextParameters.detectionMode = 'mono'

  this.defaultMarkerParameters.type = 'pattern'
  this.defaultMarkerParameters.patternUrl = THREEx.ArToolKitContext.hostURL+ 'pattern-marker.patt'
  return this
}

(see the last marker was added the rest is default)
and the last step is to add your marker preset to the init function (line 2729) preset check (line 2737 to 2752):
		// honor this.data.preset
		if( this.data.preset === 'hiro' ){
			this.data.type = 'pattern'
			this.data.patternUrl = THREEx.ArToolkitContext.baseURL+'examples/marker-training/examples/pattern-files/pattern-hiro.patt'
		}else if( this.data.preset === 'kanji' ){
			this.data.type = 'pattern'
			this.data.patternUrl = THREEx.ArToolkitContext.baseURL+'examples/marker-training/examples/pattern-files/pattern-kanji.patt'
		}else if( this.data.preset === 'area' ){
			this.data.type = 'area'
			// fall through
		}else if( this.data.preset === 'myCustomMarker'){
      this.data.type = 'pattern'
      this.data.patternUrl = THREEx.ArToolkitContext.hostURL+'pattern-marker.patt'
    } else {
			console.assert( this.data.preset === '', 'illegal preset value '+this.data.preset)
		}

(see the pre-last statement if(this.data.preset === 'myCustomMarker')... )
After all of that you can just use your custom preset like the hiro preset so in the html, in the just swap the 'preset' value from 'hiro' to 'myCustomMarker' (or whatever you called yours
When you try, make sure to clear cache if it doesn't work instantly - but that was all works like a charm for me now
//PS//
Btw the pattern-marker.patt I downloaded from the website is in my root folder, that's why "hostURL" for me is "./" if you store your pattern file somewhere else, change this to the according path

Hi!! I'm facing the same issue, and tried to follow this steps, but it looks like de aframe-ar.js code has changed??
In my case, this exactly my error:
components:gltf-model:warn Failed to load glTF model browser.js:111:7
Pattern Data read error!! aframe-ar.js:2:23001
loadMarker(): Error loading pattern file /marker_0. aframe-ar.js:2:23001
ARToolKitJS(): Unable to set up AR marker. aframe-ar.js:2:23001
Out of memory!! aframe-ar.js:2:23001
ExitStatus: Program terminated with exit(1)

I have a local server, and there is working perfect, even from a mobile accessing from network.
But when I upload it to my webServer and try to run it online, this happens... from android, iphone or computer (with Firefox 'cause of the https limitations).
Is there something to do with this? Please I'm stuck with this since 3 days ago.
Thanks in advice!! :)


input must be a CUDA tensor error when using AdaPool3d

Great work!
However, when i'm using AdaPool3d, and i encoutered the error below:
Traceback (most recent call last):
  File "<masked>/main.py", line 339, in <module>
    main()
  File "<masked>/main.py", line 329, in main
    train_loss, train_acc = train(model, train_loader, epoch, criterion, optimizer)
  File "<masked>/main.py", line 113, in train
    outputs = model(inputs)
  File "<masked>/miniconda3/envs/python39/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "<masked>/miniconda3/envs/python39/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "<masked>/miniconda3/envs/python39/lib/python3.9/site-packages/torch/nn/parallel/data_parallel.py", line 183, in forward
    return self.module(*inputs[0], **module_kwargs[0])
  File "<masked>/miniconda3/envs/python39/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "<masked>/miniconda3/envs/python39/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "<masked>/models/cnn3d_adapool.py", line 52, in forward
    x = self.pool(x)
  File "<masked>/miniconda3/envs/python39/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "<masked>/miniconda3/envs/python39/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "<masked>/miniconda3/envs/python39/lib/python3.9/site-packages/adaPool-0.1-py3.9-linux-x86_64.egg/adaPool/idea.py", line 1495, in forward
    return adapool3d(x, beta=self.beta, kernel_size=self.kernel_size, stride=self.stride, return_mask=self.return_mask, native=self.native)
  File "<masked>/miniconda3/envs/python39/lib/python3.9/site-packages/adaPool-0.1-py3.9-linux-x86_64.egg/adaPool/idea.py", line 771, in adapool3d
    x = beta*CUDA_ADAPOOL3d_EDSCW.apply(x, kernel_size, stride, return_mask) + (1. - beta)*CUDA_ADAPOOL3d_EM.apply(x, kernel_size, stride, return_mask)
  File "<masked>/miniconda3/envs/python39/lib/python3.9/site-packages/torch/autograd/function.py", line 553, in apply
    return super().apply(*args, **kwargs)  # type: ignore[misc]
  File "<masked>/miniconda3/envs/python39/lib/python3.9/site-packages/torch/cuda/amp/autocast_mode.py", line 123, in decorate_fwd
    return fwd(*args, **kwargs)
  File "<masked>/miniconda3/envs/python39/lib/python3.9/site-packages/adaPool-0.1-py3.9-linux-x86_64.egg/adaPool/idea.py", line 505, in forward
    adapool_cuda.forward_3d_edscw(input.contiguous(), kernel, stride, output, return_mask, mask)
RuntimeError: input.is_cuda() INTERNAL ASSERT FAILED at "CUDA/adapool_cuda.cpp":616, please report a bug to PyTorch. input must be a CUDA tensor

I've checked the if the input is on the cuda by printing input.is_cuda just before the adapool_cuda.forward_3d_edscw function call, and it displays True. But, when it comes to the cpp file, the input became NOT a CUDA tensor. I'm really comfused about that. Hope to receive your reply soon. Thanks!

Hi @Tloops,
Can you share a minimal snippet of your code?
A quick solution would be to explicitly do .cuda() in the call.

Thanks for your reply!
I've tried adapool_cuda.forward_3d_edscw(input.contiguous().cuda(), kernel, stride, output, return_mask, mask) in idea.py, but I still get the same error above.
A minimal snippet of my code (the model part) is as follows:
import adapool_cuda
from adaPool import AdaPool3d

class CNN3D(nn.Module):
    def __init__(self, num_classes):
        super(CNN3D, self).__init__()
        self.cnn = nn.Sequential(
            BasicConv(1, 8, kernel_size=(3, 3, 3), stride=(1, 1, 1), padding=(1, 1, 1)),
            nn.MaxPool3d(kernel_size=(2, 2, 2), stride=(2, 2, 2), padding=(1, 0, 1)),
            BasicConv(8, 16, kernel_size=(3, 3, 3), stride=(1, 1, 1), padding=(1, 1, 1)),
            nn.MaxPool3d(kernel_size=(2, 2, 2), stride=(2, 2, 2), padding=(1, 0, 0)),
            BasicConv(16, 32, kernel_size=(3, 3, 3), stride=(1, 1, 1), padding=(1, 1, 1)),
            nn.MaxPool3d(kernel_size=(2, 2, 2), stride=(2, 2, 2), padding=(1, 0, 1)),
            BasicConv(32, 64, kernel_size=(3, 3, 3), stride=(1, 1, 1), padding=(1, 1, 1)),
            nn.MaxPool3d(kernel_size=(2, 2, 2), stride=(2, 2, 2), padding=(0, 0, 1)),
            BasicConv(64, 128, kernel_size=(3, 3, 3), stride=(1, 1, 1), padding=(1, 1, 1)),
            nn.MaxPool3d(kernel_size=(2, 2, 2), stride=(2, 2, 2), padding=(1, 1, 0)),
        )
        self.pool = AdaPool3d(kernel_size=(6,7,6), beta=torch.Tensor([[[0.5]]]))
        self.fc = nn.Linear(128, num_classes)
        self.softmax = nn.Softmax()

    def forward(self, x):
        x = self.cnn(x)
        x = self.pool(x)
        x = x.view(x.size(0), -1)
        x = self.fc(x)
        x = self.softmax(x)
        return x

You need the beta tensor to also be in cuda, i.e:
pool = AdaPool3d(kernel_size=(6,7,6), beta=torch.Tensor([[[0.5]]]).cuda())


implement login page

Title: [Persona name] should (not) be able to [overarching action]
Business/User Value: As [persona] I want to [action by user] so that [value or need met]
Acceptance Criteria
GIVEN [necessary context and preconditions for story]
WHEN [action]
THEN [reaction]
DEV NOTES

https://github.com/chainmakers/dicoapp/blob/glxt/imports/ui/components/login/login.js#L26
https://github.com/chainmakers/dicoapp/blob/glxt/.desktop/modules/marketmaker/index.js#L145
https://github.com/chainmakers/dicoapp/blob/glxt/.desktop/modules/marketmaker/index.js#L152

DESIGN Notes

---other items that you may add to a story---
NEEDS PM
None
NEEDS DESIGN
None
/label ~"story"

We have to start
https://github.com/particle4dev/dicoapp-e/issues/10

electrum
This method enables a coin by connecting to the specified electrumx server.
https://docs.komodoplatform.com/barterDEX/barterDEX-API.html#electrum

balance
https://docs.komodoplatform.com/barterDEX/barterDEX-API.html#balance

https://komodoplatform.atlassian.net/wiki/spaces/KPSD/pages/9797644/What+is+the+BarterDEX+passphrase

const setparams = {
            'userpass': '1d8b27b21efabcd96571cd56f91a40fb9aa4cc623d273c63bf9223dc6f8cd81f',
            'userhome': `${process.env.HOME}`,
            'method': 'passphrase',
            'passphrase': passphrase,
            'gui': 'dICOApp',
            // 'netid':
            // 'seednode':
        };

https://github.com/chainmakers/dicoapp/blob/glxt/.desktop/modules/marketmaker/index.js#L641

sweetalert
https://github.com/t4t5/sweetalert


PR: Add some instructions for maintainers

This details several things that maintainers need to know for their job.
@dalthviz, please take a look at this one.

Thanks @dalthviz for the review. I added the instructions to perform the extra tasks you mentioned above.

Thanks @ccordoba12 I was checking and maybe this file should be added to the setup.cfg?

Good point! I did that in my last commit.


fix(assets): fix tabs and quotes in source-list op. 23

Fix tabs + " in source-list of op. 23

Danke!


Third-party apps / extensions: fluentcms-campaign

Thanks for django-fluent-[contents|pages], here is my small contribution https://github.com/bashu/fluentcms-campaign (work in-progress)

Thanks! :D


The Container list to add the Container ID, Please

The Container list to add the Container ID, Please, Thanks

Sorry I'm not sure I understand, would you like to see the container ID displayed in the container list view?

yes

Could you specify the reason here? I don't see any interest in adding the container ID here and I feel it would make the view too much bloated.

My application has multiple containers, Sometimes the problem is found, My program recorded the container id, I can not find the container ID in the portainer

@ncresswell what's your thoughts on this one?

I dont think we should add this in the list. The ID is shown if the container name is clicked.
Rgds,
Neil Cresswell
On 23/01/2017, at 11:01 AM, Anthony Lapenna <notifications<EMAIL_ADDRESS>wrote:
@ncresswellhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_ncresswell&d=DQMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=0fx0h4vB56iTLpw2McH1ZD6TqG_QGpbggVOB-PfMJpM&m=zry_pGdlexkQnmqC9iTZU6CyuzPib2TCDpMzByztN60&s=f9fIx9nBJUw6ZXWN499SkHI2oUtxaIhJA3fon3joCeM&e= what's your thoughts on this one?

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_portainer_portainer_issues_528-23issuecomment-2D274395616&d=DQMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=0fx0h4vB56iTLpw2McH1ZD6TqG_QGpbggVOB-PfMJpM&m=zry_pGdlexkQnmqC9iTZU6CyuzPib2TCDpMzByztN60&s=DbiJmWfeE4NsfQLi1tIhm_p2jDUl3aq_AYwBAQiJZqg&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AWGrldAmOqguTXrlGHfYqr6XZv8QGquEks5rVCYigaJpZM4LqVNB&d=DQMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=0fx0h4vB56iTLpw2McH1ZD6TqG_QGpbggVOB-PfMJpM&m=zry_pGdlexkQnmqC9iTZU6CyuzPib2TCDpMzByztN60&s=Itri5ZdGEeqEHWYf2EoFl8N-xo2PyNnoiWp7Eu6YAu0&e=.

This is also my point of view on this one. I'll close the issue.


cannot run nuxtjs after update nitro 2.10.0

Environment
Nitro 2.10.0
Reproduction
package.json use "nuxt": "^3.10.1", node 18.20.4

Run npm install
npm run build
Run node .output/server/index.mjs

Describe the bug
Cannot start application as following error.
/prooject/frontend-nuxtjs/.output/server/chunks/nitro/nitro.mjs:8609
return base ? prefixStorage(storage, base) : storage;
^
ReferenceError: Cannot access 'storage' before initialization
at useStorage (file:///project/frontend-nuxtjs/.output/server/chunks/nitro/nitro.mjs:8609:31)
at file:///project/frontend-nuxtjs/.output/server/chunks/nitro/nitro.mjs:7850:19
at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)
at async loadESM (node:internal/process/esm_loader:34:7)
at async handleMainPromise (node:internal/modules/run_main:106:12)
Node.js v18.20.4
Additional context
No response
Logs
No response

I have the same issue with the error:
ReferenceError: Cannot access '_sharedRuntimeConfig' before initialization

This should be raised in the nuxt repo

Seems related to #2832

Resolved with #2839 (in nightly and for 2.10.1+)
In case of similar issues, please consider reporting using a new issue (nuxt reproduction is fine in similar issues since problem is more complex)

Thank you all. I got it solve the patch 2.10.1+


Any headway on Album/Artist View?

Was any headway ever made on building Artist or Album views? I noticed that some issues were raised last year but seemed to be closed without any pull requests being made. If not, I'll have a look at adding the functionality over the next couple of weeks.

[ ] Add an Album view, order by Artist and then by Album, where selecting the Album shows all tracks in that Album.
[ ] Add an Artist view, where selecting an Artist shows all tracks by that Artist - grouped by Album in orderings.

Yeah. It would be great.

Hello @jacobsax and @igorer88 !
I started to anticipate the work on this with some refactoring in 0.8 release. The "official issue" for this is #130 though. We can discuss about the specs you'd like to see there if you want :)


Don't use the GitHub Wiki

Motivation
The ROHD Forum currently uses the GitHub Wiki, which has a few downsides:

not indexed by search engines
limited collaborative editing (not so easy to track changes and not able to control formatting of Markdown files using GitHub Actions)
you can't get Wiki update notifications when watching a repository
limited ability to manage editing permissions: either for collaborators or for anyone with a GitHub account (may lead to vandalism) (info)

Desired solution
Ideally, a separate repository could be used for Forum (example), but you can do without it. Here are the suggested options:

Move data related to Forum to eg doc/forum.
Create a new GitHub Discussions thread that will include Forum related posts.
Any of the options above, but applicable to the repository that will be used for the ROHD website. As I understand it, Forum is used to discuss the entire ROHD ecosystem, so it is proposed to place it on "neutral territory".

The current Wiki can be hidden so that neither users nor developers are exposed to outdated information. You will also need to update all links.

In addition to the ROHD Forum, the Wiki has information added by @quekyj. As far as I understand, this data also follows along with changes related to the site and tutorials, so it does not need to be transferred anywhere, and the Wiki can be safely hidden. Correct me if I'm wrong.
Alternatives considered
No response
Additional details
No response

Thanks for the thought and insight!  You raise some good points.
What do you think of making the new repo that we were going to use for the website a more broad repo that could include the website, meeting minutes, and other miscellaneous documentation stuff in the future not directly appropriate for the main repository?  I don't know what it would be called though, and maybe that's just a lazy solution?  Hosting it on the website doesn't seem too inappropriate?
I'm a bit reluctant to spam the main repository's commit history with minutes and agendas.
The discussions idea is possibly good, but I'm unsure how to keep it well organized/categorized in there.  Do you mean just one discussion with a new comment added each meeting?

What do you think of making the new repo that we were going to use for the website a more broad repo that could include the website, meeting minutes, and other miscellaneous documentation stuff in the future not directly appropriate for the main repository?

This is a good idea. The new repository can be seen as a mono-repository for "non-main" sub-projects in the ROHD umbrella project.

I don't know what it would be called though, and maybe that's just a lazy solution? Hosting it on the website doesn't seem too inappropriate?

How to call - it is necessary to think. We need something abstract. My suggestions:

rohd-mono
monorohd
rohd-misc

I think this is a good way to avoid the bureaucracy (which you pointed out) associated with creating a new repository. A mono-repository may be more difficult to maintain, but maintaining many small repositories can also be difficult.

The discussions idea is possibly good, but I'm unsure how to keep it well organized/categorized in there. Do you mean just one discussion with a new comment added each meeting?

Yes. I think it might look like this:

Create a new discussion ROHD Forum (zero message describes what it is, how to join)
A message is created that indicates the date and time of the event, topics for discussion
We are waiting for the end of the meeting
We supplement the message with a brief summary of the meeting
GOTO 2

If the idea of a mono-repository is accepted, then it can be placed there.

I think using submodules that point to ROHD, ROHD-VF, ROHD-Cosim, and any others that pop up could be a reasonable way to handle references to content in each of the repos.  However, that would mean each time we commit or release a version, we'd also need to go manually update the website.
An alternative could be some sort of cronjob that regenerates the static page based on latest main contents on each of the other projects.
Once the new repo is created, I guess we can experiment with different ways to manage this.

I think I will remove all the information inside Wiki once the bootcamp is complete. Btw, I am thinking that adding a FAQ section will be helpful as well.

The repo has been created here: https://github.com/intel/rohd-website

The contents on the wiki, including the forum, have fully migrated to the ROHD website!
https://intel.github.io/rohd-website/


Be consistent on append vs overwrite

When should we append or not?
App::group should append so clap_derive users can compose.

Should Arg::group be consistent?

Arg::possible_values compose so you can mix and match types, like Command::arg
Aliases are an interesting one.  They don't need to mix and match types and clap_derive users should not be stacking these on top of each other.  The big problem is related to the implementation.  Visible and hidden aliases share their storage so setting one, clears the other.  We'll need to address that first.


Articulation Point in Graph

Problem Statement: Given an undirected connected graph with V vertices and adjacency list adj. You are required to find all the vertices removing which (and edges through it) disconnect the graph into 2 or more components.

Kindly Assign me this issue

Kindly please Assign me this issue

@rishirohilla Done!

hi please assign me this issue


Documentation for Web API with DRF

Description 📜
Detailed step by step explanation to build a web API with Django REST Framework by taking into account a suitable example.
Fixes #5091

Type of change 📝

[ ] Au#dio (Should be in mp3 format Includes speech clarity, Concise ,Low distortion)
[ ] Vi#deo (Animations, screen-recordings, presentations and regular explanatory films are all possibilties etc)
[x] Documentation (Content Creation in the form of codes or tutorials)
[ ] Other (If you choose other, Please mention changes below)

Domain of Contribution 📊

[ ] Android Dev #(Flutter)
[ ] Android Dev #(Java)
[ ] Android Dev #(Kotlin)
[ ] Backend Dev #(Java)
[ ] Backend Dev #(.NET)
[ ] Backend Dev #(PHP)
[x] Backend Dev (Python)
[ ] C/#CPP
[ ] Competitive #Programming
[ ] Cyber #Security
[ ] DS#A
[ ] Data#base
[ ] Datascience with #Python
[ ] Datascience with #R
[ ] Frontend Dev #HTML/CSS/JS
[ ] Frontend Dev #React/Angular/Vue
[ ] Go#lang
[ ] Interview #Prep
[ ] Java_#Domain
[ ] JavaScript_#Domain
[ ] ME#RN
[ ] Machine #Learning
[ ] Open #Source
[ ] Python_#Domain
[ ] Ru#st
[ ] Statis#tics
[ ] UI/#UX

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

/asssign

/assign


[Question]: redhub upgraded to use gnet/v2 issues, seemed "stalled"

Actions I've taken before I'm here

[X] I've thoroughly read the documentations about this problem but still have no answer.
[X] I've searched the Github Issues/Discussions but didn't find any similar problems that have been solved.
[X] I've searched the internet for this problem but didn't find anything helpful.

Questions with details
gnet/v2
https://github.com/sprappcom/redhub/tree/main/example/memory_kv
gnet (v1)
https://github.com/IceFireDB/redhub/tree/main/example/memory_kv
redis-benchmark -p 6380 -t set -n<PHONE_NUMBER> -P 512
sometimes i get 0 req/s on v2 and it's not consistent as v1. is this expected? it seemed stalled. not sure what happened.
Code snippets (optional)
No response

something wrong with the memory used. need check further


[iOS] Crash in observeBluetoothState method

Using the following code will result in a crash on iOS as soon as the Bluetooth Adapter status changes:
BleManager bleManager =  BleManager();
await bleManager.createClient();
bleManager.observeBluetoothState().listen((newState) {
    //...
});

This will throw the following exception in Xcode:
-[__NSCFString objectAtIndexedSubscript:]: unrecognized selector sent to instance

Using debug breakpoints in Xcode, it seems the error is thrown in the line 25 of the the method: - (void)onNewAdapterState:(NSArray *)bluetoothAdapterState of AdapterStateStreamHandler.m file.

It looks like you are passing a NSString instance while the method expects a NSArray. This method is called in the FlutterBleLib.m file.

The specific method is:

Hi @rmorbach !
Thanks for the ticket and the investigation! I'll try to fix it and release new patch version this week.


fix: inconsistent erc20L1Address casing

Does what it says on the box - fixes inconsistent casing of erc20L1Address between Erc20DepositParams and Erc20WithdrawParams

@cla-bot check

Hi @gomesalexandre, ty for your contribution! Doing this would be a breaking change, so it's gonna be fixed in the next major version which we're currently working on.


Refactor new util methods and better init method into Model

The dataset methods use some helpful general methods found in the utils.py file which can be used in the Model, ModelMetadata and VersionHistory classes.
Additionally, the way in which the DatasetMetadata class is initialised is better than the current way that these model-based classes are initialised. This should be adopted into these classes also.

This is an outdated issue


fix a breaking internal error in mypy if using field() with positional arguments

fix a breaking internal error in mypy if using field() with positional arguments
Description

add handling logic for positional arguments in mypy plugin

Types of Changes

[ ] Core
[x] Bugfix
[ ] New feature
[ ] Enhancement/optimization
[ ] Documentation

Checklist

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] I have tested the changes and verified that they work and don't break anything (as well as I can manage).

Thanks for adding the RELEASE.md file!

Here's a preview of the changelog:

This release fixes a breaking internal error in mypy plugin for the following case.

using positional arguments to pass a resolver for strawberry.field() or strawberry.mutation()

failed: str = strawberry.field(resolver)
successed: str = strawberry.field(resolver=resolver)

now mypy returns an error with "field()" or "mutation()" only takes keyword arguments message
rather than an internal error.

Here's the preview release card for twitter:

Here's the tweet text:
🆕 Release (next) is out! Thanks to cake-monotone for the PR 👏

Get it here 👉 https://github.com/strawberry-graphql/strawberry/releases/tag/(next)

I think the release type can be minor. it's enough
If you want, I will change it.

Thanks for contributing to Strawberry! 🎉 You've been invited to join
the Strawberry GraphQL organisation 😊
You can also request a free sticker by filling this form: https://forms.gle/dmnfQUPoY5gZbVT67
And don't forget to join our discord server: https://strawberry.rocks/discord 🔥


Added ELIF

It's a bit hackish, as is the existing IF and ELSE code, but it seems to work correctly from my testing.
Additional error checking should be added.

This is really outdated, if you do a rebase I'll be happy to take a look. If not, I've created this issue so that we don't forget about it: https://github.com/rednex/rgbds/issues/130


chore: update pnpm version and lockfile

Hello,
Since the last update of this repo, pnpm update to last 9.5 and because of that, ~any new PR will fail because of the new version of pnpm used in the CI.~ CI breaks because of #203

please don't submit chore PRs (non major dep updates and lint)


user-defined

When configuring the spring proxy as CGLIB
aop:
proxy-target-class: true
employ user-defined   rememberMeService

@OMGyang if you are having trouble configuring Spring Security, beyond the steps indicated in the guide, I'd recommend you post a question on StackOverflow, making sure to add the spring-security tag.
If you believe you've identified an issue with Spring Security, you can open a ticket in the Spring Security github project.
As this ticket doesn't appear to be about the guide itself (it doesn't talk about how to define a custom remember me services), I'll close it. Feel free to reopen, though, if I've misunderstood.


Flow community Ilorin

The Flow community in Ilorin is organizing their launch party
Kindly update the README with the RSVP link, date, and other necessary information in the same format for the other events

It's sold out. Should I still add it?

Let's add it. We'd probably just move it to "past events" in the future.

Hi there! I just read through the README file and I can see some of the events are passed already, Why aren't the event removed after it has taken place

We're hoping that this repo would be an archive of all events. Past, present, and future.
So that people can be aware of these events and perhaps look forward to attending a particular event in the future (the next year, mostly).

Ok, I get that


ERR The Flutter SDK is not available.

When I try running webdev serve, I'm getting the following error, the project used to work fine a few days ago.
webdev serve
Unhandled exception:
ProcessException: ***OUT***

***ERR***
The Flutter SDK is not available.

***
  Command: E:\Program Files(x32)\Dart\dart-sdk\bin\pub.bat deps
#0      _runPubDeps (package:webdev/src/pubspec.dart:70:5)
<asynchronous suspension>
#1      PubspecLock.read (package:webdev/src/pubspec.dart:84:11)
<asynchronous suspension>
#2      readPubspecLock (package:webdev/src/command/shared.dart:63:39)
<asynchronous suspension>
#3      ServeCommand.run (package:webdev/src/command/serve_command.dart:117:29)
<asynchronous suspension>
#4      CommandRunner.runCommand (package:args/command_runner.dart:197:27)
<asynchronous suspension>
#5      _CommandRunner.runCommand (package:webdev/src/webdev_command_runner.dart:38:24)
<asynchronous suspension>
#6      CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
#7      new Future.sync (dart:async/future.dart:224:31)
#8      CommandRunner.run (package:args/command_runner.dart:112:14)
#9      run (package:webdev/src/webdev_command_runner.dart:19:56)
#10     main (file:///C:/Users/abhis/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/webdev-2.5.1/bin/webdev.dart:17:22)
<asynchronous suspension>
#11     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#12     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
Unhandled exception:
ProcessException: ***OUT***

***ERR***
The Flutter SDK is not available.

***
  Command: E:\Program Files(x32)\Dart\dart-sdk\bin\pub.bat deps
#0      _runPubDeps (package:webdev/src/pubspec.dart:70:5)
<asynchronous suspension>
#1      PubspecLock.read (package:webdev/src/pubspec.dart:84:11)
<asynchronous suspension>
#2      readPubspecLock (package:webdev/src/command/shared.dart:63:39)
<asynchronous suspension>
#3      ServeCommand.run (package:webdev/src/command/serve_command.dart:117:29)
<asynchronous suspension>
#4      CommandRunner.runCommand (package:args/command_runner.dart:197:27)
<asynchronous suspension>
#5      _CommandRunner.runCommand (package:webdev/src/webdev_command_runner.dart:38:24)
<asynchronous suspension>
#6      CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
#7      new Future.sync (dart:async/future.dart:224:31)
#8      CommandRunner.run (package:args/command_runner.dart:112:14)
#9      run (package:webdev/src/webdev_command_runner.dart:19:56)
#10     main (file:///C:/Users/abhis/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/webdev-2.5.1/bin/webdev.dart:17:22)
<asynchronous suspension>
#11     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#12     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)

Here is my flutter doctor log:
E:\portfolio_using_flutter>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, v1.10.2-pre.54, on Microsoft Windows [Version 10.0.18362.295], locale en-IN)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Android Studio (version 3.5)
[!] IntelliJ IDEA Ultimate Edition (version 2018.3)
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code, 64-bit edition (version 1.38.1)
[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

You can't use webdev serve on a Flutter or Flutter for Web application

You can't use webdev serve on a Flutter or Flutter for Web application

Hey, when I use Flutter Build web command the output which I got is a code before 3days. And I don't see any latest updates on my web project build. if I run it in local Its Perfect. Can you please help with this.

I'm having the same exact error. I'm unable to run webdev serve
_runPubDeps (package:webdev/src/pubspec.dart:70:5)
#1      PubspecLock.read (package:webdev/src/pubspec.dart:84:11)
#2      readPubspecLock (package:webdev/src/command/shared.dart:63:39)
#3      ServeCommand.run (package:webdev/src/command/serve_command.dart:90:29)
#4      CommandRunner.runCommand (package:args/command_runner.dart:197:27)
#5      _CommandRunner.runCommand (package:webdev/src/webdev_command_runner.dart:38:24)
#6      CommandRunner.run. (package:args/command_runner.dart:112:25)
#7      new Future.sync (dart:async/future.dart:224:31)
#8      CommandRunner.run (package:args/command_runner.dart:112:14)
#9      run (package:webdev/src/webdev_command_runner.dart:19:56)
#10     main (file:///Users/juliana/.pub-cache/hosted/pub.dartlang.org/webdev-2.5.4/bin/webdev.dart:17:22)
#11     _startIsolate. (dart:isolate-patch/isolate_patch.dart:305:32)
#12     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)


Test to prevent a future regression

With this change, we will prevent a future regression comparing token roles with user roles

@thlbaut Can you review and merge this PR in order to update https://github.com/symfony/symfony/pull/35944?

Thanks :)


/config/dict page Popover exception

Title uses incorrect locale key
Label not uses locale
The spaces before and after the : are not in the same position

Make it rain issues! This one's mine!

Make it rain issues! This one's mine!

already fixed: #371


End the session automatically

Some users are confused by the 3k token limit and do not know how to end the conversation.

Actually, by /help, you could get the instructions you could use. /end could end the conversation.

What can be the problem of ending session automatically? If there is not technical difficulty, then we'd better implement this change, since there is no other choice except ending session when token limit is reached.

I think I could implement this during the weekend.

Thanks, that would be very helpful! I am not sure whether ending the conversation is the most urgent one, since the error message is quite clear. I would prefer implementing a new command /retry to end conversation and try again, because it is annoying to copy-paste the text after the rate limit is reached.
            except openai.error.RateLimitError:
                err_msg = "Sorry, OpenAI API rate limit exceeded. Please end the conversation by typing `/end` or retry."
                logging.error(err_msg)
                return err_msg

Contextual information

Claire said there will be 100-200 bachelers joining our platform during this summer. So it would be great if we can put some effort in improving the using experience.

May I have a look at the image.png

Fix in https://github.com/yeahjack/chatgpt_zulip_bot/commit/f82c5bc90c16c22db26e285cad16d2a35a9c4c94


Passwords and other things can be marked by double quotations.

Passwords and other things can be marked by double quotations.

Have tried and looks good.
I will merge this PR if there is no more comments.

@jixuan1989 don't merge this pr. the function has been included by the antlr4 pr.


Add repolinter as a GitHub Action

Signed-off-by: John Mertic<EMAIL_ADDRESS>

@jfpanisset Will do - need to also tweak the job a bit.

@jfpanisset Added docs now, and switched it to running once a week or on demand.


Fails default jshint

Create a new ember application, install ember-intl, and then run ember test. You'll get the following failure: formats.js: line 5, col 2, Missing semicolon.
The offending code is from the app/formats.js blueprint:
var hhmmss = {
  hour:   'numeric',
  minute: 'numeric',
  second: 'numeric'
} //<-- missing semicolon here

export default {

Thanks, will address tonight.

https://github.com/yahoo/ember-intl/commit/0f9ea49bee32eb4e5a2ed122fab0091d72b1328e


Improve definition of OptionalCoordinateFrame in binary spec

Make "Optional" a generic type, rather than the specific "OptionalCoordinateFrame".
Combine the Type ID and Value fields of the PROP chunk into a single "Values" field.
A Values structure begins with an ID that identifies the type, which determines the shape of the remaining structure (usually an array of elements).
The Values field of a PROP chunk is optional. That is, if the chunk ends before the Values field can be read, this can indicate that 1) no values are assigned, or 2) the type is Optional, where each property has no value.

The correct variation can be determined by constructing an empty PROP chunk for a non-Optional property type. If it succeeds for all non-Optional property types, then the first variation is correct. If it only succeeds for Optional types, then the second variation is correct.

A Values with an ID of 0x1e indicates the type "Optional". The structure of Optional is two Values. The first has some ID (such as CFrame), and the second must(?) be the type Bool (0x02). Each element in the second array indicates whether the corresponding value in the first array has a value.

A Values with an ID of 0x1e indicates the type "Optional".

That seems like a pretty big assumption based on one property. I don't have any qualms with it but I would be a rather significant departure from the rest of the format in terms of design, so I'd want to be certain it's the truth. How did you come to this conclusion?

The evidence for a Values field is the structure of the type. The presence of the first additional type ID suggests the reuse of a code path that parses value arrays. The presence of the second additional ID strongly suggests this, given that it is otherwise entirely unnecessary information (assuming that the second sub-array is always a Bool, which seems reasonable). At the very least, the specification should be updated to reflect this.
It is also reasonable to believe that type 0x1e is a generic type, not only because of the additional type IDs that are included in the structure, but because of nature of the type itself; an option type always involves some other type. Even the XML version suggests it by wrapping content of the value in a distinct inner tag that indicates the type. If OptionalCoordinateFrame was really a stand-alone type, then this tag would be redundant.
The fixation on "OptionalCoordinateFrame" is misguided. This term was derived from the XML tag of the same name. It should be noted that the the name of such tags are completely unused by Roblox's implementation of the XML format; how a value is parsed is determined by the name of the property and its outer class. The tag name should, ideally, be interpreted only as a human-readable representation of the type. I would wager that "OptionalCoordinateFrame" is a concatenation of "Optional" and the tag name associated with the type, since it matches the old-style "CoordinateFrame" tag name used for the CFrame type.
Also, just to clarify, this issue is in regards to the specification, not the implementation by rbx-dom. While there continues to be only one known option type, implementations can get away with structuring it as though it were a single distinct type. There's no difference as long as an implementation produces the specified result.

Regarding the fourth bullet point, it seems that this behavior has been removed. Here's a file that contains a "WorldPivotInternal" property chunk (of Workspace) as evidence that this format existed:
spring.rbxl.zip
Resaving the file reveals that the property has been replaced by a "WorldPivotData" property, which has a more expected format. It is likely that this behavior was considered a mistake, and has been corrected. It still stands that this format exists in actual files produced by Roblox, and so needs to be handled accordingly. Roblox seems to do this by silently ignoring such chunks.

Roblox allows certain property types to be used interchangeably for compatibility reasons. You can observe this with SharedString being allowed for String properties as well as int for int64 ones. This is the reason for some of our compatibility layers for rbx-dom.
This is mostly an implementation detail and I wouldn't rely upon it though.


Este doesn't work in IE11

I tried to login in actual version of este in IE 11 and I get 'Promise' is undefined'. It's possible to fix this?

https://github.com/este/este/issues/599#issuecomment-157971187
Test it please then send pull request.

NetworkData.txt
In this file are all requests, but when I tried log in I didn't send request to server or get request from server.

Similar problem I had when I go to todos page. I get only error 'SCRIPT5009: 'Promise' is undefined' in console.

Fixed. Please test.


Persistent softmax kernel

Rewriting the tutorial softmax kernel in a persistent way.
 For smaller tensors, the non-persistent kernel still performs the best.

Can you document what device you're using?

Can you document what device you're using?

Oh yeah, I'm using H100.

I got:

Traceback (most recent call last):
File "/home/kzhou6/gh200/triton/python/tutorials/test.py", line 170, in
assert torch.allclose(y_triton, y_torch), (y_triton, y_torch)

Could you please take a look?

I got:

Traceback (most recent call last):
File "/home/kzhou6/gh200/triton/python/tutorials/test.py", line 170, in
assert torch.allclose(y_triton, y_torch), (y_triton, y_torch)

Could you please take a look?

Did you use the latest compiler? https://github.com/openai/triton/pull/3758 is needed.

I got:

Traceback (most recent call last):
File "/home/kzhou6/gh200/triton/python/tutorials/test.py", line 170, in
assert torch.allclose(y_triton, y_torch), (y_triton, y_torch)

Could you please take a look?

Did you use the latest compiler? #3758 is needed.

Oh I see. Thanks for pointing it out

Hello @htyu
Can you please explain the meaning of the following line ?  Does attributes depend on the number of columns ?  Thanks.
attrs = triton.compiler.AttrsDescriptor(tuple(range(6)), ()) if n_cols % 16 == 0 else None

Can you please explain the meaning of the following line ? Does attributes depend on the number of columns ?

attrs = triton.compiler.AttrsDescriptor(tuple(range(6)), ()) if n_cols % 16 == 0 else None
This is to tell the static compiler that the input tensor is 16-byte aligned so that its access can be vectorized.

In the host:
signature="*fp32,*fp32,i32,i32,i32,i32" -> signature="*fp16,*fp16,i32,i32,i32,i32" # I assume the pointer type is fp16

Yeah, this is likely to be changed. I'll probably work on exposing the jit compile interface so that we can just rely on the jit to get a compile-only kernel with every data/type detail encapsulated.

@htyu
If I'm reading the benchmarks correctly, it seems torch.compile -- assuming that's what you mean by Torch (jit) -- exhibits the best performance.
Can you share the benchmarking script?  Specifically, how did you obtain the Torch (jit) numbers?

@jeromeku the benchmark results show achieved memory bandwidth (GB/s), so Triton is the fastest.  torch.jit is actually the super-old torchscript backend, which in this case doesn't even do any fusion.  torch.compile should be close-ish to Triton since it lowers to something fairly similar to the hand-rolled kernel

@bertmaher Thanks!


[language] use hex literals in LibraAccount

There were several spots where we were using Vector::empty() instead of an empty literal. Now that the source language supports hex literals, we can use an empty literal instead.

Motivation
Cleanup
Have you read the Contributing Guidelines on pull requests?
Y
Test Plan
Existing E2E tests

@bors-libra r=dariorussi

:pushpin: Commit 4d661e8 has been approved by dariorussi

:hourglass: Testing commit 4d661e82246a0b370a2eaf8b50384026f55d9165 with merge bc421f9eea955022d74caac8ec5723a2937623d6...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: dariorussi
Pushing bc421f9eea955022d74caac8ec5723a2937623d6 to master...


chore(build): port build process to Node.js

Closes #198
I removed the old files in separate commit, in case we decide to keep them around (by ignoring that commit).

We will need to update Jenkins

How so ? Is there something that is not compatible with the current version - I could change that.

Simply because angularjs.org builds on Jenkins call build.sh :-P

Aha, I thought you meant we need to update the version of Jenkins itself :smile:
BTW1: I have only tried this on Windows and Debian. Isn't CI running on OSX ? Can you test on a Mac (if not already done so :stuck_out_tongue:)
BTW2: The src/.htaccess file doesn't seem to be used, i.e. it isn't copied to build/ and thus doesn't get commited to the dist branch. It doesn't seem to serve any other purpose either (but there might be other uses of the repo that I'm missing). So, I'm wondering if we actually need it :smile:

BTW2: you are probably correct here

I'll give the build a run on OS/X tonight

Is it possible to make all the async calls sync. If we can it would make the code much simpler.
Perhaps there is a HTTP call in there for CDN that prevents this?

I think it's a good practice to always use npm scripts in all CI commands. That way you may not change the server setup when changing task runners, various tools etc.

@mgol - is that comment referring to another comment in this thread?

I went for async (vs sync) calls, because (a) it is a good practice ( :stuck_out_tongue: ) and (b) most importantly because on Windows when trying to sync-delete directories I often get errors that the directory is not empty and cannot be deleted (even if it is empty). I assumed it is a timing issue/bug, but with async methods it worked every time (possibly by coincidence :stuck_out_tongue:).

@petebacondarwin , PTAL.

LGTM - squashing and merging


Fix ASN1_TIME_compare return value documentation

Return values were reversed.

Can you either sign our CLA or add "CLA: trivial" in the commit text ?  Thanks.  I agree this is trivial

This shouldn't be a documentation issue; if it's wrong, then the code should be updated.
The behavior should match that of strcmp():
-1 if a<b
0 if a == b
1 if a > b

ASN1_TIME_compare() was introduced in master, there's time to fix the code.

go for it! :)

Done. :)

The behavior should match that of strcmp():

ASN1_TIME_compare currently only normalizes the output of ASN1_TIME_diff. Reversing the return values of ASN1_TIME_compare creates a weird disconnect, because it now returns negative values where ASN1_TIME_diff would return positive and vice versa. And I do not think that also changing ASN1_TIME_diff comes into consideration due to compatibility with existing code.
So although I agree, that behaving as strcmp is desireable, this disconnect should still be taken into consideration before changing ASN1_TIME_compare. Or at least it should be explicitly noted in the documentation.

Or at least it should be explicitly noted in the documentation.

The return value is explicitly noted in the documentation

#4264 does the more correct fix.  Thanks for finding this!


Add tests for training/fine tuning

We may need to disable them for the CI until MACE's next release, but we should have tests in place with a simple config file, which we can at least test locally.

Resolved by #142


TBDGen: Refactor logic to share with SIL and IRGen

TBDGen enumerates all the symbols in a file or module and emits a list of linkable symbols that will be present in the resulting library binary. SILGen and IRGen for if #_hasSymbol(...) have similar requirements; given a declaration, we need to enumerate each of the public symbols associated with that declaration to emit a runtime check for that symbol.
Given the overlap in requirements, I have factored the core logic of TBDGenVisitor into a couple of new visitor classes located in libswiftSIL and libswiftIRGen and then reimplemented TBDGenVisitor on top of the new abstractions. The new SILSymbolVisitor class is responsible for the core enumeration of linkable entities. Entities that can be represented as a SILDeclRef are enumerated as such, but many other entities do not have a conceptual representation at the SIL layer. The responsibility of representing these is delegated to IRSymbolVisitor which turns entities into LinkEntity instances where possible. Finally, a small number of remaining entities cannot be represented by LinkEntity and are passed through directly.
For the moment, I've tried to reduce the risk of this change by preserving the behavior of TBDGenVisitor as much as possible in the new factoring. In the future, though, it's possible that there could be further refactoring and simplification. For instance, some features like Swift API extraction and symbol source map generation could be implemented directly on top of IRSymbolVisitor instead of being mixed into the responsibilities of TBDGenVisitor. As much as possible, I'd also like to close the gaps where linkable entities cannot be represented by SILDeclRef or LinkEntity.

@swift-ci please test

@swift-ci please test

@swift-ci please test

https://github.com/apple/swift/pull/61690
@swift-ci please test

@swift-ci please test

@swift-ci please test macOS

@swift-ci please smoke test

@swift-ci please test

Once all of the following blocking PRs are merged this should build cleanly on Linux:
https://github.com/apple/swift/pull/61753
https://github.com/apple/swift/pull/61758
https://github.com/apple/swift/pull/61767
https://github.com/apple/swift/pull/61770
https://github.com/apple/swift/pull/61774
https://github.com/apple/swift/pull/61776
https://github.com/apple/swift/pull/61779
https://github.com/apple/swift/pull/61784
https://github.com/apple/swift/pull/61792

@swift-ci please smoke test and merge

🎉

@swift-ci please smoke test and merge


What could be the reason if I get high recall but low 3D AP ?

During my test my mode get result in VAL data
2019-07-26 13:22:38,981   INFO  2019-07-26 13:22:38.981755
2019-07-26 13:22:38,981   INFO  final average detections: 22.273
2019-07-26 13:22:38,981   INFO  final average rpn_iou refined: 0.000
2019-07-26 13:22:38,982   INFO  final average cls acc: 0.000
2019-07-26 13:22:38,982   INFO  final average cls acc refined: 0.000
2019-07-26 13:22:38,982   INFO  total roi bbox recall(thresh=0.100): 13961 / 14385 = 0.970525
2019-07-26 13:22:38,982   INFO  total roi bbox recall(thresh=0.300): 13822 / 14385 = 0.960862
2019-07-26 13:22:38,982   INFO  total roi bbox recall(thresh=0.500): 13580 / 14385 = 0.944039
2019-07-26 13:22:38,982   INFO  total roi bbox recall(thresh=0.700): 11112 / 14385 = 0.772471
2019-07-26 13:22:38,982   INFO  total roi bbox recall(thresh=0.900): 267 / 14385 = 0.018561
2019-07-26 13:22:38,982   INFO  total bbox recall(thresh=0.100): 13952 / 14385 = 0.969899
2019-07-26 13:22:38,982   INFO  total bbox recall(thresh=0.300): 13826 / 14385 = 0.961140
2019-07-26 13:22:38,982   INFO  total bbox recall(thresh=0.500): 13619 / 14385 = 0.946750
2019-07-26 13:22:38,983   INFO  total bbox recall(thresh=0.700): 11827 / 14385 = 0.822176
2019-07-26 13:22:38,983   INFO  total bbox recall(thresh=0.900): 1321 / 14385 = 0.091832
2019-07-26 13:22:38,983   INFO  Averate Precision:
2019-07-26 13:22:56,647   INFO  Car<EMAIL_ADDRESS>0.70, 0.70:
bbox AP:95.9995, 88.2251, 86.9425
bev  AP:88.8718, 85.5658, 83.3735
3d   AP:84.0863, 74.8719, 73.0908
aos  AP:95.96, 87.91, 86.52
Car<EMAIL_ADDRESS>0.50, 0.50:
bbox AP:95.9995, 88.2251, 86.9425
bev  AP:96.4028, 88.7299, 87.7529
3d   AP:96.2933, 88.5899, 87.5376
aos  AP:95.96, 87.91, 86.52
I think with the 82.2% recall  and 22.273 detections ,the 3d AP is unreasonablely low. what could be the reason that casues the problem .Thanks you !

This is a good question. It would be nice if someone can elaborate on this.
BTW, how come your recall for RPN is as high as 0.77? What is your setup for training RPN? @tsbiosky

BTW, how come your recall for RPN is as high as 0.77? What is your setup for training RPN?


Emotion markers

It would be amazing if emotion markers can be supported (or if they already are, documentation on how to use them), for example providing indicators like <angry>, <excited>, etc. or use of emoji's for the same.

This is a nice idea. The trick seems to be getting good ground truth emotional speech samples and labels that don't sound fake.
This is not currently supported in any way but there are people in the LAION Discord working on emotional speech so I'll invite you to join the #audio-generation there channel if you are interested.

This is a nice idea. The trick seems to be getting good ground truth emotional speech samples and labels that don't sound fake.
This is not currently supported in any way but there are people in the LAION Discord working on emotional speech so I'll invite you to join the #audio-generation there channel if you are interested.

@jpc , that sounds great, I would love to follow along with their progress.  How can we get in contact?

It’s best if you ask on the LAION Discord (link in the README).

If I can collect a large dataset of clean speech, annotated with text and "emotion vectors" which I assume to be accurate, how can I train whisperspeech on it? This would be like training a new multimodal tts model, going from text + emotion vectors -> speech. Can you give me high level guidance on where in the training pipeline I could add support for this extra modality and how to do it?


[📗 DOCS] Add AI-PGF

Aipgf.com
also add gov.aipgf.com dashbaord and forum

add twitter and remove some old stuff


Make "match text pattern" parts more versatile

Match text pattern parts should have some more properties and editor interface parts that make them more versatile and easier to write.

list of words (really regular expressions?) to accept

in what order?
require at least / at most N

I think if this is asking for anything, it's asking for the same thing as #391


Uprade Istio to 1.0.7

This is the version of Istio that will be included with Knative Serving
0.5.1 and fixes a couple CVEs in Envoy.
Refs #1232

I'm jumping the gun on Knative 0.5.1, this is pulled from the release branch but won't change between now and 0.5.1. It's why the version of Istio is different than the serving version.
In the nearish future, Knative is going to stop distributing Istio, so we'll need to create our own distributions.

since there is no knative-0.5.1 artifacts yet, maybe just rename the curated yaml to riff-istio-v1-0-7-.yaml or istio-v1-0-7-riff-knative-serving-v0-5-0.yaml

Renamed the file to istio-v1.0.7-riff.yaml


我想在coma上 使用这个updet可以吗 I want to use this updet on coma, is it okay?

我想在coma上 使用这个updet可以吗
I want to use this updet on coma, is it okay?

I want to use this updet on coma, is it okay?

I want to use this updet on coma, is it okay?

I want to use this updet on coma, is it okay?

I want to use this updet on coma, is it okay?

I want to use this updet on coma, is it okay?

I want to use this updet on coma, is it okay?

I want to use this updet on coma, is it okay?

I want to use this updet on coma, is it okay?

Sorry I haven't tested UPDeT on COMA.  But you could give it a shot.


Modify Particle Spawner Count Over Time

Hi there!
I created a rain particle effect, but I want to dynamically adjust the spawner count over time so that the rain gradually starts and stops. I attempted to implement this with the following code, but it doesn’t seem to have any effect:
fn update_effect_count(
    mut effects: ResMut<Assets<EffectAsset>>,
    effect_query: Query<&ParticleEffect>,
) {
    for effect in effect_query.iter() {
        let effect_asset = effects.get_mut(&effect.handle).unwrap();
        effect_asset.spawner.set_count(1.0.into());
    }
}

Could someone point out what I might be doing wrong or suggest an alternative approach?

Isn't this the same as #371 ?

Oh yes, exactly!

Closing as duplicate of #371


Any plans to support additional APIs

Some C APIs like fdb_database_get_main_thread_busyness are not ported. Do you have any plans to work with that?

Hi :wave:
I somehow missed that API, it could be really useful. Do you want to contribute to the repo?

Yes. I just recently started learning rust. I used this crate to write a prototype and found some useful functions were missing. I'm happy to contribute to this repository but I may need your help reviewing it.


Expose ws server to extend

I need to expose ws server so I can extend it with custom messages for bloomberg-voyager project.

Can you provide more detail on the planned implementation, once this is exposed to Voyager?

https://github.com/citrusbyte/bloomberg-voyager/pull/1115
Instead of https guys prefer using ws for communication. So I need ws server and ws client socket exposed (latter is already exposed).
Idea is simple enough. Create a custom message which sends process.env.APP_VERSION to client to check whether application was updated

Agree with @denis-sokolov's analysis. Oncilla is a general-purpose library that will potentially be used by many different apps. Yes, exposing the WS server will help to accomplish the specific purpose of version validation for Voyager. But it also exposes a lot of other things, for any/all consumers, with no pressing reason to do so, and no documentation.


fix(ci): rename dev to rc

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

v3.2.14
GitHub release

Your semantic-release bot :package::rocket:


flex-direction column with incomplete flex shorthand works differently in IE than Chrome

I ran into an issue in IE where any flex children inside a flex-direction column container would lose their heights in IE11. I started out using the explicit height fix, until I ran into a child that needed to flex based on the height of its children.
I tried a couple of solutions from here, nothing worked. Then when I looked at my CSS I noticed that I was using flex: 1; anywhere I used the flex shorthand. I went through and changed them all to flex: 0 auto and that fixed it.
Why?
After a little digging (haven't done any spec reading yet) I discovered that when using flex shorthand without an explicit value for flex-basis, Chrome defaults it to 0%, but IE11 defaults to 0px. Therefore we need to make sure IE keeps the auto value for flex-basis. (One weird thing here: in Chrome flex-basis: 0% works the same as flex-basis: auto but in IE11 flex-basis: 0% works the same as flex-basis: 0px)
It seems like a good idea to always use 1 0 auto as a default for flex shorthand, which I'm sure is a better practice than what I was doing anyway.
Here's a codepen showing this behavior:
http://codepen.io/joefiorini/pen/rVwLje

It seems like a good idea to always use 1 0 auto as a default for flex shorthand, which I'm sure is a better practice than what I was doing anyway.

Technically, I don't think you've done anything wrong. The spec repeatedly advises using the shorthand syntax but as you point out the browser vendor aren't all in agreement with the defaults so the auto is needed.

Authors are encouraged to control flexibility using the flex shorthand rather than with its longhand properties directly, as the shorthand correctly resets any unspecified components to accommodate common uses. - 7.2. Components of Flexibility

Also see

7.1.1 Common Values of 'flex'
unitless flex-basis in Philip's post.

One weird thing here: in Chrome flex-basis: 0% works the same as flex-basis: auto

That's not true. They render the same in your example, but they are actually very different. This diagram shows what the difference is.
I don't think this bug has anything to do with the differing flex-basis values. I think it's actually a complex blend of flexbug 1 (not honoring the minimum content size) mixed with IE11 incorrectly calculating height (though it's hard to say for sure). If it were just flexbug 1, then using flex-shrink: 0 would fix it, but as you can see, it doesn't.
This also only seems to affect the vertical direction, and in practice I don't think it's very common to use flex-basis values other than auto inside non-fixed-height containers.

This also only seems to affect the vertical direction, and in practice I don't think it's very common to use flex-basis values other than auto inside non-fixed-height containers.

Flexbox in the wild still isn't very common but I think as it becomes more used for entire page layouts people will run into these issues more often.
For example, this is a pretty common layout for web apps

According to the spec, you should be able to set the same flex-basis on the "header" of each of those columns to keep them the same height.
.col header {
  flex:0 0 4em; //dont grow dont shrink try and be 4em tall
}

Note this requires a flex-basis other than auto inside a non-fixed height container
If the don't come out the same height, and those borders don't line up correctly an Art Director might flip your desk over.

Well, maybe the word "fixed-height" is ambiguous. I probably should have said "definite height".
By definite height, I mean the height (or max/min height) properties are either set or determinate (e.g. by another flex container). Your example seems to be a height of 100%, so I'd consider that definite.

Your example seems to be a height of 100%, so I'd consider that definite.

if there was a footer within that component though would it still be definite height? Say you want the footer to be a certain height, and the flex parent which holds the two columns to fill the remaining space.

and the flex parent which holds the two columns to fill the remaining space.

If the parent is filling the remaining space, then the parent would be height: 100% or min-height: 100% or something like that.
Keep in mind that in order for the flex grow/shrink properties to have any meaning, there needs to be a definite width or height that they're growing or shrinking to. In the column direction, if there's no definite height, then there's really no reason to use display: flex over display: block.

This also happens in Safari 8, OS X Yosemite.


Device Provisioning: How to pass X.509 certificate?

I'm experimenting with provisioning_device_client_sample.py, but can't find a way to pass a certificate. Could someone tell me how that is done? Thanks in advance!

@zolvarga
Do you have a timeline on that example?
Where can we start to create one our self?
thx,
Robbin

@zolvarga I am trying to run this sample.
I want to use the x509 hsm type. I cannot see how to pass on the generated certificate and key for running this sample.
Am I missing something ?

@vortec
Sorry for the late answer.
What you would like to accomplish is currently available only in C (and other SDKs).
To create a custom HSM sample in Python is more work than exposing the C SDK through a wrapper.
We created a work item for ourselves for this, it is in the queue, but cannot provide a deadline for it now.
Best Regards,
Zoltan

@vortec  were you able to find a workaround for that issue?

@vortec
We are now at the same place you were in. Did you make any progress?
I also asked my self why this example https://docs.microsoft.com/en-us/azure/iot-dps/quick-create-simulated-device-x509-python#create-a-device-enrollment-entry did connect to DPS differently as this guy here https://github.com/Azure/azure-iot-sdk-python/blob/master/device/samples/iothub_client_sample_x509.py.
I am also still facing issues in getting the last example to run.
Any help is appreciated.
Greetings from Frankfurt,
Ben

btw I found the part in the docs that explains the need of having the private key and the certificate on the device:
(https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-x509ca-overview#authenticating-devices-signed-with-x509-ca-certificates)

Authenticating devices signed with X.509 CA certificates
With X.509 CA certificate registered and devices signed into a certificate chain of trust, what remains is device authentication when the device connects, even for the first time. When an X.509 CA signed device connects, it uploads its certificate chain for validation. The chain includes all intermediate CA and device certificates. With this information, IoT Hub authenticates the device in a two-step process. IoT Hub cryptographically validates the certificate chain for internal consistency, and then issues a proof-of-possession challenge to the device. IoT Hub declares the device authentic on a successful proof-of-possession response from the device. This declaration assumes that the device's private key is protected and that only the device can successfully respond to this challenge. We recommend use of secure chips like Hardware Secure Modules (HSM) in devices to protect private keys.

@vortec
Hi Fabian,
We don't have a sample code yet for the authentication flow you are describing.
We are working on it to provide that. The first sample will be implemented in C SDK.
As soon as that is checked into C, I will create a Python sample based on it.
I will let you know if the Python sample is checked in.
Best Regards,
Zoltan

@zolvarga Any update on this? It seems there is still no example code, neither in C nor in python.

@Bnjmn83, what I did was that I created a simple "custom HSM", custom as in no HSM and instead reading from file: https://github.com/Azure/azure-iot-sdk-c/blob/master/provisioning_client/devdoc/using_custom_hsm.md
You have to build a library of it and linked it when building the C SDK for the Python SDK.

@zolvarga
Has the support for x509 added for python with an example? i cannot find as of now.
Is there any estimated date for it?
If there is support added but not example, can i get api reference to build code for my requirement?
@vortec
I am having exact same requirement as you. Were you able to find any working solution for this using Python SDK?
Thanks in Advance.

@AshithPolepalli see my comment on a related issue:
https://github.com/Azure/azure-iot-sdk-python/issues/226#issuecomment-485932275
I'm hoping to have something to show some time in May.

addressed in #272. this is fixed in v2

@zolvarga, @vortec, @robbinvandamme, @abhatikar, @aurashn, @Bnjmn83, @ulel, @AshithPolepalli, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey


Added conftest tests to resources

Describe the behavior changes introduced in this PR
Addes conftest action and tests.
Linked Issues?
resolves https://github.com/redhat-cop/pelorus/issues/148
Testing Instructions
See action or bats _test/conftest.sh
@redhat-cop/mdt

Ready for review. The CI currently fails due to: https://github.com/redhat-cop/pelorus/issues/150

@garethahealy are there checks in here for the presence of .metadata.namespace? That should be flagging a few files currently.

@etsauer ; no, only doing these currently:

https://github.com/redhat-cop/rego-policies/tree/master/policy/ocp/deprecated

@garethahealy ok, cool. Understood. Could you add a readme describing 1. how to run tests locally, and 2. how to enable new policies?

@etsauer ; pushed TESTING.md - that explain everything you want?


vim.exe to 256 colors, too

Hello,
To switch to 256 colors, enter ":set t_Co=256" without the termguicolors.
To return to 16 colors, enter ":set t_Co=16".
It exists with vtp (vcon).
FEAT_TERMGUICOLORS is required.
After I wrote a 24-bit patch, I realized that I can not use the 256 color scheme https://github.com/KKPMW/moonshine-vim so I can use it.
enjoying.

Codecov Report

Merging #2821 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2821      +/-   ##
==========================================
- Coverage    75.4%   75.39%   -0.02%
==========================================
  Files          92       92
  Lines      134598   134600       +2
==========================================
- Hits       101490   101477      -13
- Misses      33108    33123      +15

Impacted Files
Coverage Δ

src/terminal.c
70.62% <ø> (ø)
:arrow_up:

src/misc1.c
84.34% <ø> (ø)
:arrow_up:

src/option.c
84.92% <ø> (ø)
:arrow_up:

src/term.c
60.38% <100%> (-0.2%)
:arrow_down:

src/message.c
74.59% <0%> (-0.25%)
:arrow_down:

src/gui.c
47.78% <0%> (-0.16%)
:arrow_down:

src/gui_gtk_x11.c
47.63% <0%> (-0.15%)
:arrow_down:

src/ex_cmds2.c
78.6% <0%> (-0.1%)
:arrow_down:

src/os_unix.c
55.09% <0%> (-0.05%)
:arrow_down:

... and 5 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 285e335...335262d. Read the comment docs.

Nobuhiro Takasaki wrote:

To switch to 256 colors, enter ":set t_Co=256" without the termguicolors.
To return to 16 colors, enter ":set t_Co=16".
It exists with vtp (vcon).
FEAT_TERMGUICOLORS is required.
After I wrote a 24-bit patch, I realized that I can not use the 256 color scheme https://github.com/KKPMW/moonshine-vim so I can use it.
enjoying.

Thanks for looking into this.
It looks like the color tables are the same as what is used in
terminal.c.  They should be moved to a common place, probably globals.h.
It should be possible to use an enum for curr_mode.
Have some users tried this out?
--
hundred-and-one symptoms of being an internet addict:
234. You started college as a chemistry major, and walk out four years
later as an Internet provider.
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Only I did the test.
Others have not tested.
I will ask many different people.

I do not have any friends in the test...

Is tgc still no-op on Windows without +vcon? I was using tgc with set term=xterm on ConEmu to get true colors but I'm back to 256 colors after patch 8.0.1531.

I just got to know ConEmu. I will look at ConEmu from now.
I'd like to make a reference, If you set :set notgc and ':set term=win32 t_Co=256' in your environment, do you get 256 colors?
I have not tested in an environment that is not :set term=win32.

I have seen ConEmu now.
There is an additional item to the .vimrc file necessary for outputting 256 colors with ConEmu, term=xterm written there, but I wrote a patch that works with term=win32.
I feel that it is not straightforward. Please wait for a couple of days as I will test again.

I check value of $ConEmuANSI and check if using GVim or terminal. winpty doesn't unset ConEmu environment variables so I unset $ConEmuANSI in GUIs so that I can use terminal Vim in GVim's :terminal.
https://github.com/janlazo/dotvim8/blob/master/shared.vim#L385-L397
For tgc, I check Vim 8 patches for truecolor support and +vcon.
https://github.com/janlazo/dotvim8/blob/master/shared.vim#L424-L445

I returned the patch to 8.0.1530 and confirmed the behavior.
I think I got it fixed.

Is TERM=cygwin supported so the user can run terminal Vim on msys2 sh/bash?

With the above fix, TERM=cygwin should also work as expected.
If it is not as expected, please contact here again.

I had issues using 256 colors (with or without tgc) for Vim within :terminal so I updated my vimrc to use 256 colors for Vim outside of :terminal. This happens in the default Vim distributed with msys2/mingw. Not sure if it's Vim or ConEmu bug but feel free to optimize or simplify the code if it helps.

256 colors cannot be used within :terminal because of limitation of Win32 API.
:terminal uses winpty to capture the output of the executed command, and winpty uses Win32 API to capture that. However, Win32 API doesn't provide a way to capture 256 colors (or more).

This PR is to use 256 colors with "Vim.Win32" with cmd.exe.
However, :terminal in "Vim.Win32" can use 16 index colors with winpty and Win32 API restrictions.
This should have been announced.
I modified only term=win32. Other term= is no touch
I would like to make it simple, too. It will be discussed again on another occasion.

Note that, although I included the code change, it would still be nice to have an explanation in the help about how this all works.

@ntak I cannot set tgc. I get error message E954: 24-bit colors are not supported on this environment: tgc. I'm still stuck with 256 colors. Can you remove this error message and just let the user set it?

@k-takata Does tgc on cygwin/msys2 depend on mintty terminal and TERM=xterm?

The current tgc can only be used in Windows 10.
I will send PR to use in xterm.
It is my skill that I cannot solve it once. I am sorry.

PR: https://github.com/vim/vim/pull/2883


New release tag

Can you create a new one?
Bests Matthias

Seconded. This would be a good working base for creating a Debian package ... something that has been on my TODO list for a long time now.


Getting error: Number of tensor does not match the number of lines in metadata

Even though my metadata.tsv have 100k line but it still show up this message. I have try different amount of tensor and its work fine (eg. 40k, 50k). The problem occurred when the tensor values are roughly more than 70k.
Beside, i try other data set and its work fine for 100k tensor values. Just doubt what makes the problem above happend.

It is probably and end of line missing.
This question is better asked on  StackOverflow since it is not a  bug or feature request. There is also a larger community that reads questions there. Thanks!

I'm also seeing this issue with the latest version of tensorflow (1.1.0). i am not seeing it on version 0.12.1.
I verified that both embeddings and metadata are same length before exporting and that they do not match up in the tensorboard visualization.

I'm also getting this error in TF version 1.1.0. Everything works fine on 0.12.1 using the exact same code.
I've verified that my embedding tensor and metadata file have the same length.

I also verified that if i truncate my embeddings to start from the second index, the names and embeddings will match up correctly in the tensorboard embedding visualization.

eg. this hack makes it work for me with the current release (1.1.0):
embeddings = [i[1] for i in name_and_embedding][1:]
names = [i[0] for i in name_and_embedding]

Hi @markostam ,
I found that it skip my blank line on metadata file, so basically what i did is to check whether the query is blank or not before writing into the metadata file. Anyway, thanks for the hack.

Even though my metadata.tsv have 100k line but it still show up this message. I have try different amount of tensor and its work fine (eg. 40k, 50k). The problem occurred when the tensor values are roughly more than 70k.
Beside, i try other data set and its work fine for 100k tensor values. Just doubt what makes the problem above happend.

I've had a similar problem when using the online embedding projector (https://projector.tensorflow.org/).
I am uploading a vector file of 16-dimensional embeddings and a metadata file of labels, with one label per embedding. When more than 60289 rows are uploaded (say 60290), I receive the error
Number of tensors (60290) do not match the number of lines in metadata (60289).
This does not seem to be a problem of incorrectly formatted files, since the upload works fine when fewer rows are uploaded. Maybe re-open the issue, since this seems to be a bug?

I am having the same problem as above.

This error hasn't really gone away, why was this issue closed?
I have an embedding layer of size 100 and my metadata file also has 100 rows, but I get an error that says "Number of tensors (99) do not match the number of lines in the metadata (100)".
It does not appear to be counting the lines properly, I have not supplied any header row either.
I am on Tensorflow 2.2.0 and Tensorboard 2.2.1

This might sound ridiculous but it appears like tensorboard did not like me using my Google Drive folder for logs (/Users/me/Google Drive/logs). When I switched it to something without a space (ex: /tmp/me/logs) it works alright. Ugh!

The problem is still present.  It's a problem in tensorboard.
Tensorboard is caching the first tensor it gets. It's not updating when refreshing the page, even after deleting the whole log folder. The workaround is to close the tensorboard server and run it again.

I created an issue here

I faced this issue while plotting the embeddings with projector's tensorboard. The metadata I was using had a BOM character. The solution was to handle it.


PermissionError: [Errno 13] Permission denied: 'D:\embodied-generalist\model\pointnetpp'

Help😖😖😖😖
[2024-10-17 00:37:11,176][model.pcd_backbone][INFO] - Build PointcloudBackbone: PointNetPP
Error executing job with overrides: ['num_gpu=1', 'note=tuning_noact', "pretrained_ckpt_path='ckpoint/pytorch_model.bin'"]
Traceback (most recent call last):
File "D:\embodied-generalist\inference.py", line 191, in main
prober = LeoProber(cfg)
File "D:\embodied-generalist\inference.py", line 41, in init
self.model = LeoAgent(cfg)
File "D:\embodied-generalist\model\leo_agent.py", line 51, in init
self.pcd_encoder = build_module(cfg.vision3d)
File "D:\embodied-generalist\model\build.py", line 6, in build_module
return MODULE_REGISTRY.get(cfg.name)(cfg)
File "D:\embodied-generalist\model\vision3d.py", line 55, in init
self.obj_encoder = PointcloudBackbone(cfg.backbone)
File "D:\embodied-generalist\model\pcd_backbone.py", line 28, in init
self.pcd_net.load_state_dict(torch.load(path), strict=False)
File "D:\minicondaforme\envs\leo\lib\site-packages\torch\serialization.py", line 699, in load
with _open_file_like(f, 'rb') as opened_file:
File "D:\minicondaforme\envs\leo\lib\site-packages\torch\serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "D:\minicondaforme\envs\leo\lib\site-packages\torch\serialization.py", line 211, in init
super(_open_file, self).init(open(name, mode))
PermissionError: [Errno 13] Permission denied: 'D:\embodied-generalist\model\pointnetpp'

Please follow the readme to prepare files.

solved,thanks