Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
textmonkey_pytorch
Commits
a5c9ff66
Unverified
Commit
a5c9ff66
authored
Jan 28, 2024
by
echo840
Committed by
GitHub
Jan 28, 2024
Browse files
Update readme.md
parent
0236234f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
data_generation/readme.md
data_generation/readme.md
+1
-1
No files found.
data_generation/readme.md
View file @
a5c9ff66
...
...
@@ -12,7 +12,7 @@ Generation Steps:
```
python blip2.py```
2. Use the Grit model to generate dense captions for each image.
```
python grit.py
```
```
python grit
_generate
.py
```
3. Generate segmentation maps for each image using the SAM model, and save the segmentation maps in the "./masks" directory.
```
python amg.py --checkpoint ./model_weight/
<pth
name
>
--model-type
<model_type>
--input ./images --output ./data_gen/masks --convert-to-rle
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment