Skip to content

Commit

Permalink
model select on front screen
Browse files Browse the repository at this point in the history
  • Loading branch information
divamgupta committed Feb 13, 2023
1 parent 438d6a6 commit cc34ec0
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 11 deletions.
8 changes: 7 additions & 1 deletion backends/model_converter/fake_torch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import numpy as np
from math import prod

try:
from math import prod
except:
from functools import reduce
def prod(iterable):
return reduce(operator.mul, iterable, 1)
import zipfile
import pickle
import sys
Expand Down
4 changes: 2 additions & 2 deletions backends/stable_diffusion_tf/environment_m1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies:
- google-auth=1.35.0=pyh6c4a22f_0
- google-auth-oauthlib=0.4.6=pyhd8ed1ab_0
- google-pasta=0.2.0=pyh8c360ce_0
- grpcio=1.49.1=py39h13431ec_0
- grpcio=1.49.1
- h5py=3.1.0=nompi_py39h99babb8_100
- hdf5=1.10.6=nompi_h0fc092c_1114
- idna=3.4=pyhd8ed1ab_0
Expand All @@ -53,7 +53,7 @@ dependencies:
- libffi=3.4.2=h3422bc3_5
- libgfortran=5.0.0=11_3_0_hd922786_25
- libgfortran5=11.3.0=hdaf2cc0_25
- libgrpc=1.49.1=h503f348_0
- libgrpc=1.49.1
- liblapack=3.9.0=16_osxarm64_openblas
- libllvm11=11.1.0=hfa12f05_5
- libnghttp2=1.47.0=h232270b_1
Expand Down
4 changes: 2 additions & 2 deletions electron_app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion electron_app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "DiffusionBee",
"version": "1.5.1",
"version": "1.5.2",
"build_number": "0016",
"website": "https://diffusionbee.com",
"description": "Diffusion Bee - Stable Diffusion App.",
Expand Down
24 changes: 19 additions & 5 deletions electron_app/src/components/ImgGenerate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,8 @@

<div class="l_button button_medium button_colored" style="float:right ; " @click="generate_from_prompt">Generate</div>

<!-- <div style="float:right;" >
<div class="l_button" @click="is_adv_options = !is_adv_options">Advanced options</div>
</div> -->

<SDOptionsDropdown :options_model_values="this_object" :elements_hidden="[ 'inp_img_strength' ]"> </SDOptionsDropdown>


<div style="float:right; margin-top: -5px; " >
<b-dropdown id="dropdown-form" variant="link" ref="dropdown" toggle-class="text-decoration-none" no-caret >

Expand Down Expand Up @@ -58,6 +53,25 @@
</b-dropdown>
</div>

<div style="float:right; margin-top: -5px; " >
<b-dropdown id="dropdown-form" variant="link" ref="dropdown" toggle-class="text-decoration-none" no-caret >
<template #button-content>
<div class="l_button" style="margin-right: -20px;" >Model : <span style="font-weight:">{{selected_model.substring(0, 10)}} <font-awesome-icon icon="chevron-down" /> </span></div>
</template>
<b-dropdown-item v-for="option in ['Default'].concat(Object.keys(app_state.app_data.custom_models))" :key="option" @click="selected_model = option" >
{{option}}
</b-dropdown-item>
<hr style="opacity:0.1">
<b-dropdown-item @click="$parent.$parent.$refs.app_frame.selectTab('settings')">
Add New Model
</b-dropdown-item>
<!-- <b-dropdown-item @click="$parent.$parent.$refs.app_frame.selectTab('settings')">
Browse Models
</b-dropdown-item> -->
</b-dropdown>

</div>

<div class="l_button button_medium" style="float:right ;margin-right: -10px; margin-top: -1px;" @click="open_arthub">Prompt Ideas</div>


Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cc34ec0

Please sign in to comment.