Skip to content

Commit

Permalink
Update missing images
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbusysky committed Oct 27, 2023
1 parent 270952c commit b84004d
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions Scenario/Editor/Images/Images.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using Unity.Plastic.Newtonsoft.Json;
using UnityEditor;
using UnityEngine;

Expand Down
1 change: 1 addition & 0 deletions Scenario/Editor/LayerEditor/ContextMenuActions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using Unity.Plastic.Newtonsoft.Json;
using UnityEditor;
using UnityEngine;

Expand Down
1 change: 1 addition & 0 deletions Scenario/Editor/Models/Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Unity.Plastic.Newtonsoft.Json;
using UnityEditor;
using UnityEngine;

Expand Down
1 change: 1 addition & 0 deletions Scenario/Editor/PixelEditor/PixelEditorUI.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using Unity.Plastic.Newtonsoft.Json;
using UnityEditor;
using UnityEngine;

Expand Down
1 change: 1 addition & 0 deletions Scenario/Editor/PromptImages/PromptImages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Threading.Tasks;
using RestSharp;
using Unity.EditorCoroutines.Editor;
using Unity.Plastic.Newtonsoft.Json;
using UnityEditor;
using UnityEngine;
using UnityEngine.Networking;
Expand Down
3 changes: 2 additions & 1 deletion Scenario/Editor/PromptWindow/PromptWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Globalization;
using System.Linq;
using Unity.EditorCoroutines.Editor;
using Unity.Plastic.Newtonsoft.Json;
using UnityEditor;
using UnityEngine;

Expand Down Expand Up @@ -225,7 +226,7 @@ private string PrepareInputData(string modality, string operationType, string da
int width = (int)promptWindowUI.widthSliderValue;
int height = (int)promptWindowUI.heightSliderValue;
int numInferenceSteps = (int)promptWindowUI.samplesliderValue;
int numSamples = (int)promptWindowUI.imagesliderValue;
int numSamples = (int)promptWindowUI.imagesliderIntValue;

string inputData = $@"{{
""parameters"": {{
Expand Down
1 change: 1 addition & 0 deletions Scenario/Editor/PromptWindow/PromptWindowUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public partial class PromptWindowUI
internal int widthSliderValue = 512;
internal int heightSliderValue = 512;
internal float imagesliderValue = 4;
internal int imagesliderIntValue = 4;
internal float samplesliderValue = 30;
internal float influncesliderValue = 0.25f;
internal float guidancesliderValue = 7;
Expand Down
2 changes: 1 addition & 1 deletion Scenario/Editor/PromptWindow/Views/ImageSettingsView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private void RenderImageSettingsSection(bool shouldAutoGenerateSeed)
int labelWidth = Mathf.RoundToInt(EditorGUIUtility.currentViewWidth * labelWidthPercentage);
int sliderWidth = Mathf.RoundToInt(EditorGUIUtility.currentViewWidth * sliderWidthPercentage);

int imagesliderIntValue = Mathf.RoundToInt(imagesliderValue);
imagesliderIntValue = Mathf.RoundToInt(imagesliderValue);
EditorGUILayout.BeginHorizontal();
{
GUILayout.Label("Images: " + imagesliderIntValue, GUILayout.Width(labelWidth));
Expand Down
1 change: 1 addition & 0 deletions Scenario/Editor/UpscaleEditor/UpscaleEditorUI.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using Unity.Plastic.Newtonsoft.Json;
using UnityEditor;
using UnityEngine;

Expand Down
3 changes: 2 additions & 1 deletion Scenario/com.scenario.editor.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "com.scenario.editor",
"rootNamespace": "Scenario",
"references": [
"Unity.EditorCoroutines.Editor"
"Unity.EditorCoroutines.Editor",
"RestSharp.Unity"
],
"includePlatforms": [
"Editor"
Expand Down

0 comments on commit b84004d

Please sign in to comment.