mirror of
https://github.com/Comfy-Org/desktop.git
synced 2026-11-04 23:47:43 +00:00
[PR #1064] [CLOSED] Add support for importing model files #1316
Labels
No labels
area: desktop-app
Bounty
bug
bug-cop:answered
bug-cop:response-received
component: installer
component: preload
custom node
dependencies
Design
documentation
duplicate
enhancement
expected
frontend
good first issue
installation
Low-Priority
performance
Planned
platform: cross-platform
platform: windows
Potential Bug
Potential Bug
pull-request
question
refactor
Release
stale
User Support
V1
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/desktop#1316
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/desktop/pull/1064
Author: @pythongosssss
Created: 3/16/2025
Status: ❌ Closed
Base:
main← Head:model_file_import📝 Commits (5)
cc5baedAdd support for importing model files27d6b7dFormat06f6b7aSimplify import by using config basepath8a3e64cformattingc8635b6format📊 Changes
6 files changed (+79 additions, -2 deletions)
View changed files
📝
package.json(+2 -0)📝
src/constants.ts(+1 -0)➕
src/handlers/importModelHandlers.ts(+46 -0)📝
src/main-process/comfyDesktopApp.ts(+2 -0)📝
src/preload.ts(+18 -1)📝
yarn.lock(+10 -1)📄 Description
Adds support for importing model files by dragging them into the app

I'm not exactly sure the of the use of
download_model_basefor the config file, however it seems like it needs to be added to the base url for the models folder?I'm prioritising sections where the type of model being imported is defined, then whatever the default one is. Not sure if it would be better to just always use the default directory.
Frontend PR: https://github.com/Comfy-Org/ComfyUI_frontend/pull/3084
┆Issue is synchronized with this Notion page by Unito
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.