R8 guildelines

Hi Micheal!
Thanks for the neat project. It took me a while to test it with R8 and BuildConfig and I'd like to contribute back by writing these guidelines. Do they make sense? Do you use it in any other way?
I would say issue #11 is not necessary to do if obfuscation is used like in my example.
Usage with R8 and BuildConfig
A common use case is to have configuration specific variables in the generated BuildConfig class which cannot be obfuscated by adding @Obfuscate, for example:
public final class BuildConfig {
  public static final String API_URL = "https://github.com/";
}

Instead of using the variables directly, we can define another class that will wrap the BuildConfig fields and optionally add its own.
@Obfuscate
object Secrets {
    val API_SECRET = "user:password"
    val API_URL = BuildConfig.API_URL
}

If you are using R8, it's important that the fields are NOT const val as they would get moved to usage sites and not obfuscated. That also means that R8 will remove all public static final String fields from the compiled BuildConfig class, so they only have to be obfuscated where they are used.
Decompiled Secrets.kt with R8 enabled shows that Deobfuscator is called in the constructor to initialize API_SECRET and API_URL fields and the generated getter functions can access them afterwards without calling Deobfuscator again.
.class public final Lcom/example/app/Secrets;
.super Ljava/lang/Object;
.source "Secrets.kt"

# static fields
.field private static final API_SECRET:Ljava/lang/String;

.field private static final API_URL:Ljava/lang/String;

.field public static final INSTANCE:Lcom/example/app/Secrets;

# direct methods
.method static constructor <clinit>()V
    .registers 2
    const-wide v0, -0x52ca9f23686ca7e4L    # -6.559274792077535E-91
    invoke-static {v0, v1}, Lio/michaelrocks/paranoid/Deobfuscator$app$App;->getString(J)Ljava/lang/String;
    move-result-object v0
    sput-object v0, Lcom/example/app/Secrets;->API_SECRET:Ljava/lang/String;
    const-wide v0, -0x52ca9f31686ca7e4L    # -6.559209248608569E-91
    invoke-static {v0, v1}, Lio/michaelrocks/paranoid/Deobfuscator$app$App;->getString(J)Ljava/lang/String;
    move-result-object v0
    sput-object v0, Lcom/example/app/Secrets;->API_URL:Ljava/lang/String;
    .line 1
    new-instance v0, Lcom/example/app/Secrets;
    invoke-direct {v0}, Lcom/example/app/Secrets;-><init>()V
    sput-object v0, Lcom/example/app/Secrets;->INSTANCE:Lcom/example/app/Secrets;
    const-wide v0, -0x52ca9f1d686ca7e4L    # -6.559302882135663E-91
    .line 2
    invoke-static {v0, v1}, Lio/michaelrocks/paranoid/Deobfuscator$app$App;->getString(J)Ljava/lang/String;
    move-result-object v0
    sput-object v0, Lcom/example/app/Secrets;->API_SECRET:Ljava/lang/String;
    const-wide v0, -0x52ca9f6b686ca7e4L    # -6.558937711379997E-91
    .line 3
    invoke-static {v0, v1}, Lio/michaelrocks/paranoid/Deobfuscator$app$App;->getString(J)Ljava/lang/String;
    move-result-object v0
    sput-object v0, Lcom/example/app/Secrets;->API_URL:Ljava/lang/String;
    return-void
.end method

.method private constructor <init>()V
    .registers 1
    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V
    return-void
.end method

# virtual methods
.method public final getAPI_SECRET()Ljava/lang/String;
    .registers 2
    .line 1
    sget-object v0, Lcom/example/app/Secrets;->API_SECRET:Ljava/lang/String;
    return-object v0
.end method

.method public final getAPI_URL()Ljava/lang/String;
    .registers 2
    .line 1
    sget-object v0, Lcom/example/app/Secrets;->API_URL:Ljava/lang/String;
    return-object v0
.end method

Hi Marek,
Thank you so much for these guidelines. I'll add it to README.md if you don't mind.
And I'd still like to implement caching because there're other scenarios when you may want to obfuscate string literals in a class. For example one may want to hide inlined log tags or http headers to make reverse engineering of particular classes more difficult.

Yeah sure, pick what makes sense, I'm not skilled in writing documentation.
Okay yes if you don't store the string literal in a variable, then it's useful to cache it.


scheduler: Reservation supports preempting permitted pods

Ⅰ. Describe what this PR does
fix #1799

/approve

/lgtm


openai function calling

the syntax of the prompt is rather unique #E1 for example, I wonder if this is on purpose? Because it is rather limiting. For example, I want to introduce a tool called email that expects a JSON object of {subject: string, body: string, email: string} is there a way to adjust the prompt to accommodate this case? Or would this affect the efficacy of the framework?
This is especially useful if paired with openai function calling that already supports multiple parameters function calls

You are right, #E1  is just an ad-hoc implementation for the Planner. If you are looking for a robust system at scale, it's necessary to fine-tune your Planner LLM on special tokens like <BO#E> and <EO#E>  (like those <EOS> tokens in LM pertaining) to mark the beginning and end of #E and Plans.
Now it's much easier if you are using openai API since they have granted you fine-tuning endpoint https://platform.openai.com/docs/guides/fine-tuning
Note that this repo is just a proof of concept / idea, you don't need to follow anything strictly in this implementation.
If you are interested in openai function call based agents, checkout my later repo called Gentopia https://gentopia.readthedocs.io/en/latest/quick_start.html#openai-function-agent

gotcha, thanks!
I have done some experiments with multi-agent like gentopia but the output is sorely lacking, I was using gpt-3.5-turbo, perhaps using gpt-4 or even the latest gpt-3.5 instruct would be better


cosign doesn't get image metadata from JFrog Artifactory Enterprise 6.16.0 rev 61600900

Hi,
cosign doesn't work for JFrog registry (JFrog Artifactory Enterprise 6.16.0 rev 61600900) that is in-house deployed in our company. The error details are provided below.
root@visubuntu:~/Downloads# ./cosign sign --key import-cosign.key sm-hardened-docker-images.smtools.sentinelcloud.com/base:1.0 Enter password for private key:  Pushing signature to: sm-hardened-docker-images.smtools.sentinelcloud.com/base Error: signing [sm-hardened-docker-images.smtools.sentinelcloud.com/base:1.0]: recursively signing: signing digest: PUT https://sm-hardened-docker-images.smtools.sentinelcloud.com/v2/base/manifests/sha256-aa6c2c047467afc828e77e306041b7fa4a65734fe3449a54aa9c280822b0d87d.sig: MANIFEST_INVALID: manifest invalid; map[description:null] main.go:52: error during command execution: signing [sm-hardened-docker-images.smtools.sentinelcloud.com/base:1.0]: recursively signing: signing digest: PUT https://sm-hardened-docker-images.smtools.sentinelcloud.com/v2/base/manifests/sha256-aa6c2c047467afc828e77e306041b7fa4a65734fe3449a54aa9c280822b0d87d.sig: MANIFEST_INVALID: manifest invalid; map[description:null]
Using the crane tool
root@visubuntu:~/Downloads# ./crane manifest sm-hardened-docker-images.smtools.sentinelcloud.com/base:sha256-aa6c2c047467afc828e77e306041b7fa4a65734fe3449a54aa9c280822b0d87d.sig Error: fetching manifest sm-hardened-docker-images.smtools.sentinelcloud.com/base:sha256-aa6c2c047467afc828e77e306041b7fa4a65734fe3449a54aa9c280822b0d87d.sig: GET https://sm-hardened-docker-images.smtools.sentinelcloud.com/v2/base/manifests/sha256-aa6c2c047467afc828e77e306041b7fa4a65734fe3449a54aa9c280822b0d87d.sig: MANIFEST_UNKNOWN: The named manifest is not known to the registry.; map[manifest:base/sha256-aa6c2c047467afc828e77e306041b7fa4a65734fe3449a54aa9c280822b0d87d.sig/manifest.json]
However, Docker manifest works fine.
root@visubuntu:~/Downloads/TDI# docker manifest inspect sm-hardened-docker-images.smtools.sentinelcloud.com/base:1.0 { 	"schemaVersion": 2, 	"mediaType": "application/vnd.docker.distribution.manifest.v2+json", 	"config": { 		"mediaType": "application/vnd.docker.container.image.v1+json", 		"size": 1463, 		"digest": "sha256:d2e4e1f511320dfb2d0baff2468fcf0526998b73fe10c8890b4684bb7ef8290f" 	}, 	"layers": [ 		{ 			"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip", 			"size": 30421006, 			"digest": "sha256:125a6e411906fe6b0aaa50fc9d600bf6ff9bb11a8651727ce1ed482dc271c24c" 		} 	] }
I tried alternate way to attach signature by signing with openssl as well. It doesn't work.
root@visubuntu:~/Downloads# ./cosign attach signature --signature myimage.b64.sig sm-hardened-docker-images.smtools.sentinelcloud.com/base:1.0 Error: PUT https://sm-hardened-docker-images.smtools.sentinelcloud.com/v2/base/manifests/sha256-aa6c2c047467afc828e77e306041b7fa4a65734fe3449a54aa9c280822b0d87d.sig: MANIFEST_INVALID: manifest invalid; map[description:null] main.go:52: error during command execution: PUT https://sm-hardened-docker-images.smtools.sentinelcloud.com/v2/base/manifests/sha256-aa6c2c047467afc828e77e306041b7fa4a65734fe3449a54aa9c280822b0d87d.sig: MANIFEST_INVALID: manifest invalid; map[description:null]
I even deleted the repository in the JFrog and re-created it but still get the same error.

You might need a newer version of artifactory, what's the latest one?

Yes, please close this issue. It worked after passing the environment variable (COSIGN_DOCKER_MEDIA_TYPES=1) you mentioned to support legacy registries. Thanks a lot mate. You are awesome.


How to scaling one service that has many requests?

Hey cote team,
Great work with this awesome project!
I have 10 services using cote for data communication, one of the services has a lot of requests so sometimes it takes a long time and timeouts, do you have a solution to my problem?

You can launch multiple copies of the same service, and cote will automatically load-balance.


PullReplication status always REPLICATION_ACTIVE (only in 1.0.3)

I just updated to CB Lite 1.0.3 and noticed the replication status was always REPLICATION_ACTIVE on the PullReplication.  On previous versions the status would go to REPLICATION_IDLE if it was not actively syncing data.
I receive this message either from the replication.addChangeListener and it never receives a REPLICATION_IDLE, or if I start a thread that constantly reads the replication status, it never receives an REPLICATION_IDLE from the pull replicator.
Let me know if you need any other details or code to replicate this issue.
Thanks -james

