Spaces:
Running
on
Zero
Running
on
Zero
app
Browse files- .idea/workspace.xml +0 -62
- app.py +4 -3
.idea/workspace.xml
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<project version="4">
|
3 |
-
<component name="AutoImportSettings">
|
4 |
-
<option name="autoReloadType" value="SELECTIVE" />
|
5 |
-
</component>
|
6 |
-
<component name="ChangeListManager">
|
7 |
-
<list default="true" id="06aeb431-3965-40d3-8215-f4952b265951" name="Changes" comment="">
|
8 |
-
<change beforePath="$PROJECT_DIR$/app.py" beforeDir="false" afterPath="$PROJECT_DIR$/app.py" afterDir="false" />
|
9 |
-
</list>
|
10 |
-
<option name="SHOW_DIALOG" value="false" />
|
11 |
-
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
12 |
-
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
13 |
-
<option name="LAST_RESOLUTION" value="IGNORE" />
|
14 |
-
</component>
|
15 |
-
<component name="Git.Settings">
|
16 |
-
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
17 |
-
</component>
|
18 |
-
<component name="ProjectColorInfo">{
|
19 |
-
"associatedIndex": 3
|
20 |
-
}</component>
|
21 |
-
<component name="ProjectId" id="2lXbtoHh4jfSGOb5uKSr0Ro0FlJ" />
|
22 |
-
<component name="ProjectViewState">
|
23 |
-
<option name="hideEmptyMiddlePackages" value="true" />
|
24 |
-
<option name="showLibraryContents" value="true" />
|
25 |
-
</component>
|
26 |
-
<component name="PropertiesComponent">{
|
27 |
-
"keyToString": {
|
28 |
-
"RunOnceActivity.ShowReadmeOnStart": "true",
|
29 |
-
"git-widget-placeholder": "main",
|
30 |
-
"last_opened_file_path": "/Users/xingpeng/Desktop/project/hub/HF/space/CSGO",
|
31 |
-
"node.js.detected.package.eslint": "true",
|
32 |
-
"node.js.detected.package.tslint": "true",
|
33 |
-
"node.js.selected.package.eslint": "(autodetect)",
|
34 |
-
"node.js.selected.package.tslint": "(autodetect)",
|
35 |
-
"nodejs_package_manager_path": "npm",
|
36 |
-
"vue.rearranger.settings.migration": "true"
|
37 |
-
}
|
38 |
-
}</component>
|
39 |
-
<component name="SharedIndexes">
|
40 |
-
<attachedChunks>
|
41 |
-
<set>
|
42 |
-
<option value="bundled-js-predefined-1d06a55b98c1-91d5c284f522-JavaScript-PY-241.15989.155" />
|
43 |
-
<option value="bundled-python-sdk-babbdf50b680-7c6932dee5e4-com.jetbrains.pycharm.pro.sharedIndexes.bundled-PY-241.15989.155" />
|
44 |
-
</set>
|
45 |
-
</attachedChunks>
|
46 |
-
</component>
|
47 |
-
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
48 |
-
<component name="TaskManager">
|
49 |
-
<task active="true" id="Default" summary="Default task">
|
50 |
-
<changelist id="06aeb431-3965-40d3-8215-f4952b265951" name="Changes" comment="" />
|
51 |
-
<created>1725329585964</created>
|
52 |
-
<option name="number" value="Default" />
|
53 |
-
<option name="presentableId" value="Default" />
|
54 |
-
<updated>1725329585964</updated>
|
55 |
-
<workItem from="1725329587130" duration="9473000" />
|
56 |
-
</task>
|
57 |
-
<servers />
|
58 |
-
</component>
|
59 |
-
<component name="TypeScriptGeneratedFilesManager">
|
60 |
-
<option name="version" value="3" />
|
61 |
-
</component>
|
62 |
-
</project>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.py
CHANGED
@@ -26,7 +26,7 @@ import os
|
|
26 |
os.system("git lfs install")
|
27 |
os.system("git clone https://huggingface.co/h94/IP-Adapter")
|
28 |
os.system("mv IP-Adapter/sdxl_models sdxl_models")
|
29 |
-
|
30 |
base_model_path = "stabilityai/stable-diffusion-xl-base-1.0"
|
31 |
image_encoder_path = "sdxl_models/image_encoder"
|
32 |
csgo_ckpt ='./CSGO/csgo_4_32.bin'
|
@@ -37,12 +37,13 @@ weight_dtype = torch.float16
|
|
37 |
|
38 |
os.system("git clone https://huggingface.co/TTPlanet/TTPLanet_SDXL_Controlnet_Tile_Realistic")
|
39 |
os.system("mv TTPLanet_SDXL_Controlnet_Tile_Realistic/TTPLANET_Controlnet_Tile_realistic_v2_fp16.safetensors TTPLanet_SDXL_Controlnet_Tile_Realistic/diffusion_pytorch_model.safetensors")
|
40 |
-
os.system('rm TTPLanet_SDXL_Controlnet_Tile_Realistic/TTPLANET_Controlnet_Tile_realistic_v1_fp16.safetensors')
|
41 |
-
os.system('rm TTPLanet_SDXL_Controlnet_Tile_Realistic/TTPLANET_Controlnet_Tile_realistic_v1_fp16.safetensors')
|
42 |
controlnet_path = "./TTPLanet_SDXL_Controlnet_Tile_Realistic"
|
43 |
|
44 |
|
45 |
os.system('git clone https://huggingface.co/InstantX/CSGO')
|
|
|
46 |
|
47 |
|
48 |
|
|
|
26 |
os.system("git lfs install")
|
27 |
os.system("git clone https://huggingface.co/h94/IP-Adapter")
|
28 |
os.system("mv IP-Adapter/sdxl_models sdxl_models")
|
29 |
+
os.system('rm -f IP-Adapter/models')
|
30 |
base_model_path = "stabilityai/stable-diffusion-xl-base-1.0"
|
31 |
image_encoder_path = "sdxl_models/image_encoder"
|
32 |
csgo_ckpt ='./CSGO/csgo_4_32.bin'
|
|
|
37 |
|
38 |
os.system("git clone https://huggingface.co/TTPlanet/TTPLanet_SDXL_Controlnet_Tile_Realistic")
|
39 |
os.system("mv TTPLanet_SDXL_Controlnet_Tile_Realistic/TTPLANET_Controlnet_Tile_realistic_v2_fp16.safetensors TTPLanet_SDXL_Controlnet_Tile_Realistic/diffusion_pytorch_model.safetensors")
|
40 |
+
os.system('rm -rf TTPLanet_SDXL_Controlnet_Tile_Realistic/TTPLANET_Controlnet_Tile_realistic_v1_fp16.safetensors')
|
41 |
+
os.system('rm -rf TTPLanet_SDXL_Controlnet_Tile_Realistic/TTPLANET_Controlnet_Tile_realistic_v1_fp16.safetensors')
|
42 |
controlnet_path = "./TTPLanet_SDXL_Controlnet_Tile_Realistic"
|
43 |
|
44 |
|
45 |
os.system('git clone https://huggingface.co/InstantX/CSGO')
|
46 |
+
os.system('rm -rf CSGO/csgo.bin')
|
47 |
|
48 |
|
49 |
|