refine
Browse files- .idea/.gitignore +3 -0
- .idea/PromptIQA.iml +12 -0
- .idea/inspectionProfiles/Project_Default.xml +19 -0
- .idea/inspectionProfiles/profiles_settings.xml +6 -0
- .idea/modules.xml +8 -0
- .idea/vcs.xml +6 -0
- best_model.pth.tar → PromptIQA/checkpoints/best_model.pth.tar +0 -0
- PromptIQA/checkpoints/best_model_five_22.pth.tar +0 -3
- PromptIQA/models/promptiqa.py +0 -4
- PromptIQA/run_promptIQA.py +1 -1
.idea/.gitignore
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Default ignored files
|
| 2 |
+
/shelf/
|
| 3 |
+
/workspace.xml
|
.idea/PromptIQA.iml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<module type="PYTHON_MODULE" version="4">
|
| 3 |
+
<component name="NewModuleRootManager">
|
| 4 |
+
<content url="file://$MODULE_DIR$" />
|
| 5 |
+
<orderEntry type="inheritedJdk" />
|
| 6 |
+
<orderEntry type="sourceFolder" forTests="false" />
|
| 7 |
+
</component>
|
| 8 |
+
<component name="PyDocumentationSettings">
|
| 9 |
+
<option name="format" value="PLAIN" />
|
| 10 |
+
<option name="myDocStringFormat" value="Plain" />
|
| 11 |
+
</component>
|
| 12 |
+
</module>
|
.idea/inspectionProfiles/Project_Default.xml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<component name="InspectionProjectProfileManager">
|
| 2 |
+
<profile version="1.0">
|
| 3 |
+
<option name="myName" value="Project Default" />
|
| 4 |
+
<inspection_tool class="PyChainedComparisonsInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
| 5 |
+
<option name="ignoreConstantInTheMiddle" value="true" />
|
| 6 |
+
</inspection_tool>
|
| 7 |
+
<inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
| 8 |
+
<option name="ignoredErrors">
|
| 9 |
+
<list>
|
| 10 |
+
<option value="N806" />
|
| 11 |
+
<option value="N802" />
|
| 12 |
+
<option value="N803" />
|
| 13 |
+
<option value="N801" />
|
| 14 |
+
<option value="N812" />
|
| 15 |
+
</list>
|
| 16 |
+
</option>
|
| 17 |
+
</inspection_tool>
|
| 18 |
+
</profile>
|
| 19 |
+
</component>
|
.idea/inspectionProfiles/profiles_settings.xml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<component name="InspectionProjectProfileManager">
|
| 2 |
+
<settings>
|
| 3 |
+
<option name="USE_PROJECT_PROFILE" value="false" />
|
| 4 |
+
<version value="1.0" />
|
| 5 |
+
</settings>
|
| 6 |
+
</component>
|
.idea/modules.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="ProjectModuleManager">
|
| 4 |
+
<modules>
|
| 5 |
+
<module fileurl="file://$PROJECT_DIR$/.idea/PromptIQA.iml" filepath="$PROJECT_DIR$/.idea/PromptIQA.iml" />
|
| 6 |
+
</modules>
|
| 7 |
+
</component>
|
| 8 |
+
</project>
|
.idea/vcs.xml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<project version="4">
|
| 3 |
+
<component name="VcsDirectoryMappings">
|
| 4 |
+
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
| 5 |
+
</component>
|
| 6 |
+
</project>
|
best_model.pth.tar → PromptIQA/checkpoints/best_model.pth.tar
RENAMED
|
File without changes
|
PromptIQA/checkpoints/best_model_five_22.pth.tar
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:993555b9efaeae660d2dd6f4056f13c6957628ca592a2ce74ff2e8eb5a4a2280
|
| 3 |
-
size 1272842308
|
|
|
|
|
|
|
|
|
|
|
|
PromptIQA/models/promptiqa.py
CHANGED
|
@@ -220,10 +220,6 @@ class PromptIQA(nn.Module):
|
|
| 220 |
)
|
| 221 |
|
| 222 |
self.prompt_feature = {}
|
| 223 |
-
|
| 224 |
-
@torch.no_grad()
|
| 225 |
-
def clear(self):
|
| 226 |
-
self.prompt_feature = {}
|
| 227 |
|
| 228 |
@torch.no_grad()
|
| 229 |
def inference(self, x, data_type):
|
|
|
|
| 220 |
)
|
| 221 |
|
| 222 |
self.prompt_feature = {}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 223 |
|
| 224 |
@torch.no_grad()
|
| 225 |
def inference(self, x, data_type):
|
PromptIQA/run_promptIQA.py
CHANGED
|
@@ -24,7 +24,7 @@ def load_model(pkl_path):
|
|
| 24 |
|
| 25 |
class PromptIQA():
|
| 26 |
def __init__(self) -> None:
|
| 27 |
-
self.pkl_path = "./PromptIQA/checkpoints/
|
| 28 |
self.model = load_model(self.pkl_path).cuda()
|
| 29 |
self.model.eval()
|
| 30 |
|
|
|
|
| 24 |
|
| 25 |
class PromptIQA():
|
| 26 |
def __init__(self) -> None:
|
| 27 |
+
self.pkl_path = "./PromptIQA/checkpoints/best_model.pth.tar"
|
| 28 |
self.model = load_model(self.pkl_path).cuda()
|
| 29 |
self.model.eval()
|
| 30 |
|