How could I know the code in the bob like bob.pipelines.CheckpointWrapper? - python-bob

How to access the code in the bob? Like,I want to know the return of bob.pipelines.CheckpointWrapper. But I just find the Parameters Interpretation.
Note: Bob is a free signal-processing and machine learning toolbox
enter image description here

You can find the source code of Bob packages in their Gitlab repository: https://gitlab.idiap.ch/bob
For example, the class you pointed out is located in this file: https://gitlab.idiap.ch/bob/bob.pipelines/-/blob/master/bob/pipelines/wrappers.py

Related

Potential bug in GCP regarding public access settings for a file

I was conversing with someone from GCS support, and they suggested that there may be a bug and that I post what's happening to the support group.
Situation
I'm trying to adapt this Tensorflow demo ...
https://www.tensorflow.org/hub/tutorials/tf2_arbitrary_image_stylization
... to something I can use with images stored on my GCP account. Substituting one of my images to run through the process.
​​I have the bucket set for allUsers to have public access, with a Role of Storage Object Viewer.
However, the demo still isn't accepting my files stored in GCS.
For example, this file is being rejected:
https://storage.googleapis.com/01_bucket-02/Green_Sea_Turtle_grazing_seagrass.jpeg
That file was downloaded from the examples in the demo, and then uploaded to my GCS and the link used in the demo. But it's not being accepted. I'm using the URL from the Copy URL link.
Re: publicly accessible data
I've been following the instructions on making data publicly accessible.
https://cloud.google.com/storage/docs/access-control/making-data-public#code-samples_1
I've performed all the above operations from the console, but the bucket still doesn't indicate public access for the bucket in question. So I'm not sure what's going on there.
Please see the attached screen of my bucket permissions settings.
So I'm hoping you can clarify if those settings look good for those files being publicly accessible.
Re: Accessing the data from the demo
I'm also following this related article on 'Accessing public data'
https://cloud.google.com/storage/docs/access-public-data#storage-download-public-object-python
There are 2 things I'm not clear on:
If I've set public access the way I have, do I still need code as in the example on the 'Access public data' article just above?
If I do need to add this to the code from the demo, can you tell me how I can find these 2 parts of the code:
a. source_blob_name = "storage-object-name"
b. destination_file_name = "local/path/to/file"
I know the path of the file above (01_bucket-02/Green_Sea_Turtle_grazing_seagrass.jpeg), but don't understand whether that's the storage-object-name or the local/path/to/file.
And if it's either one of those, then how do I find the other value?
And furthermore, to make a bucket public, why would I need to state an individual file? That's making me think that code isn't necessary.
Thank you for clarifying any issues or helping to resolve my confusion.
Doug
If I've set public access the way I have, do I still need code as in the example on the 'Access public data' article just above?
No, you don't need to. I actually did some testing and I was able to pull images in GCS, may it be set to public or not.
As what we have discussed in this thread, what's happening in your project is that the image you are trying to pull in GCS has a .jpeg extension but is not actually .jpeg. The actual image is in .jpg causing TensorFlow to not able to load it properly.
See this testing following the demo you've mentioned and the image from your bucket. Note that I used .jpg as the image's extension.
content_urls = dict(
test_public='https://storage.cloud.google.com/01_bucket-02/Green_Sea_Turtle_grazing_seagrass.jpg'
)
Also tested another image from your bucket and it was successfully loaded in TensorFlow.
Most likely the problem is your turtle ends in .jpeg and your libraries are looking for .jpg.
The Errors you're seeing would be much more helpful to figure out the problem.

Why can't I find traci.vehicle.getIDCount()?

I am trying to get the total number of vehicles in the scenario. I checked wiki, it says the method traci.vehicle.getIDCount() can do it. But somehow I cannot find the definition of this function in SUMO's Github or my local pc. But actually I can run the code without errors.
Can anyone explain why I can't locate such a function but I can run it?
The function is defined in the file traci/domain.py. All the individual domains such as vehicle, edge etc inherit from the Domain class defined in this file and so inherit this function as well. I cannot tell though why your search is not successful because the code is right there (on Github and probably on your machine as well).

Is ODL-SDNiApp still supported?

I am trying to test ODL-SDNiApp and found it not updated since Helium on this page https://wiki.opendaylight.org/view/ODL-SDNiApp:User_Guide. So, is it still supported by Opendaylight? if not, please list me some useful tools or methods for inter SDN controller communication.
Thanks.
According to the project page https://wiki.opendaylight.org/view/ODL-SDNi_App:Main, it last participated in the Boron release but it doesn't look like it's been active since. You can try the project mailing list or contact the listed committers. If it is inactive as it appears, perhaps you might want to try to reboot it.

Show dynamic counter in TYPO3 6.2 backend module name

For an extended comment-adminstration I'd like to create a backend module.
To show if there are any new comments that need the administrators attention, a counter of unresolved issues in the module name would be great.
The output should look like:
Comments awaiting moderation (42)
Is this even possible in TYPO3, or should I look for another way to remind the moderators about them? Until now it's e-mail notifications, but after we received nearly 15000 comments so far, another solution would be greatly appreciated.

How to check out code for SqueakSource?

I created new asserts in the package KernelTests-Numbers of squeak. I cannot find a way to check out these to Squeaksource (a repo) or with monticello. How to check out new tests into the repository http://source.squeak.org/trunk to spread it to the community?
Thanks for the answers in advance.
EDIT
Thanks Tobias.
Here is the Monticello-Code for the Inbox:
MCHttpRepository
location: 'http://source.squeak.org/inbox'
user: ''
password: ''
EDIT 2
Thanks Bert for the Step-by-Step-Manual and screencast link.
Regards,
bartak
The steps are basically
Update so you have the latest trunk versions
Check the package changes against Trunk repo
Make sure only the methods you actually touched are listed
Save your package to the Inbox repo, giving it a reasonable commit message
Here is a video I made about how to submit a new package. Note this is for Etoys, so whenever I talk about the "etoys" repo you need to use "trunk", and instead of "etoys-inbox" you use "inbox". The relevant part is from about 1:20 to 4:00 min:
https://www.youtube.com/watch?v=2QKmfI4taGo#t=1m20s
You put into another repository, called the inbox:
http://source.squeak.org/inbox
From there, Squeak core developers can merge into the trunk repository.
The whole process is described in A New Community Development Model.
You probably want to talk about your changes on squeak-dev.