Được TopGit lập chỉ mục từ metadata GitHub: XingangPan/SCNN-prototxt-generator có 26 sao, viết chủ yếu bằng Python. Script for generating Spatial CNN caffe prototxt file.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
This script is for generating Spatial CNN caffe prototxt file.
How to use
Run run.sh to generate Spatial CNN module, modify parameters to yours.
'--height', '--width', and '--channel' are number of rows, columns, and channels of the last feature maps respectively.
Copy the text in the generated SCNN.prototxt, and paste it to the right position in your original model prototxt file (the one that you want to add Spatial CNN).
Don't forget to modify the 'bottom' of the next layer to "SCNN".
Example:
Original prototxt file: examples/resnet101.prototxt
Generated SCNN text: examples/SCNN.prototxt
New prototxt file with SCNN: examples/resnet101_SCNN.prototxt
(For this example, the prototxt is aligned with the caffe version at https://github.com/hszhao/PSPNet)
You can visualize the network architecture at http://ethereon.github.io/netscope/#/editor.
About Spatial CNN (SCNN)
Spatial CNN enables explicit and effective spatial information propagation between neurons in the same layer of a CNN.
For more details, please refer to our paper.
Practical Concerns
In practice I initialize SCNN layers with variance sqrt(5) times smaller than the MSRA initialization for numarical stability concern.
It would be helpful to initialize all other layers with a pretrained model. Directly training from random initialization may cause SCNN to diverge.
The best way to utilize SCNN is to insert it right after the last feature maps (top hidden layer, before the classification layer).
The number of channels (num_c) of the last feature maps should not be too large since the memory consumption of SCNN is sensitive to num_c.
In practive I find 128 to be an appropriate choice for num_c, 512 might be a little bit large. You can try larger num_c if you have enough GPU memory.
To reduce num_c in ResNet50/101, directly change num_output from 512 to 128 in "Conv5_4" layer may decrease the performance. Aternatively, you can add an extra "Conv5_5" layer to map the 512 feature maps to 128 with 1x1 convolution, as did in 'examples/resnet101.prototxt'.
Đọc thêm về XingangPan/SCNN-prototxt-generator ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/XingangPan/SCNN-prototxt-generator là nguồn chính thức.
XingangPan/SCNN-prototxt-generator có bao nhiêu sao?
XingangPan/SCNN-prototxt-generator có 26 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/XingangPan/SCNN-prototxt-generator. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
XingangPan/SCNN-prototxt-generator có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho XingangPan/SCNN-prototxt-generator. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
XingangPan/SCNN-prototxt-generator có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho XingangPan/SCNN-prototxt-generator. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
XingangPan/SCNN-prototxt-generator còn đang phát triển không?
Commit gần nhất trên XingangPan/SCNN-prototxt-generator là 8.5 năm trước (theo timestamp GitHub). Repo có 15 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
XingangPan/SCNN-prototxt-generator viết bằng ngôn ngữ gì?
XingangPan/SCNN-prototxt-generator chủ yếu viết bằng Python. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc SCNN-prototxt-generator có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về SCNN-prototxt-generator.