Where can I find the fix? I'm also having the problem, but the current version still is <IP_ADDRESS>, according to the download page.

Hi @ThomasMatzner
This ticket was closed Oct 31, 2014. So you can try 1.0.4 from maven.
Or, could you please do git-clone from master branch?

Hi Hideki,
thanks. As I read in some forum that 1.0.4 will be released „soon”, I’ll wait for the official release.
Viele Grüße
Dipl.-Inform. Thomas Matzner
Berater für Systemanalyse
www.tamatzner.de
Von Ruth Stubenvoll und mir verfasst:
http://www.dpunkt.de/buecher/3816/it-freelancer.html IT-Freelancer. Ein Handbuch nicht nur für Einsteiger
Von: Hideki Itakura<EMAIL_ADDRESS>Gesendet: Dienstag, 24. Februar 2015 21:03
An: couchbase/couchbase-lite-android
Cc: ThomasMatzner
Betreff: Re: [couchbase-lite-android] PullReplication status always REPLICATION_ACTIVE (only in 1.0.3) (#445)
Hi @ThomasMatzner https://github.com/ThomasMatzner
This ticket was closed Oct 31, 2014. So you can try 1.0.4 from maven.
Or, could you please do git-clone from master branch?
—
Reply to this email directly or view it on GitHub https://github.com/couchbase/couchbase-lite-android/issues/445#issuecomment-75834120 .  https://github.com/notifications/beacon/AKqKUwT6F369BjTVs0EEWc8Wqr0nlOTKks5nvNBpgaJpZM4CzhFA.gif


Remove 404.html from site index

Fixes #335
Remove 404.html from siteindex as we don't want it indexing our 404 page and causing upset with Google Site Indexing thinking that page should have a 404 status code to match.

would this suffice from excluding it though? The sitemap is an optional file that we include, but doesn't dictate which parts of our website get indexed, and which do not?
Seems like we in fact want to include
<meta name=”robots” content=”noindex”>

into the 404.njk from reading https://www.ilfusion.com/how-to-prevent-google-from-indexing-certain-web-pages

Closed by https://github.com/flowforge/website/pull/387


Integration Test - Release - 2019/06/11 23:45:35

Auto create for integration test. IssueCommandFlow

@PRMergerTest3 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@PRMergerTest3 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


freeswitch python module

Describe the bug
I would like to be able to use the mod_python module with freeswitch for Python support.
Steps To Reproduce
Steps to reproduce the behavior:

Attempt to build with modules containing languages.python.

Expected behavior
It should work. Even better, more modules should maybe be supplied with the standard distribution. Or maybe somehow split up into another package or something.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Trying to  do this myself, so far without success.
Possible configure required the -with-python3 flag. Not 100% sure yet.
Suspect this might be an issue also: https://github.com/signalwire/freeswitch/issues/1479
Using Python3.9 solves this but then I get other (maybe unrelated?) build issues, such as it trying to execute /libtoolfor some unknown reason.
Notify maintainers
@misuzu
Metadata
$ nix-shell -p nix-info --run "nix-info -m"

 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.102, NixOS, 22.11 (Raccoon), 22.11.3221.328c9c6f597`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.1`
 - channels(brian): `""`
 - channels(root): `"nixos-22.11"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos

What about setting DESTDIR to something else?

I had a good look at this, but it appears that Python support is broken upstream, with a number of bug reports, and so far no response. I was getting a compile error due to using a deprecated Python API.
No chance of getting this fixed until upstream is fixed, so will close this for now.


Bug:  Cannot convert value of type

Hello thanks for great plugin!
I got some error I do need your help:
AttributedTextFormItem.swift:19:62: Cannot convert value of type '[String : AnyObject]?' to expected argument type '[NSAttributedStringKey : Any]?'
Thank you

Need updated for swift 4 Thanks

Thanks for the kind words @kristoff2016


GraphQL spec version

It would be good to have some indication of what version of the GraphQL spec this implementation is currently aligned with. The current version is<EMAIL_ADDRESS>

@xzyfer That is the version of the javascript implementation. The latest spec for graphql can be found here: (Oct. 2016). I agree that it would be helpful to identify how compliant this implementation is.

The goal definitely is 100% support for the latest spec. It is hard to say how compliant graphql-go currently is, since there is no official test suite. If you see any deviation from the spec please file an issue and I'll fix it asap.

Specifically I think differentiating between a goal and an expectation.
Stating it's goal suggests you're actively working on catching to spec, with no real indication of the current progress. IMHO it would help consumers to know that current status is (believed to be) compatible with (Oct. 2016).

I'm a pragmatic person. I'm not going through the spec step-by-step, I'm rather implementing what I currently need or issues that others report. To determine some concrete status of compatibility we either need an official GraphQL test suite or someone has to go through the spec step-by-step and verify. That's not on my TODO list. In the readme I'll change "goals" into "features" as soon as I am confident enough.


You are not privileged to do that

On build from Nov 3rd, 2019 is problem with Counselor (plevel 2) and Seer (plevel 3) privileges. Every command report msg_acc_priv (You are not privileged to do that)
in the previous build it was okay
edit: only .info and player (plevel 1) commands it's ok

Seems to work fine here, are you sure you haven't changed your spheretables?

on the last version it looks ok


Convert to TS, add hook, and upgrade Android version.

I mostly came here to add a hook (as mentioned in #3) as I needed that for my usage of the library, but the Android fix from #7 and conversion to TypeScript seemed relatively easy so went ahead and did those as well!
Instead of just writing types, I went ahead and converted all of the JS to Typescript since there isn't too much there to begin with. The consequence of this is now there's a build step required before publishing, but hopefully not too much of a burden!
I'm currently using this branch in my app with success.
Let me know if there's anything you disagree with here and I can revise.

@sammarks Just saw this. First, thanks! It looks like a really good and useful job, I'll take a closer look as soon as I can, probably this weekend and let you know.
The build step you mention before publishing is running npm run build?

Correct!

@sammarks Just an update on this, I'll reviewing this on the weekend and hopefully publishing a new version next week


Report creation#31

Codecov Report

Merging #44 into master will increase coverage by 0.02%.
The diff coverage is 50%.

@@            Coverage Diff             @@
##           master      #44      +/-   ##
==========================================
+ Coverage   60.17%   60.19%   +0.02%
==========================================
  Files          61       61
  Lines        1976     1977       +1
  Branches      157      157
==========================================
+ Hits         1189     1190       +1
  Misses        749      749
  Partials       38       38

Impacted Files
Coverage Δ

mass_flask_api/resources/scheduled_analysis.py
47.05% <50%> (+1.05%)
:white_check_mark:

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 80a4813...6932c78. Read the comment docs.


Fix string insert overflow check

What problem does this PR solve?
Close #1722
What is changed, and how it works?
Use codePointCount() instead of string length to check string length overflow.
Check List
Tests

Unit test
Integration test

Related changes

Need to cherry-pick to the release branch
Need to update the documentation
Need to be included in the release note

/run-integration-tests tidb=v4.0.5 pd=v4.0.5 tikv=v4.0.5

/run-integration-tests tidb=v4.0.5 pd=v4.0.5 tikv=v4.0.5


Mac module_test_ios in staging hasn't been run ever

Test Mac module_test_ios  was marked as flaky https://github.com/flutter/flutter/pull/96076, and is supposed to run in staging for validation. However this test hasn't been run forever due to NO_RESOURCE.

All mac post-submit host only tests are set to run on mac_model: Macmini8,1 and os: Mac-10.15, however staging has only

Macmini7,1 + Mac-10.15
Macmini8,1+Mac-12.0

infradata/config/+/4436396 added one bot to staging. Now tests are running.


fix(debian10): fix get-pip script

0.220 ERROR: This script does not work on Python 3.7. The minimum supported Python version is 3.8. Please use https://bootstrap.pypa.io/pip/3.7/get-pip.py instead.

https://github.com/emqx/emqx-builder/actions/runs/9685773741/job/26727609446#step:11:14988

Debian 11 installs Python 3.9.2 by default.
May be we should just upgrade Python version here.


rel -> data-rel

Bad value something for attribute rel on element a: The string something is not a registered keyword.
 - not valid html code in HTML5
 - valid html code in HTML5
https://www.w3.org/TR/html5/links.html#linkTypes
http://microformats.org/wiki/existing-rel-values#HTML5_link_type_extensions

Thanks for the pull request.  I agree with your suggestion, but I'm not going to merge this due for backward compatibility reasons (Colorbox is very old now and I want those legacy users to be able to incorporate important fixes without breakage).  If Colorbox ever gets a rewrite, I'll be sure to drop the use of the rel attribute.
However, this is already something you can do by using the data-cbox-rel attribute, which has priority over options object rel property.  I never documented the use of cbox-rel-* attributes, my apologies for that.


There is an issue in the defaultLocale

Description
Hello, I set the middleware up and put the Arabic as the defaultLocale like so :
`import createMiddleware from "next-intl/middleware";
export default createMiddleware({
// A list of all locales that are supported
locales: ["en", "de", "ar"],
// Used when no locale matches
defaultLocale: "ar",
});
export const config = {
// Match only internationalized pathnames
matcher: ["/", "/(ar|de|en)/:path*"],
};`
but when i try to go to http://localhost:3000 it always redirects me to http://localhost:3000/de.
So how i can set the defaultLocale?
NOTE: this happen always when i add more than two locales, two locales work just fine!
Verifications

[X] I've verified that the problem I'm experiencing isn't covered in the docs.
[X] I've searched for similar, existing issues on GitHub and Stack Overflow.
[X] I've compared my app to a working example to look for differences.

Mandatory reproduction URL
https://github.com/Mood-al/next-intl-bug-repro-app-router
Reproduction description
As you see in the website https://next-intl-bug-repro-app-router-lemon.vercel.app/ when you try to go there it redirects you directly to /de but the defaultLocale is ar!
I have noticed that this happen just when there are more than 3 locales like my case ["en", "ar", "de"].
but when we have just 2 locales it works just fine!
Expected behaviour
next-intl should except more than 2 locales!

There might be a misunderstanding about what the defaultLocale is. Please carefully review the middleware docs to learn more. You probably have German configured as your primary language in your browser settings, that's why you're seeing a redirect to /de.
You can test that the Arabic locale works as the default like this:
curl -v 'https://next-intl-bug-repro-app-router-lemon.vercel.app/'

< HTTP/2 307
(...)
< location: /ar


Can't use file uri in vcordova parameter

When submitting a build request with vcordova=file:///usr/local/lib/node_modules/cordova it fails with the following error
null: Error: file:///usr/local/lib/node_modules/cordova is an invalid cordova version

We only support vcordova values which are valid semver identifiers. Typically we npm install cordova@<vcordova> and keep that in a cache stored at ~/.taco_home/node_modules/cordova/<vcordova>.
If you are trying to use a custom cordova version, you can use the above knowledge to your advantage: On the machine running remotebuild, navigate to ~/.taco_home/node_modules/cordova and create a folder x.y.z-custom or similar, with a semver valid name. Inside that folder, create another node_modules folder, and then npm install your custom build. Now if you submit a build using that same vcordova=x.y.z-custom version, it will find that newly installed copy and build with it.

the problem i am having is that vcordova isn't being parsed properly in CordovaWrapper.getCordovaVersion(). For me it is returning "6.3.1\r" which throws an error on the remotebuild machine. Can you update to parse out the "\r"

We are deprecating this repository. If you feel strongly about this feature, please open an issue on https://github.com/microsoft/remotebuild


Update fs2-core, fs2-io to 2.1.0

Updates

co.fs2:fs2-core
co.fs2:fs2-io

from 1.0.5 to 2.1.0.
Release Notes/Changelog
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "co.fs2" } ]

labels: semver-major

addressed in #4470


Added BibTex Tests and corrected a minor error formatting authors

Bibtex tests designed to test the existence and correct formatting of the tags contained within the bibtex output, without worrying about the arbitrary order.
Also corrected a minor bug with bibTex author formatting. Authors are supposed to always be separated with an 'and'.

Should there be tests of the non-author fields with three authors? If those fields are unaffected, why do you specify "one author"?

Having more authors should be isolated from the rest of the code as it only changes how the author section is created. That's why I only tested for the correct formatting of authors in a vacuum. The title was just for consistency with @nokeeo's tests

👍 lgtm

Can you squash your commits? You should be able to run git rebase -i HEAD~5 which should present you with your editor displaying an action, a short hash, and the commit message for your last five commits. Leave the action of the first one (8f769e07a7cf1b6ad527d07c64a969ae46825bf6) as "pick", and change the rest to "squash".  You can change the commit message at this time too, if you'd like (though I think it still describes the change well).  Let me know if you have questions.


Add more platforms

Why you don't create for ios, uwp... etc?

It's a Xamarin binding for a library that exists on Android.


Use zerolog everywhere

This removes the usage of the log package in favor us using zerolog.
This also adds a lint check that prevents us from re-taking log.

@JAORMX gotta fix the lint issues

@JAORMX gotta fix the lint issues

done


async def syntax erroneously parsed as something import-related

Steps to reproduce

Create the following file:

import asyncio

async def main():
    return

Run isort on it.

isort should not modify the file at all, but it actually changes it to
import asyncio

async def main():
    return

I don't think it's that isort thinks async def is related to import, but rather that isort isn't aware that async def should have two blank lines before it.
This is now enforced by pycodestyle as of 2.1.0 so running isort will break flake8 etc.
Is there anything we can do to help fix this?

bump any update on this @timothycrosley?
It's fairly annoying that currently isort breaks pep8 on almost all my test files.

Closing as a fix for this has been merged into develop


Cross tenant url teams personal tab

I tried to add a cross tenant url into the staticTabs , it works on MS Teams web, but not on MS Teams Desktop.
Sample manifest below:

Valid domains are set to support *.sharepoint.com

This article doesn't explicitly mention it supports cross tenancy. Is there any reason why it supports cross tenant url on web version but not on desktop version? Both tenants have full trust as one is child company that requires access to one of sharepoint page in parent company tenant.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 611ed1ac-09a9-3491-7fa8-d282b4558fbe
Version Independent ID: b5a1dba5-beab-7188-fe18-0a045814dde0
Content: Create a Teams 'Intranet Portal app' from a SharePoint Online site or page - Microsoft Teams
Content Source: Teams/teams-standalone-static-tabs-using-spo-sites.md
Service: msteams
GitHub Login: @LanaChin
Microsoft Alias: heidip

@jonathanhotono Thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.

Hi @scanum I was inquiring based on the article provided whether the cross tenancy link is actually supported on desktop app, and if not is there any plan ongoing forward to support links from tenant1.sharepoint.com to tenant2.sharepoint.com? Because on both mobile app & web app it works just fine.


How to customize error information

How to customize error information in schema？
like this:
{
    "userName": {
      "type": "string",
      "minLength": 1,
      "require": true,
      "pattern": "\\d+_\\d+_\\d+",
      "message":"ERROR MESSAGE"
    },
}

You can use https://github.com/ajv-validator/ajv-errors

Thank you! Closing it.

Thanks for you reply. it resolve my issue, however ajv-validator/ajv-errors have the same issue in  IE11.
How to resolve it?
Look forward to your reply.


metho not found git()

hello,
i'm trying to use your plugin which seem to answer my needs, but i get this error, i don't really understand what i've done wrong:
Error:(27, 0) Gradle DSL method not found: 'github()'
Possible causes: The project 'My Application' may be using a version of Gradle that does not contain the method.
it seems like your plugin is not applied in my project, despite the configuration i've followed from the README.
thank you

Can you post your build.gradle file? That would make it easier to debug the problem


finishTransactionIOS/finishTransaction this is not working in IOS

Version of react-native-iap
4.4.8
Version of react-native
0.61.5
Platforms you faced the error (IOS or Android or both?)
IOS
Expected behavior
I click in the purchase button and I getting the error is undefined finishTransactionIOS method give me an error (undefined/null).
I send finishtransaction this Purchase Object
I send finishTransactionIOS this purchase.transactionId
all ready send but response was (undefined/null).

Actual behavior
Tested environment (Emulator? Real Device?)
Real Device (I am Using IphoneX)
Steps to reproduce the behavior
@hyochan Can you please help me?

Can you share your code snippet?
I guess I've faced something like this, and want to be sure if it related or not on my issue #1020

It looks like you didn't use a promise?
You should use await when calling finishTransaction

@Mitdd9707 Can this be closed? I think you should share some of your code.

I am having the same issue, this is the code I used.
      purchaseUpdateSubscription = RNIap.purchaseUpdatedListener(
        async (purchase) => {
          console.log(purchase);
          const receipt = purchase.transactionReceipt;
          if (receipt) {
            try {
              const ackResult = await RNIap.finishTransaction(purchase);
              console.log('ackResult', ackResult);
            } catch (ackErr) {
              console.warn('ackErr', ackErr);
            }

            Alert.alert('purchase error', JSON.stringify(receipt));
          }
        },
      );

i'm having the same issue

Do we have an update on this???

Closes via #1160


Update the code to support recent ejabberd versions (>16.09)

Fixes #17

Hey @zinid!
I wasn't sure I'll ever come around this, so you saved my day! Thanks a lot for this.
I hope you guys in @processone don't plan any breaking ejabberd changes in the near future, huh?

I hope you guys in @processone don't plan any breaking ejabberd changes in the near future, huh?

I'm not sure, we need to evolve ejabberd and keeping backward compatible api is huge burden.

I'm not sure, we need to evolve ejabberd
I don't remember such changes when I ported things from 2.x.x to 13.

keeping backward compatible api is huge burden.
Totally agree on that.

Well, you guys do the evolving, and I'll see if I can keep up :)


Enter Transition flickers on IE and Edge

See:
http://intellifactory.github.io/websharper.ui.next.samples/#samples/samples/AnimatedContactFlow
http://intellifactory.github.io/websharper.ui.next.samples/#samples/samples/AnimatedBobsleighSite

Re-tested this with Zafir.UI.Next <IP_ADDRESS>-beta7 - still an issue.
You can also make elements flicker in Chrome by using the repro project attached to #120 and pressing the "click me" button in quick succession (so that the transitions do not have time to finish).


Responsive Login & Signup Page.

Description
Create a responsive login and signup page as given in the preview video.
Screenshots
https://user-images.githubusercontent.com/87887741/158015471-05b36f05-6c30-4006-8d09-4f0fbc43a7e3.mp4
Additional information
Self verify your code and output and place the files in the correct folders.
Also follow the contribution guidelines and code of conduct of GSSOC'22.

I am interested in working with this issue! Kindly assign me.

I am interested in working with this issue! Kindly assign me.

@aditi10701 You have already assigned with an issue (Issue no - #128). Kindly complete that issue first then attempt for other one.

@kashyap1905 the issue no -#128 is not assigned to me. Can you please confirm once.

@kashyap1905 the issue no -#128 is not assigned to me. Can you please confirm once.

Sorry, it was my mistake. Got confused because of similar name.
This issue has been assigned to you. Try to complete the code within 5 - 7 days.

Assigned to @aditi10701

Thankyou!
Can I get the required png files for the vector images?

Thankyou! Can I get the required png files for the vector images?

Use any relevant free image of your choice. Try to keep the image size to the minimum.

The assigned Issue is completed.
https://github.com/aditi10701/Login-Sign-Up.git

The assigned Issue is completed. https://github.com/aditi10701/Login-Sign-Up.git

Kindly create a pull request from your repository to dezenix repository. Then I will be able to review it.

Done!
KIndly review the same.


Update to the latest sling-maven-plugin

Update to the latest sling-maven-plugin and enable SlingPostServlet install which also installs the intermediate folders and doesnt fail the install when they dont exist

Pull Request Test Coverage Report for Build 6055

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 55.382%

Totals

Change from base Build 6049:
0.0%

Covered Lines:
15760

Relevant Lines:
28457

💛  - Coveralls

@joerghoh fixed now!


USA Phone number

Added a USAPhoneNumber case to the Trial struct.

Current coverage is 100.00%

Merging #2 into master will not affect coverage as of f8310be

@@            master      #2   diff @@
======================================
  Files            3       3
  Stmts          116      97    -19
  Branches         0       0
  Methods
======================================
- Hit            116      97    -19
  Partial          0       0
  Missed           0       0

Review entire Coverage Diff as of f8310be

Powered by Codecov. Updated on successful CI builds.

Hey, thanks a lot for contributing!! Just one picky comment, can you change the spaces used to indent by tabs?

sure what do you want the spacing to be set to?

the default tab spacing, just to keep the indent spaces consistent with the rest of the project... these are my xcode settings:


I can't find the issue... And searching the error doesn't produce results.

The workflow worked, and I trained several LoRA's using it, tested some stuff. When a workflow works, I save a copy and archive it. Not even the archive with all the original settings that worked before works, produces the same error.
The main error it throws is :-
FluxTrainValidate
'FluxUpperLowerWrapper' object has no attribute 'prepare_block_swap_before_forward'
Here is the total error. This was from a fresh restart as well.
`
ComfyUI Error Report
Error Details

Node ID: 192
Node Type: FluxTrainValidate
Exception Type: AttributeError
Exception Message: 'FluxUpperLowerWrapper' object has no attribute 'prepare_block_swap_before_forward'

Stack Trace
  File "D:\AI\Art\ComfyUI\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\AI\Art\ComfyUI\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\AI\Art\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "D:\AI\Art\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\nodes.py", line 1200, in validate
    image_tensors = network_trainer.sample_images(*params)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\flux_train_network_comfy.py", line 310, in sample_images
    image_tensors = flux_train_utils.sample_images(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\flux_train_utils.py", line 89, in sample_images
    image_tensor = sample_image_inference(
                   ^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\flux_train_utils.py", line 223, in sample_image_inference
    x = denoise(flux, noise, img_ids, t5_out, txt_ids, l_pooled, timesteps=timesteps, guidance=scale, t5_attn_mask=t5_attn_mask)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\flux_train_utils.py", line 310, in denoise
    model.prepare_block_swap_before_forward()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "D:\AI\Art\ComfyUI\penv\Lib\site-packages\torch\nn\modules\module.py", line 1931, in __getattr__
    raise AttributeError(

System Information

ComfyUI Version: v0.3.5-2-g497db62
Arguments: main.py
OS: nt
Python Version: 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
Embedded Python: false
PyTorch Version: 2.5.1+cu124

Devices

Name: cuda:0 NVIDIA GeForce RTX 4070 Ti SUPER : cudaMallocAsync

Type: cuda
VRAM Total:<PHONE_NUMBER>8
VRAM Free:<PHONE_NUMBER>
Torch VRAM Total:<PHONE_NUMBER>0
Torch VRAM Free: 247073208

Logs
2024-12-04T15:02:20.709523 - Windows2024-12-04T15:02:20.709523 -
2024-12-04T15:02:20.709523 - ** Python version:2024-12-04T15:02:20.709523 -  2024-12-04T15:02:20.709523 - 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]2024-12-04T15:02:20.709523 -
2024-12-04T15:02:20.709523 - ** Python executable:2024-12-04T15:02:20.709523 -  2024-12-04T15:02:20.709523 - D:\AI\Art\ComfyUI\penv\Scripts\python.exe2024-12-04T15:02:20.709523 -
2024-12-04T15:02:20.709523 - ** ComfyUI Path:2024-12-04T15:02:20.709523 -  2024-12-04T15:02:20.709523 - D:\AI\Art\ComfyUI2024-12-04T15:02:20.710024 -
2024-12-04T15:02:20.710024 - ** Log path:2024-12-04T15:02:20.710024 -  2024-12-04T15:02:20.710024 - D:\AI\Art\ComfyUI\comfyui.log2024-12-04T15:02:20.710024 -
2024-12-04T15:02:21.864771 -
Prestartup times for custom nodes:2024-12-04T15:02:21.864771 -
2024-12-04T15:02:21.864771 -    0.0 seconds:2024-12-04T15:02:21.865274 -  2024-12-04T15:02:21.865274 - D:\AI\Art\ComfyUI\custom_nodes\rgthree-comfy2024-12-04T15:02:21.865274 -
2024-12-04T15:02:21.865274 -    0.0 seconds:2024-12-04T15:02:21.865274 -  2024-12-04T15:02:21.866774 - D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-Easy-Use2024-12-04T15:02:21.866774 -
2024-12-04T15:02:21.866774 -    2.5 seconds:2024-12-04T15:02:21.866774 -  2024-12-04T15:02:21.866774 - D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-Manager2024-12-04T15:02:21.866774 -
2024-12-04T15:02:21.866774 -
2024-12-04T15:02:23.353963 - Total VRAM 16376 MB, total RAM 130813 MB
2024-12-04T15:02:23.353963 - pytorch version: 2.5.1+cu124
2024-12-04T15:02:23.354966 - Set vram state to: NORMAL_VRAM
2024-12-04T15:02:23.355469 - Device: cuda:0 NVIDIA GeForce RTX 4070 Ti SUPER : cudaMallocAsync
2024-12-04T15:02:24.298672 - Using pytorch cross attention
2024-12-04T15:02:25.305135 - [Prompt Server] web root: D:\AI\Art\ComfyUI\web
2024-12-04T15:02:25.982189 - Note: NumExpr detected 28 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 16.
2024-12-04T15:02:25.982689 - NumExpr defaulting to 16 threads.
2024-12-04T15:02:26.110470 - [Crystools INFO] Crystools version: 1.21.0
2024-12-04T15:02:26.125389 - [Crystools INFO] CPU: Intel(R) Core(TM) i7-14700K - Arch: AMD64 - OS: Windows 10
2024-12-04T15:02:26.133904 - [Crystools INFO] Pynvml (Nvidia) initialized.
2024-12-04T15:02:26.133904 - [Crystools INFO] GPU/s:
2024-12-04T15:02:26.147945 - [Crystools INFO] 0) NVIDIA GeForce RTX 4070 Ti SUPER
2024-12-04T15:02:26.148446 - [Crystools INFO] NVIDIA Driver: 560.94
2024-12-04T15:02:27.282194 - [ComfyUI-Easy-Use] server: v1.2.5 Loaded2024-12-04T15:02:27.282698 -
2024-12-04T15:02:27.282698 - [ComfyUI-Easy-Use] web root: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-Easy-Use\web_version/v2 Loaded2024-12-04T15:02:27.282698 -
2024-12-04T15:02:27.557548 - ### Loading: ComfyUI-Inspire-Pack (V1.9)2024-12-04T15:02:27.557548 -
2024-12-04T15:02:27.603153 - Total VRAM 16376 MB, total RAM 130813 MB
2024-12-04T15:02:27.604231 - pytorch version: 2.5.1+cu124
2024-12-04T15:02:27.604676 - Set vram state to: NORMAL_VRAM
2024-12-04T15:02:27.605176 - Device: cuda:0 NVIDIA GeForce RTX 4070 Ti SUPER : cudaMallocAsync
2024-12-04T15:02:27.623846 - ### Loading: ComfyUI-Manager (V2.52.1)2024-12-04T15:02:27.623846 -
2024-12-04T15:02:27.723765 - ### ComfyUI Revision: 2865 [497db621] | Released on '2024-11-26'2024-12-04T15:02:27.723765 -
2024-12-04T15:02:28.002472 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json2024-12-04T15:02:28.002972 -
2024-12-04T15:02:28.011990 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json2024-12-04T15:02:28.012491 -
2024-12-04T15:02:28.033528 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json2024-12-04T15:02:28.034025 -
2024-12-04T15:02:28.071102 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2024-12-04T15:02:28.071102 -
2024-12-04T15:02:28.105702 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json2024-12-04T15:02:28.106203 -
2024-12-04T15:02:28.451737 - D:\AI\Art\ComfyUI2024-12-04T15:02:28.451737 -
2024-12-04T15:02:28.451737 - ############################################2024-12-04T15:02:28.452237 -
2024-12-04T15:02:28.452237 - D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-NAI-styler\CSV2024-12-04T15:02:28.452237 -
2024-12-04T15:02:28.452237 - ############################################2024-12-04T15:02:28.452237 -
2024-12-04T15:02:28.452738 - []2024-12-04T15:02:28.452738 -
2024-12-04T15:02:28.452738 - ############################################2024-12-04T15:02:28.452738 -
2024-12-04T15:02:28.453740 - (pysssss:WD14Tagger) [DEBUG] Available ORT providers: TensorrtExecutionProvider, CUDAExecutionProvider, CPUExecutionProvider2024-12-04T15:02:28.453740 -
2024-12-04T15:02:28.453740 - (pysssss:WD14Tagger) [DEBUG] Using ORT providers: CUDAExecutionProvider, CPUExecutionProvider2024-12-04T15:02:28.453740 -
2024-12-04T15:02:28.480310 - ------------------------------------------2024-12-04T15:02:28.480310 -
2024-12-04T15:02:28.480310 - Comfyroll Studio v1.76 :  175 Nodes Loaded2024-12-04T15:02:28.480810 -
2024-12-04T15:02:28.480810 - ------------------------------------------2024-12-04T15:02:28.480810 -
2024-12-04T15:02:28.480810 - ** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md2024-12-04T15:02:28.480810 -
2024-12-04T15:02:28.480810 - ** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki2024-12-04T15:02:28.480810 -
2024-12-04T15:02:28.480810 - ------------------------------------------2024-12-04T15:02:28.480810 -
2024-12-04T15:02:28.486823 - FizzleDorf Custom Nodes: Loaded2024-12-04T15:02:28.486823 -
2024-12-04T15:02:29.109333 - [tinyterraNodes] Loaded2024-12-04T15:02:29.109333 -
2024-12-04T15:02:29.419914 - All packages from requirements.txt are installed and up to date.2024-12-04T15:02:29.419914 -
2024-12-04T15:02:29.421414 - llama-cpp installed2024-12-04T15:02:29.421414 -
2024-12-04T15:02:29.421914 - All packages from requirements.txt are installed and up to date.2024-12-04T15:02:29.421914 -
2024-12-04T15:02:29.536297 -
2024-12-04T15:02:29.536297 - [rgthree-comfy] Loaded 42 fantastic nodes. 🎉2024-12-04T15:02:29.536297 -
2024-12-04T15:02:29.536297 -
2024-12-04T15:02:29.909866 - Searge-SDXL v4.3.1 in D:\AI\Art\ComfyUI\custom_nodes\SeargeSDXL2024-12-04T15:02:29.910366 -
2024-12-04T15:02:29.929445 -
Import times for custom nodes:
2024-12-04T15:02:29.929445 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\websocket_image_save.py
2024-12-04T15:02:29.929445 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-Styles_CSV_Loader
2024-12-04T15:02:29.929445 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-CSV-Loader
2024-12-04T15:02:29.929445 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger
2024-12-04T15:02:29.929445 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-Universal-Styler
2024-12-04T15:02:29.929445 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-Image-Saver
2024-12-04T15:02:29.929945 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI_FizzNodes
2024-12-04T15:02:29.929945 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts
2024-12-04T15:02:29.929945 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\mikey_nodes
2024-12-04T15:02:29.929945 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\python-interpreter-node
2024-12-04T15:02:29.929945 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-GGUF
2024-12-04T15:02:29.929945 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-ImageMetadataExtension
2024-12-04T15:02:29.929945 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-SaveImageWithMetaData
2024-12-04T15:02:29.929945 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\rgthree-comfy
2024-12-04T15:02:29.929945 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved
2024-12-04T15:02:29.929945 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-KJNodes
2024-12-04T15:02:29.930444 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes
2024-12-04T15:02:29.930444 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-Inspire-Pack
2024-12-04T15:02:29.930444 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\comfyui-dream-project
2024-12-04T15:02:29.930444 -    0.0 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI_Searge_LLM
2024-12-04T15:02:29.930444 -    0.1 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-FluxTrainer
2024-12-04T15:02:29.930444 -    0.1 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI_tinyterraNodes
2024-12-04T15:02:29.930444 -    0.2 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-Florence2
2024-12-04T15:02:29.930444 -    0.2 seconds: D:\AI\Art\ComfyUI\custom_nodes\comfyui-tensorops
2024-12-04T15:02:29.930945 -    0.3 seconds: D:\AI\Art\ComfyUI\custom_nodes\comfyui-propost
2024-12-04T15:02:29.930945 -    0.3 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-Crystools
2024-12-04T15:02:29.930945 -    0.3 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-Manager
2024-12-04T15:02:29.930945 -    0.3 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI_VLM_nodes
2024-12-04T15:02:29.931446 -    0.4 seconds: D:\AI\Art\ComfyUI\custom_nodes\SeargeSDXL
2024-12-04T15:02:29.931446 -    0.6 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI_LayerStyle
2024-12-04T15:02:29.931446 -    1.1 seconds: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-Easy-Use
2024-12-04T15:02:29.931446 -
2024-12-04T15:02:29.940081 - Starting server

2024-12-04T15:02:29.940081 - To see the GUI go to: http://<IP_ADDRESS>:8188
2024-12-04T15:02:55.119960 - FETCH DATA from: D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json2024-12-04T15:02:55.120459 - 2024-12-04T15:02:55.129478 -  [DONE]2024-12-04T15:02:55.129478 -
2024-12-04T15:02:56.163787 - [Inspire Pack] IPAdapterPlus is not installed.2024-12-04T15:02:56.163787 -
2024-12-04T15:02:56.173806 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: D:\AI\Art\ComfyUI
            2024-12-04T15:02:56.173806 -
2024-12-04T15:02:56.173806 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: D:\AI\Art\ComfyUI
            2024-12-04T15:02:56.173806 -
2024-12-04T15:02:56.173806 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: D:\AI\Art\ComfyUI
            2024-12-04T15:02:56.173806 -
2024-12-04T15:02:56.173806 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: D:\AI\Art\ComfyUI
            2024-12-04T15:02:56.173806 -
2024-12-04T15:02:56.173806 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: D:\AI\Art\ComfyUI
            2024-12-04T15:02:56.174808 -
2024-12-04T15:02:56.174808 - Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: D:\AI\Art\ComfyUI
            2024-12-04T15:02:56.174808 -
2024-12-04T15:03:11.443209 - got prompt
2024-12-04T15:03:11.461238 - queue_counter: 02024-12-04T15:03:11.461739 -
2024-12-04T15:03:11.900551 - {'steps': 20, 'width': 1024, 'height': 1024, 'guidance_scale': 3.5, 'seed': 133742069, 'shift': True, 'base_shift': 0.5, 'max_shift': 1.15}2024-12-04T15:03:11.900551 -
2024-12-04T15:03:11.920110 - additional_args: num_train_epochs=20

2024-12-04T15:03:11.920609 -
2024-12-04T15:03:11.942150 - highvram is enabled / highvramが有効です2024-12-04T15:03:11.942150 -
2024-12-04T15:03:11.985808 - 2024-12-04 15:03:11 INFO     Checking the state dict: Diffusers or BFL, dev or schnell                  flux_utils.py:61
2024-12-04T15:03:11.987819 -                     INFO     t5xxl_max_token_length: 512                                 flux_train_network_comfy.py:149
2024-12-04T15:03:12.435753 - 2024-12-04 15:03:12 INFO     Loading dataset config from [[datasets]]                               train_network.py:288
                             resolution = [ 1024, 1024,]
                             batch_size = 1
                             enable_bucket = true
                             bucket_no_upscale = false
                             min_bucket_reso = 512
                             max_bucket_reso = 1024
                             [[datasets.subsets]]
                             image_dir = "Z:\\LoRA-Training\\LoRA-Train"
                             class_tokens = "M4G3N"
                             num_repeats = 1

                             [general]
                             shuffle_caption = false
                             caption_extension = ".txt"
                             keep_tokens_separator = "|||"
                             caption_dropout_rate = 0.0
                             color_aug = false
                             flip_aug = false

2024-12-04T15:03:12.438759 -                     INFO     prepare images.                                                          train_util.py:1836
2024-12-04T15:03:12.443766 -                     INFO     get image size from name of cache files                                  train_util.py:1768
2024-12-04T15:03:12.445774 -
  0%|                                                                                | 0/46 [00:00<?, ?it/s]2024-12-04T15:03:12.459297 -
100%|████████████████████████████████████████████████████████████████████████████████| 46/46 [00:00<00:00, 3401.59it/s]2024-12-04T15:03:12.459797 -
2024-12-04T15:03:12.460677 -                     INFO     set image size from cache files: 46/46                                   train_util.py:1775
2024-12-04T15:03:12.460677 -                     INFO     found directory Z:\LoRA-Training\LoRA-Train contains 46 image files      train_util.py:1777
2024-12-04T15:03:12.466175 -                     INFO     Found captions for 46 images.                                            train_util.py:1807
2024-12-04T15:03:12.466859 -                     INFO     46 train images with repeating.                                          train_util.py:1877
2024-12-04T15:03:12.467864 -                     INFO     0 reg images.                                                            train_util.py:1880
2024-12-04T15:03:12.468370 -                     WARNING  no regularization images / 正則化画像が見つかりませんでした              train_util.py:1885
2024-12-04T15:03:12.470871 -                     INFO     [Dataset 0]                                                              config_util.py:570
                               batch_size: 1
                               resolution: (1024, 1024)
                               enable_bucket: True
                               network_multiplier: 1.0
                               min_bucket_reso: 512
                               max_bucket_reso: 1024
                               bucket_reso_steps: 64
                               bucket_no_upscale: False

                               [Subset 0 of Dataset 0]
                                 image_dir: "Z:\LoRA-Training\LoRA-Train"
                                 image_count: 46
                                 num_repeats: 1
                                 shuffle_caption: False
                                 keep_tokens: 0
                                 keep_tokens_separator: |||
                                 caption_separator: ,
                                 secondary_separator: None
                                 enable_wildcard: False
                                 caption_dropout_rate: 0.0
                                 caption_dropout_every_n_epoches: 0
                                 caption_tag_dropout_rate: 0.0
                                 caption_prefix: None
                                 caption_suffix: None
                                 color_aug: False
                                 flip_aug: False
                                 face_crop_aug_range: None
                                 random_crop: False
                                 token_warmup_min: 1,
                                 token_warmup_step: 0.0,
                                 alpha_mask: False,
                                 is_reg: False
                                 class_tokens: M4G3N
                                 caption_extension: .txt

2024-12-04T15:03:12.472373 -                     INFO     [Dataset 0]                                                              config_util.py:576
2024-12-04T15:03:12.473378 -                     INFO     loading image sizes.                                                      train_util.py:881
2024-12-04T15:03:12.473378 -
  0%|                                                                                | 0/46 [00:00<?, ?it/s]2024-12-04T15:03:12.473378 -
100%|██████████████████████████████████████████████████████████████████████████████████████████| 46/46 [00:00<?, ?it/s]2024-12-04T15:03:12.473378 -
2024-12-04T15:03:12.474364 -                     INFO     make buckets                                                              train_util.py:887
2024-12-04T15:03:12.475862 -                     INFO     number of images (including repeats) /                                    train_util.py:933
                             各bucketの画像枚数（繰り返し回数を含む）
2024-12-04T15:03:12.476367 -                     INFO     bucket 0: resolution (1024, 1024), count: 46                              train_util.py:938
2024-12-04T15:03:12.476867 -                     INFO     mean ar error (without repeats): 0.0                                      train_util.py:943
2024-12-04T15:03:12.480697 -                     INFO     preparing accelerator                                                  train_network.py:353
2024-12-04T15:03:12.518618 - accelerator device:2024-12-04T15:03:12.519119 -  2024-12-04T15:03:12.519119 - cuda2024-12-04T15:03:12.519119 -
2024-12-04T15:03:12.519619 -                     INFO     Checking the state dict: Diffusers or BFL, dev or schnell                  flux_utils.py:61
2024-12-04T15:03:12.523585 -                     INFO     Building Flux model dev from BFL checkpoint                               flux_utils.py:118
2024-12-04T15:03:12.618918 -                     INFO     Loading state dict from D:\AI\Art\ComfyUI\models\unet\Flux.1              flux_utils.py:135
                             D\flux1-dev-FP32.safetensors
2024-12-04T15:03:12.674059 -                     INFO     Loaded Flux: <All keys matched successfully>                              flux_utils.py:153
2024-12-04T15:03:12.676067 -                     INFO     prepare split model                                          flux_train_network_comfy.py:98
2024-12-04T15:03:12.761794 -                     INFO     load state dict for lower                                   flux_train_network_comfy.py:105
2024-12-04T15:03:12.781962 -                     INFO     load state dict for upper                                   flux_train_network_comfy.py:110
2024-12-04T15:03:12.806519 -                     INFO     prepare upper model                                         flux_train_network_comfy.py:113
2024-12-04T15:03:20.479284 - 2024-12-04 15:03:20 INFO     split model prepared                                        flux_train_network_comfy.py:134
2024-12-04T15:03:20.481269 -                     INFO     Building CLIP-L                                                           flux_utils.py:179
2024-12-04T15:03:20.509417 -                     INFO     Loading state dict from                                                   flux_utils.py:275
                             D:\AI\Art\ComfyUI\models\clip\FLUX\clip_l.safetensors
2024-12-04T15:03:20.515965 -                     INFO     Loaded CLIP-L: <All keys matched successfully>                            flux_utils.py:278
2024-12-04T15:03:20.573923 -                     INFO     Loading state dict from                                                   flux_utils.py:330
                             D:\AI\Art\ComfyUI\models\clip\t5\t5xxl_fp16.safetensors
2024-12-04T15:03:20.583535 -                     INFO     Loaded T5xxl: <All keys matched successfully>                             flux_utils.py:333
2024-12-04T15:03:20.584798 -                     INFO     Building AutoEncoder                                                      flux_utils.py:160
2024-12-04T15:03:20.604915 -                     INFO     Loading state dict from                                                   flux_utils.py:165
                             D:\AI\Art\ComfyUI\models\vae\FLUX1\FLUX_ae.safetensors
2024-12-04T15:03:20.613456 -                     INFO     Loaded AE: <All keys matched successfully>                                flux_utils.py:168
2024-12-04T15:03:20.613962 - import network module:2024-12-04T15:03:20.613962 -  2024-12-04T15:03:20.613962 - .networks.lora_flux2024-12-04T15:03:20.613962 -
2024-12-04T15:03:20.753386 -                     INFO     [Dataset 0]                                                              train_util.py:2357
2024-12-04T15:03:20.753889 -                     INFO     caching latents with caching strategy.                                    train_util.py:989
2024-12-04T15:03:20.754903 -                     INFO     checking cache validity...                                                train_util.py:999
2024-12-04T15:03:20.754903 -
  0%|                                                                                | 0/46 [00:00<?, ?it/s]2024-12-04T15:03:20.758935 -
100%|███████████████████████████████████████████████████████████████████████████████| 46/46 [00:00<00:00, 13024.03it/s]2024-12-04T15:03:20.758935 -
2024-12-04T15:03:20.759435 -                     INFO     no latents to cache                                                      train_util.py:1039
2024-12-04T15:03:21.042026 - 2024-12-04 15:03:21 INFO     move vae and unet to cpu to save memory                     flux_train_network_comfy.py:202
2024-12-04T15:03:21.217774 -                     INFO     move text encoders to gpu                                   flux_train_network_comfy.py:210
2024-12-04T15:03:25.552194 - 2024-12-04 15:03:25 INFO     [Dataset 0]                                                              train_util.py:2378
2024-12-04T15:03:25.552702 -                     INFO     caching Text Encoder outputs with caching strategy.                      train_util.py:1132
2024-12-04T15:03:25.553785 -                     INFO     checking cache validity...                                               train_util.py:1138
2024-12-04T15:03:25.553785 -
  0%|                                                                                | 0/46 [00:00<?, ?it/s]2024-12-04T15:03:25.559836 -
100%|████████████████████████████████████████████████████████████████████████████████| 46/46 [00:00<00:00, 7601.97it/s]2024-12-04T15:03:25.559836 -
2024-12-04T15:03:25.560837 -                     INFO     no Text Encoder outputs to cache                                         train_util.py:1160
2024-12-04T15:03:25.562838 -                     INFO     cache Text Encoder outputs for sample prompt: ["An old      flux_train_network_comfy.py:226
                             style 1800's library with old furniture, a large amount of
                             books on shelves with an assortment of artifacts on
                             shelves, some paintings on the wall, and a lit fireplace.
                             There is a large wall sized window looking out into a
                             beautiful garden with a mountain background. In the middle
                             of the room, a single red haired, green eyed woman in a
                             white wedding dress is looking toward the viewer and facing
                             to the right. Her arms are out crossed. She has a seductive
                             look on her face, her cleavage is showing."]
2024-12-04T15:03:25.564885 -                     INFO     cache Text Encoder outputs for prompt: An old style 1800's  flux_train_network_comfy.py:256
                             library with old furniture, a large amount of books on
                             shelves with an assortment of artifacts on shelves, some
                             paintings on the wall, and a lit fireplace. There is a
                             large wall sized window looking out into a beautiful garden
                             with a mountain background. In the middle of the room, a
                             single red haired, green eyed woman in a white wedding
                             dress is looking toward the viewer and facing to the right.
                             Her arms are out crossed. She has a seductive look on her
                             face, her cleavage is showing.
2024-12-04T15:03:25.805949 -                     INFO     cache Text Encoder outputs for prompt:                      flux_train_network_comfy.py:256
2024-12-04T15:03:25.919862 -                     INFO     move CLIP-L back to cpu                                     flux_train_network_comfy.py:267
2024-12-04T15:03:26.064677 - 2024-12-04 15:03:26 INFO     move t5XXL back to cpu                                      flux_train_network_comfy.py:269
2024-12-04T15:03:31.896834 - 2024-12-04 15:03:31 INFO     move vae and unet back to original device                   flux_train_network_comfy.py:274
2024-12-04T15:03:31.900839 -                     INFO     create LoRA network. base dim (rank): 16, alpha: 1.0                       lora_flux.py:491
2024-12-04T15:03:31.901847 -                     INFO     neuron dropout: p=None, rank dropout: p=None, module dropout: p=None       lora_flux.py:492
2024-12-04T15:03:31.901847 -                     INFO     train single blocks only                                                   lora_flux.py:502
2024-12-04T15:03:31.903860 -                     INFO     create LoRA for Text Encoder 1:                                            lora_flux.py:589
2024-12-04T15:03:31.935020 -                     INFO     create LoRA for Text Encoder 1: 72 modules.                                lora_flux.py:592
2024-12-04T15:03:32.282931 - 2024-12-04 15:03:32 INFO     create LoRA for FLUX single blocks: 114 modules.                           lora_flux.py:606
2024-12-04T15:03:32.284934 -                     INFO     enable LoRA for U-Net: 114 modules                                         lora_flux.py:755
2024-12-04T15:03:32.286441 - FLUX: Gradient checkpointing enabled.2024-12-04T15:03:32.286944 -
2024-12-04T15:03:32.286944 - prepare optimizer, data loader etc.2024-12-04T15:03:32.286944 -
2024-12-04T15:03:32.289954 -                     WARNING  learning rate is too low. If using D-Adaptation or Prodigy, set learning train_util.py:4527
                             rate around 1.0 /
                             学習率が低すぎるようです。D-AdaptationまたはProdigyの使用時は1.0前後の値
                             を指定してください: lr=9.999999999999999e-05
2024-12-04T15:03:32.291454 -                     WARNING  recommend option: lr=1.0 / 推奨は1.0です                                 train_util.py:4530
2024-12-04T15:03:32.293464 -                     INFO     use Prodigy optimizer | {}                                               train_util.py:4579
2024-12-04T15:03:37.791792 - running training2024-12-04T15:03:37.791792 -
2024-12-04T15:03:37.792297 -   num train images * repeats: 462024-12-04T15:03:37.792297 -
2024-12-04T15:03:37.792804 -   num reg images: 02024-12-04T15:03:37.792804 -
2024-12-04T15:03:37.792804 -   num batches per epoch: 462024-12-04T15:03:37.792804 -
2024-12-04T15:03:37.792804 -   num epochs: 552024-12-04T15:03:37.792804 -
2024-12-04T15:03:37.792804 -   batch size per device: 12024-12-04T15:03:37.793750 -
2024-12-04T15:03:37.793750 -   gradient accumulation steps: 12024-12-04T15:03:37.793750 -
2024-12-04T15:03:37.793750 -   total optimization steps: 25002024-12-04T15:03:37.793750 -
2024-12-04T15:03:56.284884 - 2024-12-04 15:03:56 INFO     text_encoder is not needed for training. deleting to save memory.     train_network.py:1044
2024-12-04T15:03:56.302694 -                     INFO     unet dtype: torch.bfloat16, device: cuda:0                            train_network.py:1061
2024-12-04T15:04:13.629335 -
Epoch 1/55 - steps:   0%|                                          | 1/2500 [00:17<11:53:50, 17.14s/it, avr_loss=0.341]2024-12-04T15:04:13.922547 - 2024-12-04 15:04:13 INFO                                                                          flux_train_utils.py:44
2024-12-04T15:04:13.923047 -                     INFO     generating sample images at step: 1                                  flux_train_utils.py:45
2024-12-04T15:04:13.926051 -                     INFO     prompt: An old style 1800's library with old furniture, a large     flux_train_utils.py:169
                             amount of books on shelves with an assortment of artifacts on
                             shelves, some paintings on the wall, and a lit fireplace. There is
                             a large wall sized window looking out into a beautiful garden with
                             a mountain background. In the middle of the room, a single red
                             haired, green eyed woman in a white wedding dress is looking toward
                             the viewer and facing to the right. Her arms are out crossed. She
                             has a seductive look on her face, her cleavage is showing.
2024-12-04T15:04:13.926051 -                     INFO     height: 1024                                                        flux_train_utils.py:171
2024-12-04T15:04:13.927556 -                     INFO     width: 1024                                                         flux_train_utils.py:172
2024-12-04T15:04:13.928558 -                     INFO     sample_steps: 20                                                    flux_train_utils.py:173
2024-12-04T15:04:13.930057 -                     INFO     scale: 3.5                                                          flux_train_utils.py:174
2024-12-04T15:04:13.931057 -                     INFO     seed: 133742069                                                     flux_train_utils.py:177
2024-12-04T15:04:13.931057 - Using cached text encoder outputs for prompt: An old style 1800's library with old furniture, a large amount of books on shelves with an assortment of artifacts on shelves, some paintings on the wall, and a lit fireplace. There is a large wall sized window looking out into a beautiful garden with a mountain background. In the middle of the room, a single red haired, green eyed woman in a white wedding dress is looking toward the viewer and facing to the right. Her arms are out crossed. She has a seductive look on her face, her cleavage is showing.2024-12-04T15:04:13.931057 -
2024-12-04T15:04:13.932058 -
2024-12-04T15:04:13.932058 -
  0%|                                                                                | 0/20 [00:00<?, ?it/s]2024-12-04T15:04:13.932557 - 2024-12-04T15:04:13.932557 -
  0%|                                                                                | 0/20 [00:00<?, ?it/s]2024-12-04T15:04:13.932557 -
2024-12-04T15:04:13.933057 -                     ERROR    !!! Exception during processing !!! 'FluxUpperLowerWrapper' object has no  execution.py:392
                             attribute 'prepare_block_swap_before_forward'
2024-12-04T15:04:13.937565 -                     ERROR    Traceback (most recent call last):                                         execution.py:393
                               File "D:\AI\Art\ComfyUI\execution.py", line 323, in execute
                                 output_data, output_ui, has_subgraph = get_output_data(obj,
                             input_data_all, execution_block_cb=execution_block_cb,
                             pre_execute_cb=pre_execute_cb)
                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                             ^
                               File "D:\AI\Art\ComfyUI\execution.py", line 198, in get_output_data
                                 return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION,
                             allow_interrupt=True, execution_block_cb=execution_block_cb,
                             pre_execute_cb=pre_execute_cb)
                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                             ^^^^^^^^^^^^^^^^^^
                               File "D:\AI\Art\ComfyUI\execution.py", line 169, in _map_node_over_list
                                 process_inputs(input_dict, i)
                               File "D:\AI\Art\ComfyUI\execution.py", line 158, in process_inputs
                                 results.append(getattr(obj, func)(**inputs))
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                               File "D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\nodes.py", line
                             1200, in validate
                                 image_tensors = network_trainer.sample_images(*params)
                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                               File
                             "D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\flux_train_network_com
                             fy.py", line 310, in sample_images
                                 image_tensors = flux_train_utils.sample_images(
                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                               File
                             "D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\flux_train_uti
                             ls.py", line 89, in sample_images
                                 image_tensor = sample_image_inference(
                                                ^^^^^^^^^^^^^^^^^^^^^^^
                               File
                             "D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\flux_train_uti
                             ls.py", line 223, in sample_image_inference
                                 x = denoise(flux, noise, img_ids, t5_out, txt_ids, l_pooled,
                             timesteps=timesteps, guidance=scale, t5_attn_mask=t5_attn_mask)
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                               File
                             "D:\AI\Art\ComfyUI\custom_nodes\ComfyUI-FluxTrainer\library\flux_train_uti
                             ls.py", line 310, in denoise
                                 model.prepare_block_swap_before_forward()
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                               File
                             "D:\AI\Art\ComfyUI\penv\Lib\site-packages\torch\nn\modules\module.py",
                             line 1931, in __getattr__
                                 raise AttributeError(
                             AttributeError: 'FluxUpperLowerWrapper' object has no attribute
                             'prepare_block_swap_before_forward'

2024-12-04T15:04:13.939068 -                     INFO     Prompt executed in 62.48 seconds                                                main.py:139

Attached Workflow
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.
Workflow too large. Please manually upload the workflow from local file system.

Additional Context
(Please add any additional context or steps to reproduce the error here)
`

I seem to get a similar error:
enable fp8 training for U-Net.                                                                                20:10:49 [0/1852]
unet_weight_dtype: torch.float8_e4m3fn
running training
  num train images * repeats: 23370
  num reg images: 0
  num batches per epoch: 11685
  num epochs: 1
  batch size per device: 2
  gradient accumulation steps: 1
  total optimization steps: 1000
2024-12-05 19:13:41 INFO     text_encoder is not needed for training. deleting to save memory.                                                   train_network.py:1044
                    INFO     unet dtype: torch.float8_e4m3fn, device: cuda:0                                                                     train_network.py:1061
Epoch 1/1 - steps:  25%|██████████████████████▎                                                                  | 250/1000 [57:06<2:51:19, 13.71s/it, avr_loss=0.355]GPU Temperature: 38

saving checkpoint: ../training/output/flux_lora_file_name_rank16_bf16-step00250.safetensors
2024-12-05 20:10:49 INFO                                                                                flux_train_utils.py:44
                    INFO     generating sample images at step: 250                                                                              flux_train_utils.py:45
                    INFO     prompt: portrait of a woman                                                                                flux_train_utils.py:169
                    INFO     height: 1024                                                                                flux_train_utils.py:171
                    INFO     width: 1024                                                                                flux_train_utils.py:172
                    INFO     sample_steps: 20                                                                                flux_train_utils.py:173
                    INFO     scale: 3.0                                                                                flux_train_utils.py:174
                    INFO     seed: 42                                                                                flux_train_utils.py:177
Using cached text encoder outputs for prompt: portrait of a woman
  0%|                                                                                | 0/20 [00:00<?, ?it/s]
                    ERROR    !!! Exception during processing !!! 'FluxUpperLowerWrapper' object has no attribute 'prepare_block_swap_before_forward'  execution.py:393
                    ERROR    Traceback (most recent call last):                                                                                execution.py:394
                               File "~/git/ComfyUI/execution.py", line 324, in execute
                                 output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb,
                             pre_execute_cb=pre_execute_cb)
                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                               File "~/git/ComfyUI/execution.py", line 199, in get_output_data
                                 return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True,
                             execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                               File "~/git/ComfyUI/execution.py", line 170, in _map_node_over_list
                                 process_inputs(input_dict, i)
                               File "~/git/ComfyUI/execution.py", line 159, in process_inputs
                                 results.append(getattr(obj, func)(**inputs))
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                               File "~/git/ComfyUI/custom_nodes/ComfyUI-FluxTrainer/nodes.py", line 1200, in validate
                                 image_tensors = network_trainer.sample_images(*params)
                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                               File "~/git/ComfyUI/custom_nodes/ComfyUI-FluxTrainer/flux_train_network_comfy.py", line 310, in
                             sample_images
                                 image_tensors = flux_train_utils.sample_images(
                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                               File "~/git/ComfyUI/custom_nodes/ComfyUI-FluxTrainer/library/flux_train_utils.py", line 89, in
                             sample_images
                                 image_tensor = sample_image_inference(
                                                ^^^^^^^^^^^^^^^^^^^^^^^
                               File "~/git/ComfyUI/custom_nodes/ComfyUI-FluxTrainer/library/flux_train_utils.py", line 223, in
                             sample_image_inference
                                 x = denoise(flux, noise, img_ids, t5_out, txt_ids, l_pooled, timesteps=timesteps, guidance=scale,
                             t5_attn_mask=t5_attn_mask)
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                             ^^^^^^^^
                               File "~/git/ComfyUI/custom_nodes/ComfyUI-FluxTrainer/library/flux_train_utils.py", line 310, in
                             denoise
                                 model.prepare_block_swap_before_forward()
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                               File "~/git/ComfyUI/venv3124cu124/lib/python3.12/site-packages/torch/nn/modules/module.py",
                             line 1729, in __getattr__
                                 raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
                             AttributeError: 'FluxUpperLowerWrapper' object has no attribute 'prepare_block_swap_before_forward'

                    INFO     Prompt executed in 5226.57 seconds                                                                                main.py:139

It is important to note that this happens on the "Flux Train Validate" node. You can successfully train a LoRA by over-simplifying the workflow, removing the validation notes. Something like this (5 epoch) just to show an example.

It seems that if you set split_mode to false you do not get to this code path

Not sure if this is less memory efficient, but to trigger the error much earlier you can apply this patch
diff --git a/flux_train_network_comfy.py b/flux_train_network_comfy.py
index 87638d1..ad4863e 100644
--- a/flux_train_network_comfy.py
+++ b/flux_train_network_comfy.py
@@ -68,6 +68,7 @@ class FluxNetworkTrainer(NetworkTrainer):

         if args.split_mode:
             model = self.prepare_split_model(model, args, weight_dtype, accelerator)
+            self.wrapper = self.prepare_wrapper(accelerator, model)

         clip_l = flux_utils.load_clip_l(args.clip_l, weight_dtype, "cpu", disable_mmap=args.disable_mmap_load_safetensors)
         clip_l.eval()
@@ -135,6 +136,34 @@ class FluxNetworkTrainer(NetworkTrainer):

         return flux_lower

+    def prepare_wrapper(self, accelerator, flux_lower):
+        class FluxUpperLowerWrapper(torch.nn.Module):
+            def __init__(self, flux_upper: flux_models.FluxUpper, flux_lower: flux_models.FluxLower, device: torch.device):
+                super().__init__()
+                self.flux_upper = flux_upper
+                self.flux_lower = flux_lower
+                self.target_device = device
+
+            def forward(self, img, img_ids, txt, txt_ids, timesteps, y, guidance=None, txt_attention_mask=None):
+                self.flux_lower.to("cpu")
+                clean_memory_on_device(self.target_device)
+                self.flux_upper.to(self.target_device)
+                img, txt, vec, pe = self.flux_upper(img, img_ids, txt, txt_ids, timesteps, y, guidance, txt_attention_mask)
+                self.flux_upper.to("cpu")
+                clean_memory_on_device(self.target_device)
+                self.flux_lower.to(self.target_device)
+                return self.flux_lower(img, txt, vec, pe, txt_attention_mask)
+
+        wrapper = FluxUpperLowerWrapper(self.flux_upper, flux_lower, accelerator.device)
+        if not getattr(wrapper, "prepare_block_swap_before_forward", None):
+            logger.warn ("not a  as opposed to class Flux(nn.Module) class?")
+            logger.warn(repr(wrapper))
+            logger.warn(wrapper.__class__)
+            raise ValueError("wrapper has no attribute prepare_block_swap_before_forward")
+
+        logger.info("wrapper prepared")
+        return wrapper
+
     def get_tokenize_strategy(self, args):
         _, is_schnell, _, _ = flux_utils.analyze_checkpoint_state(args.pretrained_model_name_or_path)

@@ -287,25 +316,9 @@ class FluxNetworkTrainer(NetworkTrainer):
             accelerator, args, epoch, global_step, flux, ae, text_encoders, sample_prompts_te_outputs, validation_settings)
             clean_memory_on_device(accelerator.device)
             return image_tensors
-
-        class FluxUpperLowerWrapper(torch.nn.Module):
-            def __init__(self, flux_upper: flux_models.FluxUpper, flux_lower: flux_models.FluxLower, device: torch.device):
-                super().__init__()
-                self.flux_upper = flux_upper
-                self.flux_lower = flux_lower
-                self.target_device = device
-
-            def forward(self, img, img_ids, txt, txt_ids, timesteps, y, guidance=None, txt_attention_mask=None):
-                self.flux_lower.to("cpu")
-                clean_memory_on_device(self.target_device)
-                self.flux_upper.to(self.target_device)
-                img, txt, vec, pe = self.flux_upper(img, img_ids, txt, txt_ids, timesteps, y, guidance, txt_attention_mask)
-                self.flux_upper.to("cpu")
-                clean_memory_on_device(self.target_device)
-                self.flux_lower.to(self.target_device)
-                return self.flux_lower(img, txt, vec, pe, txt_attention_mask)

-        wrapper = FluxUpperLowerWrapper(self.flux_upper, flux, accelerator.device)
+        wrapper = self.wrapper
+        wrapper.flux_upper.training
         clean_memory_on_device(accelerator.device)
         image_tensors = flux_train_utils.sample_images(
             accelerator, args, epoch, global_step, wrapper, ae, text_encoders, sample_prompts_te_outputs, validation_settings
@@ -511,4 +524,4 @@ if __name__ == "__main__":
     args = train_util.read_config_from_file(args, parser)

     trainer = FluxNetworkTrainer()
-    trainer.train(args)
\ No newline at end of file
+    trainer.train(args)

Possibly the fix is just
diff --git a/library/flux_train_utils.py b/library/flux_train_utils.py
index 6f6c1f2..8a4b461 100644
--- a/library/flux_train_utils.py
+++ b/library/flux_train_utils.py
@@ -307,7 +307,8 @@ def denoise(
     comfy_pbar = ProgressBar(total=len(timesteps))
     for t_curr, t_prev in zip(tqdm(timesteps[:-1]), timesteps[1:]):
         t_vec = torch.full((img.shape[0],), t_curr, dtype=img.dtype, device=img.device)
-        model.prepare_block_swap_before_forward()
+        if hasattr(model, "prepare_block_swap_before_forward"):
+            model.prepare_block_swap_before_forward()
         pred = model(
             img=img,
             img_ids=img_ids,
@@ -321,7 +322,8 @@ def denoise(

         img = img + (t_prev - t_curr) * pred
         comfy_pbar.update(1)
-    model.prepare_block_swap_before_forward()
+    if hasattr(model, "prepare_block_swap_before_forward"):
+        model.prepare_block_swap_before_forward()
     return img

 # endregion
@@ -611,4 +613,4 @@ def add_flux_train_arguments(parser: argparse.ArgumentParser):
         type=float,
         default=3.0,
         help="Discrete flow shift for the Euler Discrete Scheduler, default is 3.0. / Euler Discrete Schedulerの離散フローシフト、デフォルトは3.0。",
-    )
\ No newline at end of file
+    )

Hello, i have tried your fix but a lot of node stop working, i have update  all node to the last version.
The error is
Missing Node Types
When loading the graph, the following node types were not found
and a lot of node are red


Using git bash in VS Code integrated terminal, interactive.singleKey setting does not work

Does this issue occur when all extensions are disabled?: Yes

Version: 1.69.2 (system setup)
Commit: 3b889b090b5ad5793f524b5d1d39fda662b96a2a
Date: 2022-07-18T16:12:52.460Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19044

Steps to Reproduce:

Open a "Git Bash" terminal inside VS Code:

Run git config --global interactive.singleKey true
cd into a valid git repository
Make some local modifications to one or more files
Run git add -p
When prompted to stage a single hunk, press y (Yes). Because interactive.singleKey was set, this should immediately accept your input and proceed to the next hunk. However, it does not.  This is the defect.

When I run the above steps in a dedicated Git Bash terminal (outside of VS Code), the singleKey setting is respected and the git add -p behavior is as expected.

I cannot reproduce this on:
Version: 1.74.0-insider (user setup)
Commit: 5235c6bb189b60b01b1f49062f4ffa42384f8c91
Date: 2022-12-05T10:17:57.998Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: Yes
I believe this is fixed in a later version of conpty which is shipped with Windows updates.

@Tyriar How can I check that I have the same version of conpty that you do? And what version did you test with? I'll be honest, I have no idea what conpty is.

@rcdailey it's shipped with Windows, I'm on 10.0.22621, you're on 10.0.19044

@rcdailey I'm on the Insiders channel so I get much earlier updates

@Tyriar Do you know when that version will hit general release channels? I need some way to remember to re-test this and verify it's fixed as you assert.
Thanks.


[Feature Request] Perfect Scraping from a Bar-Assistant / SaltRim shared cocktail

Bar Assistant setup A shares a cocktail. The share URL is generated.
Bar Assistant setup B provides the shared URL to the cocktail scraper. Will the cocktail scraped perform a perfect scrape? Import Description, Photo, Ingredients, Instructions, Garnish, Tags, etc?
If not, can it? It would be a nice feature if your cocktail scraper tool 100% supports the shared URLs bar-assistant can generate.

Yeah, this is planned in https://github.com/karlomikus/vue-salt-rim/issues/9 for salt-rim
And I'm in process on refactoring how cocktails are imported so it will also come probably soon


Option: matchAnyQueryToken (default false)

Bloodhound's tokenizer functions are a really powerful way to tune the search.  Unfortunately this flexibility ends at SearchIndex.prototype.search.  Currently datums must match ALL query-tokens (with no option to match ANY query-token).  This pull request adds the option:

matchAnyQueryToken - By default a search result must match ALL query-tokens.
Instead, this option returns results that match ANY query-tokens.
Defaults to false

Inspired by Elasticsearch's MUST and SHOULD, matching ANY query-token opens up the possibility for more fuzzy search strategies.  For more details see the tests and the following example:
var index = new SearchIndex({
  datumTokenizer: Bloodhound.tokenizers.obj.whitespace('value'),
  queryTokenizer: Bloodhound.tokenizers.whitespace,
  matchAnyQueryToken: true,
});

index.add({ value: 'food bar' });
index.search('fod bar'); // return { value: 'food bar' }

Note: Ideally this option could change from search-to-search.  But I didn't want to clutter the Bloodhound#search api.

@chip-miller could you please re-submit this PR to github:corejavascript/typeahead.js. This project pretty much has been abandoned, and we continue now on a new fork. For more information please see #1320

@CoreSystemDevelopment  sure... thanks for following up

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


maybe add advanced features from xeus-javascript

All nice features of xeus javascript are mostly implemented on the javascript side, not on the C++ side.
Ie here.
It would be easy to import this file via jsdelivr, ie here and use this also in this javascript-kernel.
This way we might have all the nice features almost for free.
It would still need some changes to in https://github.com/jupyter-xeus/xeus-javascript/blob/main/src/post.js, but should not be overcomplicated.
On the one hand this would make this kernel actual usable, on the other hand not sure if its worth it

Thanks @DerThorsten.
I guess we can. For now the main motivation for moving this javascript-kernel to its own repo was to help simplify the main jupyterlite repo so it can be removed from there: https://github.com/jupyterlite/jupyterlite/pull/1313
But still keep a "copy" of the source if someone is interested, before eventually archive it if xeus-javascript should be the place to continue more active development for a JavaScript kernel.
But yeah if the changes are simple it could be interesting to do it, if someone wants to give it a try.

Where did the JS kernel go? xeus-javascript would be great too.
https://github.com/winnekes/itypescript
https://github.com/n-riesco/jp-babel#babelrc

By default, jp-babel is set to use the preset babel-preset-env. Users can customise their .babelrc.

[ ] ENH: LSP Language Server Protocol support for autocomplete, docstrings

https://github.com/jupyter-lsp/jupyterlab-lsp
/? lsp wasm

https://github.com/wasm-lsp
https://github.com/jupyterlite/jupyterlite-lsp

https://github.com/jupyter-lsp/jupyterlab-lsp/tree/main/python_packages/jupyter_lsp#language-servers ::

jupyter-lsp does not come with any Language Servers! Learn more about installing and configuring language servers

https://jupyterlab-lsp.readthedocs.io/en/latest/Language Servers.html

https://github.com/typescript-language-server/typescript-language-server


Personal fork update to compile CUDA 12

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

Thanks Lane! 🙏
Added a few suggestions above

Thanks for the suggestions, @jakirkham! I'm pushing those suggested changes now - let's see if it makes the tests pass...

@conda-forge-admin , please re-render

Turns out re-rendering ran into issues with conda_build_config.yaml. So switching to conda-forge.yml for the CentOS 7 setting fixed that as well

Thanks Lane! 🙏
Looks like it passes 🥳

Fantastic! Let me try the merge...


Access Key is saved in edit for EKS with session token

Version - 2.2 master 11/13
Steps to reproduce (least amount of steps as possible):

Create a EKS cluster with session token
Edit EKS cluster

Result:  the Access Key is being automatically filled out.  The Key should not be filled out as all the keys are temporary and will probably need to be replaced.  We fixed this on delete but not on edit.

Version - 2.2 master (11/27/18)
Confirmed fixed. I created an EKS cluster with session token, when I edited it the Access Key, Secret Key, and Session Token were all blank. Further, I entered new credentials in these fields and validated POST request headers sent to amazon and our PUT to rancher server to confirm the credentials were there upon form submission.


[zlib-ng] Update to 2.0.6

Describe the pull request

What does your PR fix?
Updates zlib-ng to 2.0.6

Which triplets are supported/not supported? Have you updated the CI baseline?
As before, Yes

Does your PR follow the maintainer guide?

Yes

Thanks for the update!


Security

¿Is it possible to add basic security check to this webserver? I mean, like a popup when trying to access a certain URL.

 So if you are implementing a rest api via pico Web, then create a login endpoint which takes a username and password and returns a token. Your password protected url would then check that the token is valid and included in the request header. For generating a token there are various ways of doing this, including JWT or even just a random hash with a time limit validity that would have to be stored on the server.
I think if you started adding things like this then picoweb would start to get bloated.... I suppose this kind of functionality could be added in as a plug in to picoweb?


return current status?

First of all, I spent two hours (give or take) looking for this exact tool. So a HUGE thank you for that. I do have one suggestion, though. As the title states, it would be nice if when you simply run the app without an argument or flag that it return the current state of your display. A simple return of HDR or SDR would suffice. This will allow us nerds to use the information in our automations. Thanks again!

Hi Deralilius, it's great to hear that someone else is using this tool!
I can add the requested functionality, but I don't want to change the default behavior. Instead, I can add a new 'status' subcommand. Will it work for you?
Example:

HdrSwitcher.exe status
HDR

oh of course, that's perfect, and thank you!

I've added the command, feel free to test it: HdrSwitcher.zip
I'll update the main branch later.
I also discovered that some antiviruses may flag my binary as suspicious, so please be cautious :). To avoid any potential risks, you can compile the new version from the  status_cmd branch.
https://www.virustotal.com/gui/file/d330d8cd71619b62f585be0d12e85793cfd48aac0ea805b0a04cf3c52c76398b/detection


Fix fourth-wall URL.

The fourth-wall URL requires a trailing '/'.  Without this, the page
returns a 404 (note that http://alphagov.github.io/fourth-wall/?foo=bar
works, whereas http://alphagov.github.io/fourth-wall?foo=bar 404s).
I suspect that github pages may have changed this behaviour recently. If
you use the URL without the trailing / with no query params, it gets
redirected, but not when query params are included.

LGTM


Support for CUDA version 11.7?

Thank you for your excellent work!
But I wonder whether there will be environments for GPUs with CUDA version 11.7(e.g. RTX 3090)? I wanted to explore further with your great work.
Thank you very much.

We do not provide conda/docker environment for specific CUDA version.
But you can pip install according to our requirments.txt. We think this process that may be not hard for u

We do not provide conda/docker environment for specific CUDA version. But you can pip install according to our requirments.txt. We think this process that may be not hard for u

Thank you, I will try.


add flake8 to travis ci

Fixes #43

Coverage remained the same at 53.405% when pulling 76ac1121914b4c20d9a34a9e618199bb8e1c8490 on suprithIUB:travis_flake8 into 7247f4b4ca8921570f8f0759ade6037d14e16ed8 on Netflix:master.

Looks good, but now we're not passing :).  You think it makes sense to fix in this PR or another?

Please check now @mcpeak

Hmm, if I run the flake8 command manually though it gives me a bunch of errors.  Not sure how it's passing...

Did you work with the latest commit of mine? Maybe you are missing setup.cfg file?

Oh, you're right.  It's finding issues in artifacts on my side.  👍  Nice work!