Skip to content

Commit

Permalink
#277 [Feature] Support more Lora formats
Browse files Browse the repository at this point in the history
[功能] 支持更多的Lora格式
  • Loading branch information
Physton committed Dec 1, 2023
1 parent 6c84d7e commit 167f4d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/src/utils/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import globals from "../../globals";
import tinycolor from "tinycolor2";

export default {
loraRegex: /^\<lora:\s*([^\:]+)\s*(:)?\s*(\-?[0-9\.]+)?\>$/,
lycoRegex: /^\<lyco:\s*([^\:]+)\s*(:)?\s*(\-?[0-9\.]+)?\>$/,
// loraRegex: /^\<lora:\s*([^\:]+)\s*(:)?\s*(\-?[0-9\.]+)?\>$/,
loraRegex: /^\<lora:\s*([^\:]+)\s*(:)?\s*(\-?[0-9\.]+)?([^\>]+)?\>$/,
// lycoRegex: /^\<lyco:\s*([^\:]+)\s*(:)?\s*(\-?[0-9\.]+)?\>$/,
lycoRegex: /^\<lyco:\s*([^\:]+)\s*(:)?\s*(\-?[0-9\.]+)?([^\>]+)?\>$/,
weightNumRegex: /(.*):(\-?[0-9\.]+)/,
weightNumRegexEN: /(.*):\s*(\-?[0-9\.]+)/,
weightNumRegexCN: /(.*):\s*(\-?[0-9\.]+)/,
Expand Down

0 comments on commit 167f4d5

Please sign in to comment.