Skip to content

Commit 5d88c47

Browse files
committed
update styles
1 parent 81edd4f commit 5d88c47

File tree

5 files changed

+20
-12
lines changed

5 files changed

+20
-12
lines changed

app/controllers/basil_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def stats
317317
BasilService.enabled_styles_for('Character'),
318318
BasilService.enabled_styles_for('Location'),
319319
# Also include anything we specifically want to track for now :)
320-
'painting2', 'painting3', 'anime'
320+
#'painting2', 'painting3', 'anime'
321321
].flatten.compact.uniq
322322

323323
@total_score_per_style = BasilCommission.with_deleted

app/jobs/generate_basil_image_job.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,14 @@ def perform(basil_commission_id)
3737
steps: 20,
3838
# Add other parameters like negative_prompt, width, height, sampler_index, etc. as needed
3939
# Example:
40-
negative_prompt: "nudity, nsfw, nude, xxx, low quality, blurry, worst quality, diptych, triptych, multiple images, multiple subjects",
40+
negative_prompt: "nudity, nsfw, nude, xxx, low quality, blurry, worst quality, diptych, triptych, multiple images, multiple subjects, signed, signature, watermark, watermarked",
4141
width: 512,
4242
height: 512,
43-
sd_model_checkpoint: "openxl"
43+
override_settings: {
44+
sd_model_checkpoint: (commission.style == "anime") ? "openxl" : "photorealism.safetensors",
45+
},
46+
sampler_index: "DPM++ 3M SDE",
47+
cfg_scale: 4
4448
}.to_json
4549

4650
begin

app/services/basil_service.rb

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,30 @@ class BasilService < Service
2727
def self.enabled_styles_for(page_type)
2828
case page_type
2929
when 'Character'
30-
%w(realistic painting sketch digital abstract watercolor)
30+
%w(photograph watercolor pencil_sketch smiling villain horror)
3131
when 'Location'
32-
%w(realistic painting sketch)
32+
%w(painting watercolor sketch)
3333
when 'Item'
3434
%w(realistic painting sketch)
3535
when 'Building'
36-
%w(realistic sketch)
36+
%w(photograph sketch)
3737
when 'Town'
38-
%w(realistic map)
38+
%w(photograph map)
3939
when 'Creature'
40-
%w(realistic fantasy)
40+
%w(photograph fantasy)
4141
else
42-
%w(realistic)
42+
%w(photograph)
4343
end
4444
end
4545

4646
def self.experimental_styles_for(page_type)
4747
case page_type
4848
when 'Character'
49-
%w(realistic2 realistic3 painting2 painting3 horror anime)
49+
%w(anime fantasy scifi historical abstract caricature)
50+
when 'Location'
51+
%w(aerial_photograph anime)
52+
when 'Item'
53+
%w(schematic anime hand_made)
5054
else
5155
[]
5256
end

app/views/basil/content.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function commission_basil(style) {
117117
<% BasilService.experimental_styles_for(@content.page_type).each do |style| %>
118118
<div class="col s12 m6 l4">
119119
<%= link_to "javascript:commission_basil('#{style}')" do %>
120-
<div class="hoverable card-panel purple white-text">
120+
<div class="hoverable card-panel purple lighten-2 white-text">
121121
<%= style.humanize %>
122122
<i class="material-icons right">chevron_down</i>
123123
</div>

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
# Landing pages
2424
get '/jam', to: 'basil#jam', as: :basil_jam
25-
post '/jam', to: 'basil#queue_jam_job', as: :basil_jam_submit
25+
#post '/jam', to: 'basil#queue_jam_job', as: :basil_jam_submit
2626

2727
# Standard generation flow for users
2828
get '/', to: 'basil#index', as: :basil

0 commit comments

Comments
 (0)