clean up patch and following upstream

This commit is contained in:
Dr.Lt.Data 2023-03-26 21:22:41 +09:00
parent 06b77605e5
commit e61be509c4
4 changed files with 4 additions and 13 deletions

View File

@ -9,8 +9,8 @@ import folder_paths
class UpscaleModelLoader:
@classmethod
def INPUT_TYPES(s):
return {"required": { "model_name": (folder_paths.get_filename_list("upscale_models"), )},
}
return {"required": { "model_name": (folder_paths.get_filename_list("upscale_models"), ),
}}
RETURN_TYPES = ("UPSCALE_MODEL",)
FUNCTION = "load_model"

View File

@ -770,7 +770,7 @@ class SaveImage:
full_output_folder = os.path.join(self.output_dir, subfolder)
if os.path.commonpath((self.output_dir, os.path.realpath(full_output_folder))) != self.output_dir:
if os.path.commonpath((self.output_dir, os.path.abspath(full_output_folder))) != self.output_dir:
print("Saving image outside the output folder is not allowed.")
return {}

View File

@ -124,15 +124,6 @@ class ComfyApi extends EventTarget {
return await resp.json();
}
/**
* Loads file list
* @returns An array of file list
*/
async getFiles(kind) {
const resp = await fetch("/getfiles/"+kind, { cache: "no-store" });
return await resp.json();
}
/**
*
* @param {number} number The index at which to queue the prompt, passing -1 will insert the prompt at the front of the queue

View File

@ -590,7 +590,7 @@ class ComfyApp {
const nodeData = defs[nodeId];
const node = Object.assign(
function ComfyNode() {
const inputs = Object.assign(nodeData["input"]["required"], nodeData["input"]["widget"]);
const inputs = nodeData["input"]["required"];
const config = { minWidth: 1, minHeight: 1 };
for (const inputName in inputs) {
const inputData = inputs[inputName];