hvoss-techfak commited on
Commit
2b5ee6f
·
1 Parent(s): f896384

added three more colors to the example csv

Browse files
Files changed (2) hide show
  1. app.py +7 -7
  2. default_materials.csv +6 -3
app.py CHANGED
@@ -287,11 +287,11 @@ def get_script_args_info(exclude_args=None):
287
 
288
  # Initial filament data
289
  initial_filament_data = {
290
- "Brand": ["Generic", "Generic", "Generic"],
291
- " Name": ["PLA Black", "PLA Grey", "PLA White"],
292
- " TD": [1.0, 1.0, 1.0],
293
- " Color": ["#000000", "#808080", "#FFFFFF"],
294
- " Owned": ["true", "true", "true"], # ← add
295
  }
296
  initial_df = pd.DataFrame(initial_filament_data)
297
 
@@ -560,13 +560,13 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
560
  accordion_params_ordered_names = []
561
 
562
  gr.Markdown(
563
- 'Here you can upload an image, adjust the parameters and run the Autoforge process. The filaments from the "Filament Management" are automatically used. After the process completes you can download the results at the bottom of the page.'
564
  )
565
  gr.Markdown(
566
  'If you want to limit the number of colors or color swaps you can find the option under the "Autoforge Parameters" as "pruning_max_colors" and "pruning_max_swaps"'
567
  )
568
  gr.Markdown(
569
- 'Please note that huggingface enforces a maximum time of one minute per execution. Depending on your configuration (especially iteration count) it is possible to exceed this time limit. In that case you will see a "GPU Task aborted" error.'
570
  'If you need more time, take a look at the [Autoforge Github Page](https://github.com/hvoss-techfak/AutoForge) to see how you can run the program locally.'
571
  )
572
 
 
287
 
288
  # Initial filament data
289
  initial_filament_data = {
290
+ "Brand": ["Generic", "Generic", "Generic","Generic","Generic","Generic",],
291
+ " Name": ["PLA Black", "PLA Grey", "PLA White","PLA Red","PLA Green","PLA Blue"],
292
+ " TD": [5.0, 5.0, 5.0, 5.0, 5.0, 5.0],
293
+ " Color": ["#000000", "#808080", "#FFFFFF","#FF0000","#00FF00","#0000FF"],
294
+ " Owned": ["true", "true", "true", "true", "true", "true"], # ← add
295
  }
296
  initial_df = pd.DataFrame(initial_filament_data)
297
 
 
560
  accordion_params_ordered_names = []
561
 
562
  gr.Markdown(
563
+ 'Here you can upload an image, adjust the parameters and run the Autoforge process. The filaments from the "Filament Management" Tab are automatically used. After the process completes you can download the results at the bottom of the page.'
564
  )
565
  gr.Markdown(
566
  'If you want to limit the number of colors or color swaps you can find the option under the "Autoforge Parameters" as "pruning_max_colors" and "pruning_max_swaps"'
567
  )
568
  gr.Markdown(
569
+ 'Please note that huggingface enforces a maximum execution time of one minute. Depending on your configuration (especially iteration count) it is possible to exceed this time limit. In that case you will see a "GPU Task aborted" error.'
570
  'If you need more time, take a look at the [Autoforge Github Page](https://github.com/hvoss-techfak/AutoForge) to see how you can run the program locally.'
571
  )
572
 
default_materials.csv CHANGED
@@ -1,4 +1,7 @@
1
  Brand, Name, TD, Color, Owned
2
- Generic,PLA Black,1.0,#000000,true
3
- Generic,PLA Grey,1.0,#808080,true
4
- Generic,PLA White,1.0,#FFFFFF,true
 
 
 
 
1
  Brand, Name, TD, Color, Owned
2
+ Generic,PLA Black,5.0,#000000,true
3
+ Generic,PLA Grey,5.0,#808080,true
4
+ Generic,PLA White,5.0,#FFFFFF,true
5
+ Generic,PLA Red,5.0,#FF0000,true
6
+ Generic,PLA Green,5.0,#00FF00,true
7
+ Generic,PLA Blue,5.0,#0000FF,true