mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Correct issues caused by merging main
This commit is contained in:
parent
c16da75ac7
commit
861c0fe76b
@ -583,7 +583,10 @@ class IAIOnnxRuntimeModel:
|
||||
providers.append(self.provider)
|
||||
else:
|
||||
providers = get_available_providers()
|
||||
try:
|
||||
self.session = InferenceSession(self.proto.SerializeToString(), providers=providers, sess_options=sess)
|
||||
except Exception as e:
|
||||
raise e
|
||||
#self.session = InferenceSession("tmp.onnx", providers=[self.provider], sess_options=self.sess_options)
|
||||
# self.io_binding = self.session.io_binding()
|
||||
|
||||
|
169
invokeai/frontend/web/dist/assets/App-10c521da.js
vendored
Normal file
169
invokeai/frontend/web/dist/assets/App-10c521da.js
vendored
Normal file
File diff suppressed because one or more lines are too long
169
invokeai/frontend/web/dist/assets/App-3ab46138.js
vendored
169
invokeai/frontend/web/dist/assets/App-3ab46138.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
invokeai/frontend/web/dist/assets/MantineProvider-97b2a7de.js
vendored
Normal file
1
invokeai/frontend/web/dist/assets/MantineProvider-97b2a7de.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
302
invokeai/frontend/web/dist/assets/ThemeLocaleProvider-e6f4b86d.js
vendored
Normal file
302
invokeai/frontend/web/dist/assets/ThemeLocaleProvider-e6f4b86d.js
vendored
Normal file
File diff suppressed because one or more lines are too long
125
invokeai/frontend/web/dist/assets/index-9e78a66d.js
vendored
125
invokeai/frontend/web/dist/assets/index-9e78a66d.js
vendored
File diff suppressed because one or more lines are too long
125
invokeai/frontend/web/dist/assets/index-efb4c895.js
vendored
Normal file
125
invokeai/frontend/web/dist/assets/index-efb4c895.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
invokeai/frontend/web/dist/index.html
vendored
2
invokeai/frontend/web/dist/index.html
vendored
@ -12,7 +12,7 @@
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
<script type="module" crossorigin src="./assets/index-e45bf5a6.js"></script>
|
||||
<script type="module" crossorigin src="./assets/index-efb4c895.js"></script>
|
||||
</head>
|
||||
|
||||
<body dir="ltr">
|
||||
|
1
invokeai/frontend/web/dist/locales/en.json
vendored
1
invokeai/frontend/web/dist/locales/en.json
vendored
@ -23,6 +23,7 @@
|
||||
"menu": "Menu"
|
||||
},
|
||||
"common": {
|
||||
"communityLabel": "Community",
|
||||
"hotkeysLabel": "Hotkeys",
|
||||
"darkMode": "Dark Mode",
|
||||
"lightMode": "Light Mode",
|
||||
|
@ -8,7 +8,7 @@ export const modelIdToMainModelParam = (
|
||||
mainModelId: string
|
||||
): MainModelParam | undefined => {
|
||||
const log = logger('models');
|
||||
const [base_model, _model_type, model_name] = mainModelId.split('/');
|
||||
const [base_model, model_type, model_name] = mainModelId.split('/');
|
||||
|
||||
const result = zMainModel.safeParse({
|
||||
base_model,
|
||||
|
@ -153,7 +153,15 @@ const createModelEntities = <T extends AnyModelConfigEntity>(
|
||||
export const modelsApi = api.injectEndpoints({
|
||||
endpoints: (build) => ({
|
||||
getOnnxModels: build.query<EntityState<OnnxModelConfigEntity>, void>({
|
||||
query: () => ({ url: 'models/', params: { model_type: 'onnx' } }),
|
||||
query: (base_models) => {
|
||||
const params = {
|
||||
model_type: 'onnx',
|
||||
base_models,
|
||||
};
|
||||
|
||||
const query = queryString.stringify(params, { arrayFormat: 'none' });
|
||||
return `models/?${query}`;
|
||||
},
|
||||
providesTags: (result, error, arg) => {
|
||||
const tags: ApiFullTagDescription[] = [
|
||||
{ id: 'OnnxModel', type: LIST_TAG },
|
||||
|
Loading…
Reference in New Issue
Block a user