-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from AlbertSuarez/add-underlying-models
Add underlying models
- Loading branch information
Showing
6 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
from enum import Enum | ||
|
||
from src.u2_net.model import U2NET | ||
from src.u2_net.model import U2NET, U2NETP | ||
from src.bas_net.model import BASNet | ||
|
||
|
||
class Model(Enum): | ||
|
||
U2NET = U2NET # U2NET | ||
U2NETP = U2NETP # U2NETP | ||
U2NETPORTRAIT = U2NET # U2NETPORTRAIT | ||
BASNet = BASNet # BASNet | ||
|
||
def __str__(self): | ||
return self.name | ||
|
||
@staticmethod | ||
def list(): | ||
return [m.name for m in Model] | ||
return [m for m in Model.__members__.keys()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters